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

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
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,415
Messages
6,119,377
Members
448,888
Latest member
Arle8907

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