Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Show difference between tow numbers as a + or - value.

Hi,

I need to find a way of showing the difference between two numbers as a + or
- value. For example, showing the gains from a forecast number to an actual
number. Eg (A2 is forcaste number) "3", (B2 is actual number) "5", (C2 is
gain number) "+2". Or (A2 is forcaste number) "3", (B2 is actual number) "1",
(C2 is gain number) "-2".
--
Thanks, CWal
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Show difference between tow numbers as a + or - value.

=IF(SIGN(B2-A2)=-1,"","+")&(B2-A2)

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"CWal" wrote in message
...
Hi,

I need to find a way of showing the difference between two numbers as a +
or
- value. For example, showing the gains from a forecast number to an
actual
number. Eg (A2 is forcaste number) "3", (B2 is actual number) "5", (C2 is
gain number) "+2". Or (A2 is forcaste number) "3", (B2 is actual number)
"1",
(C2 is gain number) "-2".
--
Thanks, CWal



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,073
Default Show difference between tow numbers as a + or - value.

On Jun 1, 8:50 am, CWal wrote:
Hi,

I need to find a way of showing the difference between two numbers as a + or
- value. For example, showing the gains from a forecast number to an actual
number. Eg (A2 is forcaste number) "3", (B2 is actual number) "5", (C2 is
gain number) "+2". Or (A2 is forcaste number) "3", (B2 is actual number) "1",
(C2 is gain number) "-2".
--
Thanks, CWal


Use this Custom format in the Column C cell...

-0;+0;0

Ken Johnson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Show difference between tow numbers as a + or - value.

Try custom format:

+#;-#;0
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"CWal" wrote in message
...
Hi,

I need to find a way of showing the difference between two numbers as a + or
- value. For example, showing the gains from a forecast number to an actual
number. Eg (A2 is forcaste number) "3", (B2 is actual number) "5", (C2 is
gain number) "+2". Or (A2 is forcaste number) "3", (B2 is actual number)
"1",
(C2 is gain number) "-2".
--
Thanks, CWal


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
How can I show the difference (+ or -) between two cells in Excel Revelp Excel Discussion (Misc queries) 3 May 1st 08 04:23 PM
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
Calculate the difference between ages, show as yy mm Hilary from New Zealand Excel Worksheet Functions 3 February 4th 07 01:03 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 10:12 AM.

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"