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
Matt PinkstonAsked:
Who is Participating?
 
Danny ChildIT ManagerCommented:
Try this custom format
$#,###,," M";[Red]($#,###,, "M");0

Custom formats have 3 sections, all marked with ; betweeen them
first one is for positive numbers; second is for negative; third is for zero values

as you've seen # is for placeholding, ie where to put commas, etc.
bits inside quotes are just displayed as-is - they can be anything.
curved brackets for negatives can be just used in the 2nd section.
colours are specified inside [ square brackets ]
0
 
Saurabh Singh TeotiaCommented:
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...

Saurabh..
Conditional-formating.xlsx
0
 
Matt PinkstonAuthor Commented:
but I would like to go to millions on ALL values but in the case of negative values not loose the red paren feature

example

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

($100,000,000.00) = ($100m)  in red of course
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
Matt PinkstonAuthor Commented:
another issue I am having with #,##0.0,,;; is the values that were 0 show as blank
0
 
Matt PinkstonAuthor Commented:
and it converts negative numbers to blanks
0
 
Matt PinkstonAuthor Commented:
I also found this format $#.##,," M";--

but for negative values I get blank
for 0 values O get $ M
0
 
Saurabh Singh TeotiaCommented:
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...
0
 
Danny ChildIT ManagerCommented:
0
 
Martin LissOlder than dirtCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.