Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I have the following:
=IF((B21-C21)0,B21-C21 & " Under Budget", B21-C21 & " Over Budget") How can I get the resulting value to be formatted as currency? I have formatted the cell as currency but I guess with the & "text" it doesn't treat the numerical part as currency. |
#2
![]() |
|||
|
|||
![]()
You are correct. So to overcome that, Put your currency symbol into the
formula too. =IF((B21-C21)0,"$"&B21-C21 & " Under Budget", "$"&B21-C21 & " Over Budget") "M.Siler" wrote: I have the following: =IF((B21-C21)0,B21-C21 & " Under Budget", B21-C21 & " Over Budget") How can I get the resulting value to be formatted as currency? I have formatted the cell as currency but I guess with the & "text" it doesn't treat the numerical part as currency. |
#3
![]() |
|||
|
|||
![]()
Or, you could do it this way:-
=IF((B21-C21)0,DOLLAR(B21-C21,2) & " Under Budget", DOLLAR(B21-C21,2) & " Over Budget") |
#4
![]() |
|||
|
|||
![]()
One way:
=TEXT(B21-C21,"$0.00_) ;($0.00) ") & IF(B21C21,"Under","Over") & " Budget" Another: =B21-C21 Format with Format/Cells/Number/Custom $0.00_) "Under Budget";($0.00) "Over Budget";0.00_) "On Budget" In article , "M.Siler" wrote: I have the following: =IF((B21-C21)0,B21-C21 & " Under Budget", B21-C21 & " Over Budget") How can I get the resulting value to be formatted as currency? I have formatted the cell as currency but I guess with the & "text" it doesn't treat the numerical part as currency. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel Conditional Formatting Question | New Users to Excel | |||
Formatting Question | Excel Discussion (Misc queries) | |||
conditional formatting question | Excel Discussion (Misc queries) | |||
Cell formatting behaviour question | Excel Discussion (Misc queries) | |||
conditional formatting question | Excel Worksheet Functions |