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

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Diablo II

Well-known Member
Joined
Sep 28, 2008
Messages
538
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

lenze

Legend
Joined
Feb 18, 2002
Messages
13,690
ADVERTISEMENT
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

perfecttip

New Member
Joined
Mar 3, 2009
Messages
48
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

perfecttip

New Member
Joined
Mar 3, 2009
Messages
48
ADVERTISEMENT
yeah.. putting the entire matter in words worked..
 
Upvote 0

lenze

Legend
Joined
Feb 18, 2002
Messages
13,690
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

perfecttip

New Member
Joined
Mar 3, 2009
Messages
48
@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

lenze

Legend
Joined
Feb 18, 2002
Messages
13,690
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,195,953
Messages
6,012,515
Members
441,703
Latest member
clivelincoln

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
Top