Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How can I show the difference (+ or -) between two cells in Excel

I need to show the difference either plus or minus between two cells..i.e...
Col.1 is 10.00, Col.2 is 20.00, Col.3 needs to say that Col.2 is 10.00 over
what Co.1 is...Col.1 is the alloted budget number, Col.2 is the amount
actually spent, Col.3 needs to show the amount either over (+) or under (-)
Col.1's number.
thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default How can I show the difference (+ or -) between two cells in Excel

=IF(Count(A2:B2)=2,A2-B2,"")

you can select custom format and use

0.00 "Over";0.00 "Under"

or

+ 0.00;- 0.00


--


Regards,


Peo Sjoblom


"Revelp" wrote in message
...
I need to show the difference either plus or minus between two
cells..i.e...
Col.1 is 10.00, Col.2 is 20.00, Col.3 needs to say that Col.2 is 10.00
over
what Co.1 is...Col.1 is the alloted budget number, Col.2 is the amount
actually spent, Col.3 needs to show the amount either over (+) or under
(-)
Col.1's number.
thanks.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default How can I show the difference (+ or -) between two cells in Excel

=A2-B2

"Revelp" wrote:

I need to show the difference either plus or minus between two cells..i.e...
Col.1 is 10.00, Col.2 is 20.00, Col.3 needs to say that Col.2 is 10.00 over
what Co.1 is...Col.1 is the alloted budget number, Col.2 is the amount
actually spent, Col.3 needs to show the amount either over (+) or under (-)
Col.1's number.
thanks.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How can I show the difference (+ or -) between two cells in Excel

If you are looking to do this with a formula (rather than Peo's suggested
cell formatting, which I think is the better approach), you could use
something like this...

=CHOOSE(SIGN(A1-B1)+2,ABS(A1-B1)&" Over","Right on budget!",ABS(A1-B1)&"
Under")

or this (depending on what you want to display if they are equal)...

=ABS(A1-B1)&CHOOSE(SIGN(A1-B1)+2," Over",""," Under")

Rick


"Revelp" wrote in message
...
I need to show the difference either plus or minus between two
cells..i.e...
Col.1 is 10.00, Col.2 is 20.00, Col.3 needs to say that Col.2 is 10.00
over
what Co.1 is...Col.1 is the alloted budget number, Col.2 is the amount
actually spent, Col.3 needs to show the amount either over (+) or under
(-)
Col.1's number.
thanks.


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
show time difference jkf New Users to Excel 5 June 29th 07 11:31 AM
Show % Difference between two numbers Jana Excel Discussion (Misc queries) 9 April 29th 07 07:00 PM
how do i format cells in excel to show difference in payment amt Blue Eyes in South Ga. Excel Discussion (Misc queries) 1 February 19th 07 03:45 PM
calculating difference, but if condition not met show value given Shariq Excel Worksheet Functions 1 December 21st 06 12:47 PM
what is the formula to show the difference between two dates David Excel Discussion (Misc queries) 1 July 27th 06 12:30 AM


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

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

About Us

"It's about Microsoft Excel"