PC Review


Reply
Thread Tools Rate Thread

Formatting Question

 
 
M.Siler
Guest
Posts: n/a
 
      18th Jul 2005
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 With Quote
 
 
 
 
=?Utf-8?B?Ymlnd2hlZWw=?=
Guest
Posts: n/a
 
      18th Jul 2005
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.
>
>
>

 
Reply With Quote
 
=?Utf-8?B?Ymlnd2hlZWw=?=
Guest
Posts: n/a
 
      18th Jul 2005
Or, you could do it this way:-

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


 
Reply With Quote
 
JE McGimpsey
Guest
Posts: n/a
 
      18th Jul 2005
One way:

=TEXT(B21-C21,"$0.00_) ;($0.00) ") & IF(B21>C21,"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 <(E-Mail Removed)>,
"M.Siler" <(E-Mail Removed)> 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formatting question Texas10 Microsoft Excel Misc 3 13th Oct 2009 01:12 AM
Formatting question Vic Baron Microsoft Excel New Users 3 6th Apr 2008 03:54 AM
Formatting Question =?Utf-8?B?U2FuZHk=?= Microsoft Excel Worksheet Functions 3 2nd Nov 2005 10:17 PM
Question on formatting? LWG Microsoft Windows 2000 CMD Promt 5 29th May 2004 03:00 AM
CD formatting question... Barry Windows XP General 2 29th Jul 2003 05:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:05 PM.