Link to home
Create AccountLog in
Avatar of Matt Pinkston
Matt Pinkston

asked on

excel formula to millions

I have a very large XLS Workbook with a lot of sheets and values.   I have been asked to round all dollar value fields to Millions...

in the past In  used a format like this  #,##0.0,,;;

Only problem is I have some values that are negative and I am showing those in red with parens around them.

what would be the best solution to resolve all my needs
Avatar of Saurabh Singh Teotia
Saurabh Singh Teotia
Flag of India image

You can use conditional formatting to do this...

Like enclosed is the workbook for your reference where in column-f i applied this formatting..

What i did i selected my cells i said if value is greater then zero then do the conditional formatting i.e. change the format to 10 million otherwise leave it like that...

Avatar of Matt Pinkston
Matt Pinkston


but I would like to go to millions on ALL values but in the case of negative values not loose the red paren feature


normal cell
$550,000,000.00 = $5.5M

($100,000,000.00) = ($100m)  in red of course
another issue I am having with #,##0.0,,;; is the values that were 0 show as blank
and it converts negative numbers to blanks
I also found this format $#.##,," M";--

but for negative values I get blank
for 0 values O get $ M
Right now i applied conditional formatting to only when the values are less then zero..If you want to apply it for..just apply a different formating when its smaller then zero that way you can retain the bracket and red color.

If you can post your workbook can help you in what you are looking for...
Avatar of Danny Child
Danny Child
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.