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 PinkstonEnterprise ArchitectAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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 PinkstonEnterprise ArchitectAuthor 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
Matt PinkstonEnterprise ArchitectAuthor Commented:
another issue I am having with #,##0.0,,;; is the values that were 0 show as blank
0
Learn SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

Matt PinkstonEnterprise ArchitectAuthor Commented:
and it converts negative numbers to blanks
0
Matt PinkstonEnterprise ArchitectAuthor 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:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.