Problem with Nested IF

perfecttip

New Member
Joined
Mar 3, 2009
Messages
48
I have three columns of data.. A, B and C. A and B contain numerical values and C is blank. I need a formula for the column C so that
if A>B, then C = "more" (text)
if A<B, then C = "less" (text)
if A=B, then C remains blank.

Please help.
Thank you.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
it will do what you asked and the only thing you asked. if A is grater then B the word more will be in C if A is less then B c will stay blank.
 
Upvote 0
Hi and welcome to the board!!

Diablo's formula takes care of all the conditions you mentioned. What other conditions are there? Perhaps
Code:
=IF(A2>B2,"More",IF(A2=B2,"","Less"))
lenze
 
Upvote 0
god knows whats wrong.. i edited the post thrice and still the entire thing does not appear.. let me try putting it in words....
if A is greater than B then C is "more", if A is lesser than B then C is "less", if A is equal to B then C is blank. Thank you.
 
Last edited:
Upvote 0
So, see my above post!!
lenze
NOTE: A "<" will sometimes be interpreted as the beginning of an HTML statement. You need to place a space before and after any "<"
 
Upvote 0
@lenze

thanks for your help.. but its not working
it returns "less" even when both the values of A and B are equal.
 
Upvote 0
Re: @lenze

Are you sure?
Code:
=IF(A2>B2,"More",IF(A2=B2,"","Less"))
works fine for me

lenze
 
Upvote 0

Forum statistics

Threads
1,214,636
Messages
6,120,664
Members
448,976
Latest member
sweeberry

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top