To display 1,000,000 as 1M in Microsoft Excel, you can use a custom number format. Here's how:
- Select the cell or range of cells that you want to format.
- Right-click and select "Format Cells" from the context menu.
- In the Format Cells dialog box, select "Custom" from the Category list.
- In the Type field, enter the following format code:
- Click "OK" to apply the format.
Now, any number you enter in the selected cells that is greater than or equal to 1,000,000 will be displayed as
1M.
To use the formatted number in a sum function as a million, you can use a formula to convert it back to its original value. Here's an example:
- Enter the numbers you want to sum in a column or row.
- In the cell where you want to display the sum, enter the following formula:
Code:
=SUM(A1:A10)/1000000
- Replace "A1:A10" with the range of cells that contain the numbers you want to sum.
- Press Enter to calculate the sum.
The formula divides the sum of the selected cells by 1,000,000 to convert it back to millions. The result will be displayed in the cell with the formula.