How to convert M for Millions and B for Billions

rebel123

Active Member
Joined
Apr 18, 2017
Messages
359
Office Version
  1. 365
Platform
  1. MacOS

Attachments

  • Screenshot 2024-12-16 at 6.11.27 AM.png
    Screenshot 2024-12-16 at 6.11.27 AM.png
    65.7 KB · Views: 7

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
One option:

Excel Formula:
=LEFT(C2,len(C2)-1)*IF(RIGHT(C2,1)="M",1000000,1000000000)
 
Upvote 0
Solution
Another option

Book2
CDEFG
2128.78M10.045B12878000010045000000
Sheet4
Cell Formulas
RangeFormula
F2F2=SUBSTITUTE(C2,"M","")*1000000
G2G2=SUBSTITUTE(D2,"B","")*1000000000
 
Upvote 0
Thanks Rory that worked. Also thanks MARK858 for explaining the file share.
 
Upvote 0
One more option that handles lower/upper case and other abbreviations.
Book1
AB
1
21.20k1200
31.20K1200
41.653M1653000
51.653m1653000
62.56B2560000000
74.0T4E+12
Sheet1
Cell Formulas
RangeFormula
B2:B7B2=--(LEFT(A2,LEN(A2)-1)&"e"&(3*SEARCH(RIGHT(A2,1),"kmbt")))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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