Convert numeric to text

jacknc

Board Regular
Joined
Nov 28, 2005
Messages
75
Office Version
  1. 365
  2. 2019
I have a value in a5 (82700000) Needing it to display in a6 as text 82.7 Million. Could also be 827000000, needs to be displayed as text 8.27 Billion
I know it has to do with Len
Just cant get there,
Any tips or solutions are greatly appreciated.
Jack
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
I'm a bit busy, and I'm very sure there is a better way to do this, but if you can only have those two lengths of values then this should work. If you can have something other than those two lengths, then this doesn't account for that.

Code:
=IF(LEN(A1)=8,LEFT(A1,2)&"."&MID(A1,3,1)&" Million",LEFT(A1,1)&"."&MID(A1,2,2)&" Billion")
 
Upvote 0
Hi,

If you want the converted Text in a Separate cell, use B5 formula copied down, be aware that results are Text and no longer Numeric values.

Or, Custom Format the subject cells as shown in D11, subject cells will display as D5:D8, cell values Remains as Real Numbers:


Book1
ABCD
58270000082.7 Million82.7 Million
682700000008.27 Billion8.27 Billion
7827000000827 Million827. Million
882700008.27 Million8.27 Million
9
10Custom format cells
11[<1000000000]#.##,," Million";#.##,,," Billion"
Sheet448
Cell Formulas
RangeFormula
B5=A5/IF(LEN(A5)<10,1000000,1000000000)&(IF(LEN(A5)<10," Million"," Billion"))
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,193
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