Cheatsheet — Excel

This is my personal collection of cheatsheet for Excel.
Numbers
Indian Number Format
[>=10000000]##\,##\,##\,##0;[>=100000] ##\,##\,##0;##,##0.00
Approach 2: Format using Rupee currancy with below settings

Hide number when value is zero
[>9999999]##\,##\,##\,##0;[>99999]##\,##\,##0;##,##;
Show Negative Numbers in Red Text


- Select a numeric cell.
- Select the
Conditional Formatting
fromHome
Tab. - Select the
Highlight Cell Rules
. - Select the
Less Than
option. - In field
Format cells that are LESS THAN:
, input0
. - Select
Red Text
from the dropdown and pressOK
button.
Round Number to Nearest 10
=MROUND(SUM(F:F), 10)
Date
Current Day, Month & Year
=MONTH(TODAY()) // Current month
=YEAR(TODAY()) // Current year
=DAY(TODAY()) // Current day of month. (Select type as number)
DATEIF
- Calculate difference between dates.
=DATEDIF(M4,TODAY(), "M")
Miscellaneous
IF ELSE
=IF(TRUE,4,5)
Last Value of Column
=LOOKUP(2,1/(B:B<>""),B:B)
IFERROR
- If formula can give error, this will help to handle that error.
=IFERROR (value, value_if_error)
COUNT
- Count Number of rows with numeric data.
- Useful on Sr. column.
=COUNT(A:A)
COUNTUNIQUE
- Count Number of rows with Non-numeric data.
- Exclude title row for correct count
=COUNTUNIQUE(B:B)-1
Copy column widths without data
This is the solution to copy column width from one column to another column in another sheet of the same excel. This solution will not change any data. It will only change the width of columns.
- In the source column, a few rows below the last data row, put some text of desired width ex.
Test13464899489494949
. - Make sure this text is the longest text in the column.
- Double click on the column separator line. Column width should adjust as per the text entered in step 1.
- Follow step 1 for the destination column.
- Follow step 3 for the destination column.
Concatenate Strings in formula
- Use CONCATENATE function
=CONCATENATE('To-do'!B15," & ",'To-do'!B16)
Create dropdown in cell
- Tested in Google Sheets.
- Select the cell.
- Click on “Data” from the main menu. It will show a dropdown with various options.
- Select “Data Validation”. It will open a pop-up
- Click on the dropdown of criteria and select “List of Items”.
- Input comma separated items. It would be shown as a dropdown in the cell.
Excel Shortcuts
- Strikethrough word(s) → Ctrl + 5