100 Excel Tips & Resources

Share

Facebook
Twitter
LinkedIn

Would you like to learn most popular Excel tips and shortcuts?

100 Excel & Charting Tips, Tricks and Resources for you.

These 100 tips & resources are organized in to the areas,

  • Keyboard Shortcuts
  • Formulas
  • Using Excel to do more
  • Charting
  • Excel Books for everyone
  • Excel Blogs & Resources

All these tips are bite sized and easy to read, digest and implement. The focus is on improving your productivity and making your day better. Wherever possible, I have included links to relevant articles on this site so that you can read and learn more.

If you like this post, I encourage you to signup for my free email newsletter.

Ok, on to the tips now…

25 Very Useful Keyboard Shortcuts

1. To format any selected object, press ctrl+1
2. To insert current date, press ctrl+;
3. To insert current time, press ctrl+shift+;
4. To repeat last action, press F4
5. To edit a cell comment, press shift + F2
6. To autosum selected cells, press alt + =
7. To see the suggest drop-down in a cell, press alt + down arrow
8. To enter multiple lines in a cell, press alt+enter
9. To insert a new sheet, press shift + F11
10. To edit active cell, press F2 (places cursor in the end)
11. To hide current row, press ctrl+9
12. To hide current column, press ctrl+0
13. To unhide rows in selected range, press ctrl+shift+9
14. To unhide columns in selected range, press ctrl+shift+0
15. To recalculate formulas, press F9
16. To select data in current region, press ctrl+shift+8
17. To see formulas in the worksheet, press ctrl+`
18. While editing formulas to change the reference type from absolute to relative vice versa, press F4
19. To format a number as currency, press ctrl+shift+4 (ctrl+$)
20. To apply outline border around selected cells, press ctrl+shift+7
21. To open the macros dialog box, press alt+F8
22. To copy value from above cell, press ctrl+’
23. To format current cell with comma formats, press ctrl+shift+1
24. To go to the next worksheet, press ctrl+shift+pg down
25. To go to the previous worksheet, press ctrl+shift+pg up

20 Situations and How to Solve them using Excel Formulas

26. To get the first name of a person, use =left(name,find(” “,name)-1)
27. To calculate mortgage payments, use =PMT(interest-rate,number-of-payments,how-much-loan)
28. To get nth largest number in a range, use =large(range,n)… Get Full Tip
29. To get nth smallest number in a range, use = small(range,n)… Get Full Tip
30. To generate a random phone number, use =randbetween(1000000000,9999999999), needs analysis toolpak if you are using excel 2003 or earlier… Get Full Tip
31. To count number of words in a cell, use =len(trim(text))-len(SUBSTITUTE(trim(text),” “,””))… Get Full Tip
32. To count positive values in a range, use =countif(range,”>0″)… Get Full Tip
33. To calculate weighted average, use SUMPRODUCT() function
34. To remove unnecessary spaces, use =trim(text)
35. To format a number as SSN using formulas, use =text(ssn-text,”000-00-0000″)… Get Full Tip
36. To find age of a person based on DOB, use =TEXT((NOW()-birth_date)&””,”yy “”years”” m “”months”” dd “”days”””), output will be like 27 years 7 months 29 days
37. To get name from initials from a name, use IF(), FIND(), LEN() and SUBSTITUTE() formulas… Get Full Tip
38. To get proper fraction from a number (for eg 1/3 from 6/18), use =text(fraction, “?/?”)
39. To get partial matches in vlookup, use * operator like this: =vlookup(“abc*”,lookup_range,return_column)
40. To simulate averageif() in earlier versions of excel, use =sumif(range, criteria)/countif(range, criteria)
41. To debug your formulas, select the portions of formula and press F9 to see the result of that portion… Get Full Tip
42. To get the file extension from a file name, use =right(filename,3) (doesn’t work for files that have weird extensions like .docx, .htaccess etc.)
43. To quickly insert an in cell micro-chart, use REPT() function… Get Full Tip
44. COUNT() only counts number of cells with numbers in them, if you want to count number of cells with anything in them, use COUNTA()
45. Using named ranges in formulas saves you a lot of time. To define one, just select some cells, and go to menu > insert > named ranges > define

15 Excel Tips on Improving Productivity Using Excel

46. To format a number as SSN, use the custom format code “000-00-0000″… Get Full Tip
47. To format a phone number, use the custom format code “000-000-0000″… Get Full Tip
48. To show values after decimal point only when number is less than one, use [<1]_($#,##0.00_);_($#,##0_) as formatting code… Get Full Tip
49. To remove grid lines from excel worksheet, go to menu > tools > options > and un-check grid lines option. (Excel 2007: office button > excel option > advanced)… Get Full Tip
50. To hide a worksheet, go to menu > format > sheet > hide… Get Full Tip
51. To align multiple objects, like charts, drawings, pictures use drawing toolbar > align and select alignment option… Get Full Tip
52. To freeze rows on top, select the a row and use menu > window > freeze panes… Get Full Tip
53. To disable annoying formula errors, go to menu > tools > options > error checking tab and disable errors you don’t want to see… Get Full Tip
54. To change the shape of cell comments from rectangle to some other symbol, select the comment, go to drawing tool bar and change the shape from there… Get Full Tip
55. To transpose a range of cells, copy the cells, go to empty area, and press alt+e+s+e… Get Full Tip
56. To save data filter settings so that you can reuse them again, use custom views… Get Full Tip
57. To select all formulas, press CTRL+G, select “special” and check “formulas”
58. To select all constants, press CTRL+G, select “special” and check “constants”
59. To clear formats from a range, select menu > edit > clear > “formats”
60. To move a chart and align it with cells, hold down ALT key while moving the chart

9 Charting Tips for Everyone

61. To create an instant micro-chart from your data, use sparklines… Get Full Tip
62. Understand data to ink ratio to reduce chart junk, using even a pixel more of ink than what is needed can reduce your chart’s effectiveness
63. Combine two different types of charts when one is not enough, to use, add another series of data to your sheet and then right click on it and change the chart type… Get Full Tip
64. To reverse the order of items in a bar / column chart, just click on y-axis, press ctrl+1, and check “categories in reverse order” and “x-axis crosses at maximum category” options
65. To change the marker symbol or bubble in a chart to your own favorite shape, just draw any shape in worksheet using drawing toolbar, then copy it by pressing ctrl+c, now go to the chart and select markers (or bubbles) and press ctrl+v
66. To create partially overlapped column / bar charts, just use overlap and gap settings in the format data series area. A overlap of 100 will completely overlap one series on another, while 0 separates them completely.… Get Full Tip
67. To increase the contrast of your chart, just remove grayish background color that excel adds to the chart (in versions excel 2003 and prior)
68. To save yourself some trouble, always try to avoid charts like – 3D area charts (unstacked), radar charts, 3D Lines, 3D Columns with multiple series of data, Donut charts with more than 2 series of data… Get Full Tip
69. To improve comparison, replace your radar charts with tables… Get Full Tip

6 simple steps for better chart formats

70. Remove any vertical grid-lines
71. Change horizontal grid-line color from black to a very light shade of gray
72. Adjust chart series colors to get better contrast
73. Adjust font scaling (for versions excel 2003 and prior)
74. Add data labels and remove any axis (axis labels) if needed
75. Remove chart background colors

5 Excel books for everyone

76. Excel 2016 Bible by John Walkenbach
77. Excel 2016 Power Programming by John Walkenbach
78. Excel 2016 All in one for dummies by Greg Harvey
79. Microsoft Excel Data Analysis and Business Modelling by Wayne Winston
80. M is for Data Monkey by Ken Puls

PS: Links to Amazon, affiliate code used

20 Excellent Resources and Blogs for getting latest Excel Tips & Charting Ideas

81. PTS Blog
82. Andrew’s Excel Tips
83. Microsoft Power BI Blog
84. Contextures
85. Junk Charts
86. Daily Dose of Excel
87. Digital Inspiration
88. Life Hacker
89. Jorge’s Charts Blog
90. Data Chant
91. Excelarator BI
92. Guy in a Cube
93. More information per pixel
94. Newton Excel Bach
95. Presentation Zen
96. Visual Business Intelligence by Stephen Few
97. Spreadsheet Journalism
98. Allen Wyatt’s Excel Tips
99. Excel Guru
100. Chandoo.org on YouTube

Join the celebrations, share your tips & ideas

I encourage you to share your Excel Tips & Charting Suggestions through comments section. We have a vibrant reader community here and we love to learn from each other.

If you like this post, I encourage you to signup for my free Email Newsletter

Post updated on 20-May-2018

Facebook
Twitter
LinkedIn

Share this tip with your colleagues

Excel and Power BI tips - Chandoo.org Newsletter

Get FREE Excel + Power BI Tips

Simple, fun and useful emails, once per week.

Learn & be awesome.

Welcome to Chandoo.org

Thank you so much for visiting. My aim is to make you awesome in Excel & Power BI. I do this by sharing videos, tips, examples and downloads on this website. There are more than 1,000 pages with all things Excel, Power BI, Dashboards & VBA here. Go ahead and spend few minutes to be AWESOME.

Read my storyFREE Excel tips book

Overall I learned a lot and I thought you did a great job of explaining how to do things. This will definitely elevate my reporting in the future.
Rebekah S
Reporting Analyst
Excel formula list - 100+ examples and howto guide for you

From simple to complex, there is a formula for every occasion. Check out the list now.

Calendars, invoices, trackers and much more. All free, fun and fantastic.

Advanced Pivot Table tricks

Power Query, Data model, DAX, Filters, Slicers, Conditional formats and beautiful charts. It's all here.

Still on fence about Power BI? In this getting started guide, learn what is Power BI, how to get it and how to create your first report from scratch.

20 Responses to “Simulating Dice throws – the correct way to do it in excel”

  1. alpha bravo says:

    You have an interesting point, but the bell curve theory is nonsense. Certainly it is not what you would want, even if it were true.

  2. Karl says:

    Alpha Bravo - Although not a distribution curve in the strict sense, is does reflect the actual results of throwing two physical dice.

    And reflects the following . .
    There is 1 way of throwing a total of 2
    There are 2 ways of throwing a total of 3
    There are 3 ways of throwing a total of 4
    There are 4 ways of throwing a total of 5
    There are 5 ways of throwing a total of 6
    There are 6 ways of throwing a total of 7
    There are 5 ways of throwing a total of 8
    There are 4 ways of throwing a total of 9
    There are 3 ways of throwing a total of 10
    There are 2 ways of throwing a total of 11
    There is 1 way of throwing a total of 12

  3. Chandoo says:

    @alpha bravo ... welcome... 🙂

    either your comment or your dice is loaded 😉

    I am afraid the distribution shown in the right graph is what you get when you throw a pair of dice in real world. As Karl already explained, it is not random behavior you see when you try to combine 2 random events (individual dice throws), but more of order due to how things work.

    @Karl, thanks 🙂

  4. Jon Peltier says:

    When simulating a coin toss, the ROUND function you used is appropriate. However, your die simulation formula should use INT instead of ROUND:

    =INT(RAND()*6)+1

    Otherwise, the rounding causes half of each number's predictions to be applied to the next higher number. Also, you'd get a count for 7, which isn't possible in a die.

    To illustrate, I set up 1200 trials of each formula in a worksheet and counted the results. The image here shows the table and a histogram of results:

    http://peltiertech.com/WordPress/wp-content/img200808/RandonDieTrials.png

  5. Chandoo says:

    @Jon: thanks for pointing this out. You are absolutely right. INT() is what I should I have used instead of ROUND() as it reduces the possibility of having either 1 or 6 by almost half that of having other numbers.

    this is such a good thing to learn, helps me a lot in my future simulations.

    Btw, the actual graphs I have shown were plotted based on randbetween() and not from rand()*6, so they still hold good.

    Updating the post to include your comments as it helps everyone to know this.

  6. Jon Peltier says:

    By the way, the distribution is not a Gaussian distribution, as Karl points out. However, when you add the simulations of many dice together (i.e., ten throws), the overall results will approximate a Gaussian distribution. If my feeble memory serves me, this is the Central Limit Theorem.

  7. Chandoo says:

    @Jon, that is right, you have to nearly throw infinite number of dice and add their face counts to get a perfect bell curve or Gaussian distribution, but as the central limit theorem suggests, our curve should roughly look like a bell curve... 🙂

  8. [...] posts on games & excel that you may enjoy: Simulating Dice throws in Excel Generate and Print Bingo / Housie tickets using this excel Understanding Monopoly Board [...]

  9. YourFifthGradeMathsTeacher says:

    I'm afraid to say that this is a badly stated and ambiguous post, which is likely to cause errors and misunderstanding.
    Aside from the initial use of round() instead of int(),.. (you've since corrected), you made several crucial mistakes by not accurately and unambiguously stating the details.

    Firstly, you said:
    "this little function generates a random fraction between 0 and 1"
    Correctly stated this should be:
    "this little function generates a random fraction F where 0 <= F < 1".

    Secondly, I guess because you were a little fuzzy about the exact range of values returned by rand(), you have then been just as ambiguous in stating:
    "I usually write int(rand()*12)+1 if I need a random number between 0 to 12".
    (that implies 13 integers, not 12)

    Your formula, does not return 13 integers between 0 to 12.
    It returns 12 integers between 1 and 12 (inclusive).
    -- As rand() returns a random fraction F where 0 <= F < 1, you can obviously can only get integers between 1 and 12 (inclusive) from your formula as stated above, but clearly not zero.

    If you had said either:
    "I usually write int(rand()*12) if I need a random number between 0 to 11 (inclusive)",
    or:
    "I usually write int(rand()*12)+1 if I need a random number between 1 to 12 (inclusive)"
    then you would have been correct.

    Unfortunately, you FAIL! -- repeat 5th grade please!

    Your Fifth Grade Maths Teacher

  10. Justin says:

    Idk if I'm on the right forum for this or how soon one can reply, but I'm working on a test using Excel and I have a table set up to get all my answers from BUT I need to generate 10,000 answers from this one table. Every time, I try to do this I get 10,000 duplicate answers. I know there has to be some simple command I have left out or not used at all, any help would be extremely helpful! (And I already have the dice figured out lol)

    Roll 4Dice with 20Sides (4D20) if the total < 20 add the sum of a rerolled 2D20. What is the average total over 10,000 turns? (Short and sweet)

    Like I said when I try to simulate 10,000turns I just get "67" 10,000times -_- help please! 😀

  11. Hui... says:

    @Justin

    This is a good example to use for basic simulation

    have a look at the file I have posted at:
    https://rapidshare.com/files/1257689536/4_Dice.xlsx

    It uses a variable size dice which you set
    Has 4 Dice
    Throws them 10,000 times
    If Total per roll < 20 uses the sum of 2 extra dice Adds up the scores Averages the results You can read more about how it was constructed by reading this post: http://chandoo.org/wp/2010/05/06/data-tables-monte-carlo-simulations-in-excel-a-comprehensive-guide/

  12. SpreadSheetNinja says:

    Oh derp, i fell for this trap too, thinking i was makeing a good dice roll simulation.. instead of just got an average of everything 😛

    Noteably This dice trow simulate page is kinda important, as most roleplay dice games were hard.. i mean, a crit failure or crit hit (rolling double 1's or double 6's) in a a game for example dungeons and dragons, if you dont do the roll each induvidual dice, then theres a higher chance of scoreing a crit hit or a crit failure on attacking..

  13. Freswinn says:

    I've been working on this for awhile. So here's a few issues I've come across and solved.

    #1. round() does work, but you add 0.5 as the constant, not 1.

    trunc() and int() give you the same distributions as round() when you use the constant 1, so among the three functions they are all equally fair as long as you remember what you're doing when you use one rather than the other. I've proven it with a rough mathematical proof -- I say rough only because I'm not a proper mathematician.

    In short, depending on the function (s is the number of sides, and R stands in for RAND() ):

    round(f), where f = sR + 0.5
    trunc(f), where f = sR + 1
    int(f), where f = sR + 1

    will all give you the same distribution, meaning that between the three functions they are fair and none favors something more than the others. However...

    #2. None of the above gets you around the uneven distribution of possible outcomes of primes not found in the factorization of the base being used (base-10, since we're using decimal; and the prime factorization of 10 is 2 and 5).

    With a 10-sided die, where your equation would be
    =ROUND(6*RAND()+0.5)
    Your distribution of possible values is even across all ten possibilities.
    However, if you use the most basic die, a 6-sided die, the distributions favor some rolls over others. Let's assume your random number can only generate down to the thousandths (0.000 ? R ? 0.999). The distribution of possible outcomes of your function are:
    1: 167
    2: 167
    3: 166
    4: 167
    5: 167
    6: 166

    So 4 and 6 are always under-represented in the distribution by 1 less than their compatriots. This is true no matter how many decimals you allow, though the distribution gets closer and closer to equal the further towards infinite decimal places you go.
    This carries over to all die whose numbers of sides do not factor down to a prime factorization of some exponential values of 2 and 5.

    So, then, how can we fix this one, tiny issue in a practical manner that doesn't make our heads hurt or put unnecessary strain on the computer?

  14. Freswinn says:

    Real quick addendum to the above:
    Obviously when I put the equation after the example of the 10-sided die, I meant to put a 10*RAND() instead of a 6*RAND(). Oops!

    Also, where I have 0.000 ? R ? 0.999, the ?'s are supposed to be less-than-or-equal-to signs but the comments didn't like that. Oh well.

  15. Andrew says:

    How do you keep adding up the total? I would like to have a cell which keeps adding up the total sum of the two dices, even after a new number is generated in the cells when you refresh or generate new numbers.

  16. kk says:

    So, how do you simulate rolling 12 dice? Do you write int(rand()*6) 12 times?

    Is there a simpler way of simulating n dice in Excel?

  17. Mohammed Ali says:

    I've run this code in VBA

    Sub generate()
    Application.ScreenUpdating = False
    Application.Calculation = False
    Dim app, i As Long
    Set app = Application.WorksheetFunction

    For i = 3 To 10002
    Cells(i, 3).Value = i - 2
    Cells(i, 4).Value = app.RandBetween(2, 12)
    Cells(i, 5).Value = app.RandBetween(1, 6) + app.RandBetween(1, 6)
    Next
    Application.ScreenUpdating = True
    Application.Calculation = True
    End Sub

    But I get the same distribution for both columns 4 and 5
    Why ?

Leave a Reply