How to turn M (For Millions) and B (For Billions)?

rebel123

Active Member
Joined
Apr 18, 2017
Messages
351
Office Version
  1. 365
Platform
  1. MacOS
Thanks for your help.

File is here

The image below shows the correct answers (in green).
I just need an equals sign equation, please.
 

Attachments

  • Screenshot 2022-11-02 at 7.54.05 AM.jpg
    Screenshot 2022-11-02 at 7.54.05 AM.jpg
    75.5 KB · Views: 32

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
A few different ways to do it.

For a value in cell B1, try this formula:
Excel Formula:
=MID(B1,2,LEN(B1)-3)*LET(x,LEFT(RIGHT(B1,2),1),IF(x="M",1000000,IF(x="B",1000000000,1)))

Or try this one, which is a little shorter/simpler:
Excel Formula:
=SUBSTITUTE(SUBSTITUTE(B1,"M+","000000"),"B+","000000000")+0
 
Upvote 0
Solution
Works Perfectly. Thanks.
 
Last edited by a moderator:
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,191
Members
452,616
Latest member
intern444

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top