ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How to specify numeric format in formula? (https://www.excelbanter.com/excel-discussion-misc-queries/50323-how-specify-numeric-format-formula.html)

[email protected]

How to specify numeric format in formula?
 
I have a cell with the following:

="The value is $" & A6 & "."

Cell A6 is an integer and it's formatting is set to look like
"4,000.00". In the cell above that references A6 the value looks like
"4000".

How can I explicitly specify formatting in my "=" statement above?
Thanks!


Dave O

="The value is " & TEXT(A1,"#,##0.00") & "."


Dave O

Forgot: add the $ sign like this:
="The value is " & TEXT(A1,"$#,##0.00") & "."


Peo Sjoblom

Use text

="The value is "&TEXT(A6,"$#,##0.00")&"."

Regards,

Peo Sjoblom


wrote in message
oups.com...
I have a cell with the following:

="The value is $" & A6 & "."

Cell A6 is an integer and it's formatting is set to look like
"4,000.00". In the cell above that references A6 the value looks like
"4000".

How can I explicitly specify formatting in my "=" statement above?
Thanks!





All times are GMT +1. The time now is 08:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com