Converting currency to text string

mattmickle

Board Regular
Joined
Nov 17, 2010
Messages
81
$555.56
I need to convert this dollar amount to a text string of 8 positions (6 for the dollar amount, 2 for the cents amount).

Should look like = 00055556 with the assumption that the last 2 positions are cents.

The =TEXT(B2,"00000000") returns 00000556, rounding the amount

I've tried =TEXT(TRUNC(B2,0),"000000"&TEXT(RIGHT(B2,2),"00") which works, until you have an even decimal amount.

$555.50 returns 00055501

I need the decimal amount to be converted to text "as is" and not rounded.

Any help would be appreciated!
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Does this work?

=RIGHT(SUBSTITUTE("00000000"&B2,".",""),8)

Edit: Whoops, won't work with $555.50. I'll see what I can find.
 
Last edited:
Upvote 0
again, that works for $555.56, but when I have the even cents amount $555.50, it returns 00005555 instead of 00055556
 
Upvote 0

Forum statistics

Threads
1,215,488
Messages
6,125,092
Members
449,206
Latest member
ralemanygarcia

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