Show difference between tow numbers as a + or - value.

  • Thread starter Thread starter CWal
  • Start date Start date
C

CWal

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".
 
=IF(SIGN(B2-A2)=-1,"","+")&(B2-A2)

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
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".

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

-0;+0;0

Ken Johnson
 
Try custom format:

+#;-#;0
--

HTH,

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


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".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top