13m and 40k From Text To Number

Sabidesk

New Member
Joined
Aug 31, 2018
Messages
3
I watched the amazing tips at this video posted at your youtube channel: [h=1]<yt-formatted-string>Excel Magic Trick 981: 123.45M From Text To Number, 123,450,000 From Number to 123.45M</yt-formatted-string>[/h]but what if I have my table like this:

4m
284.6k
1.4m
10m
7.7m
698k
154k
2.7m
20k

in case I have a huge table that I can't edit every number with a single step, then How to apply a formula that converts both k and m automatically to numbers in this order?

Thanks in advance :)
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hi. There may be a shorter formula but this does it based on the examples given:

=IF(ISNUMBER(SEARCH("m",A1)),SUBSTITUTE(A1,"m","")*1000000,IF(ISNUMBER(SEARCH("k",A1)),SUBSTITUTE(A1,"k","")*1000))
 
Upvote 0
Wow... it works :) Thank you Steve, from the deep of my heart. Thank you so much :biggrin:

If all of your numbers have either a "k" or an "m" at the end, then this shorter formula should also work...

=LEFT(A1,LEN(A1)-1)*1000^(2-(RIGHT(A1)="k"))
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,198
Members
449,072
Latest member
DW Draft

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