Nested If Statment

n18

New Member
Joined
Apr 14, 2011
Messages
17
Hi,

I have a 'if statement' that works

=IF(B2>=C2,"Yes","No")

What I need to do is is put another if in this,
so if the cell is not blank then do the above formula.

Any idea how to do this in one statement?

Thanks
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Thanks for getting back to me, I am still getting the same result, so if one of B2 or C2 is blank or both I am still getting a value of Yes or No. I'm hoping to get a result of blank.

It should only return a value of yes or no if both B2 and C2 are populated. I'm basically seeing if one date is greater than the other, if it is then 'No' otherwise it's 'Yes'.

Thanks for the help
 
Upvote 0
Thanks, must be something to do with my sheet, the date cells, B2 and C2 etc, are coming form a linked sheet so that might be something to do with it. Thanks anyway for the help
 
Upvote 0
Maybe they contain a space instead of being blank. In that case

=IF(OR(B2=" ",C2=" "),"",IF(B2>=C2,"Yes","No"))
 
Upvote 0
Thanks again, just removed the link between the sheets and it worked, no idea why it doesn't work with the link because the cells are still populated with the same values, i.e. blank or a date. Have to do a bit of research and see
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,882
Members
452,948
Latest member
Dupuhini

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