Add additiona1 $. 0 to Concatenate value

johndrew

Board Regular
Joined
Apr 21, 2007
Messages
100
I have the following formula in "A1":

="$"&ROUND(G3,2)& " per sq ft"

In G3, I have $7.00 or $7.10

The problem is I get $7 or if I have $7.10 is drops the zero and shows $7.1


What I want is to show a $ value to 2 decimals not drop them.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
maybe...

="$"&TEXT(ROUND(G3,2),"0.00")& " per sq ft"
You can avoid having Excel do one concatenation by moving the $ sign inside the TEXT function's pattern string...

=TEXT(ROUND(G3,2),"$0.00")& " per sq ft"
 
Upvote 0
Thanks Rick, I didn't think of doing it that way
Actually, in thinking about it some more, we can eliminate both concatenations (the less work for Excel to do, the better)...

=TEXT(ROUND(G3,2),"$0.00"" per sq ft""")
 
Last edited:
Upvote 0
that works...though I'm a little confused on how the double double quotes are working
 
Upvote 0
that works...though I'm a little confused on how the double double quotes are working
The second argument to the TEXT function is a quoted text constant... in order to protect its characters from being interpreted as meta-characters to be acted on by the TEXT function, they need to be quoted... when you embed quoted text with the quote marks delineating a text constant, you must double up the quote marks surrounding the quoted text being embedded.
 
Upvote 0
Ok, I see now, I think my knee jerk reaction to the original formula would be use the ampersand's and concatenate the strings together. I'm wondering how if there is any signifcant improvement in calculation time. I'll have to play with it a little I think. Thanks for that.
 
Upvote 0

Forum statistics

Threads
1,214,881
Messages
6,122,074
Members
449,064
Latest member
MattDRT

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