How to get a formula result to return either "+", "- ", or "="

S

Scrubber

Does anyone know of or how to craft a formula that calculates th
difference between the values in two columns, and then returns to
third column either a +, -, or = depending on whether value one is mor
than, less than or equal to value two?

Thank you

+-------------------------------------------------------------------
+-------------------------------------------------------------------
 
C

Claus Busch

Hi,

Am Wed, 18 Jul 2012 19:01:17 +0000 schrieb Scrubber:
Does anyone know of or how to craft a formula that calculates the
difference between the values in two columns, and then returns to a
third column either a +, -, or = depending on whether value one is more
than, less than or equal to value two?

try:
=IF(B1>A1,"+",IF(B1=A1,"=","-"))



Regards
Claus Busch
 
S

Scrubber

Spencer101;1603766 said:
Here you go Jane.

I've even swapped it around so it actually does what I presume you mean
this time.

If it's NOW the wrong way round, just swap the < for > in the formula.

Let me know!

S.


EXACTLY! Thank you so very much

+-------------------------------------------------------------------
+-------------------------------------------------------------------
 
S

Spencer101

Scrubber;1603771 said:
EXACTLY! Thank you so very much!

Pleasure was all mine. Glad I could help.

:

+-------------------------------------------------------------------
+-------------------------------------------------------------------
 

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

Top