Decimal rounding in cell using text and values

erniepoe

Active Member
Joined
Oct 23, 2006
Messages
375
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I have the following formula, which produces the following text:

"$350M notes at 3.8% repaid in July"

=IF(AND(EH17=0,EG17>0),"$"&ROUND(EG17/1000000,0)&"M notes at "&ROUND(100*$J17,2)&"%"&" repaid in "&EH$155,0)

The part of the formula "ROUND(100*$J17,2)" is where it is pulling out the decimal (3.8%), and you can see i have it rounded to two decimals. The problem is the rate in cell J17 is 3.8%, so Excel is just shortening it to 3.8%, when i prefer it read 3.80%.

Is there a way to fix this within the formula, or will it always just be an after-the-fact edit I will have to make?

Thanks so much for any help.
 

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
Try replacing this:
Excel Formula:
ROUND(100*$J17,2)&"%"
With this
Excel Formula:
TEXT(ROUND($J17,4),"0.0%")

Or since you are actually allowing for 1 more decimal place, this:
Excel Formula:
TEXT(ROUND($J17,4),"0.0#%")
 
Upvote 0

Forum statistics

Threads
1,215,048
Messages
6,122,862
Members
449,097
Latest member
dbomb1414

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