#1   Report Post  
M.Siler
 
Posts: n/a
Default Formatting Question

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   Report Post  
bigwheel
 
Posts: n/a
Default

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   Report Post  
bigwheel
 
Posts: n/a
Default

Or, you could do it this way:-

=IF((B21-C21)0,DOLLAR(B21-C21,2) & " Under Budget", DOLLAR(B21-C21,2) & "
Over Budget")


  #4   Report Post  
JE McGimpsey
 
Posts: n/a
Default

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Conditional Formatting Question Joe New Users to Excel 2 July 9th 05 06:01 AM
Formatting Question Metalteck Excel Discussion (Misc queries) 1 July 6th 05 02:33 PM
conditional formatting question Deb Excel Discussion (Misc queries) 0 March 23rd 05 02:07 AM
Cell formatting behaviour question derek Excel Discussion (Misc queries) 3 February 22nd 05 10:17 PM
conditional formatting question chris Excel Worksheet Functions 2 January 5th 05 03:51 PM


All times are GMT +1. The time now is 11:52 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"