How do I set up a function in excel to give either a <> or =?

I

ivory

I have two columns that have two numbers and I need a function that will tell
me if the one number in one column is greater than>, less than< or equal =.

Thank you for your help,
 
S

Simon Lloyd

ivory;427015 said:
I have two columns that have two numbers and I need a function that will
tell
me if the one number in one column is greater than>, less than< or
equal =.

Thank you for your help,There are smarter ways but assuming your numbers are in column A & B put
this in C and copy down.
=IF(A1>B1,"A1 High",IF(B1>A1,"B1 High",IF(A1<B1,"A1 Low",IF(B1<A1,"B1
Low","A1 & B1 Equal"))))


--
Simon Lloyd

Regards,
Simon Lloyd
'The Code Cage' (http://www.thecodecage.com)
 
M

Mike H

Simon

The A1 low & B1 low can never be called because B1 high or A1 high will
evaluate as TRUE first.

Mike
 

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