IF Statement (I think) Help Please

mattyn

Board Regular
Joined
Apr 20, 2015
Messages
148
I have a simple manpower spreadsheet, specific columns as follows:

Col FCol ICol OCol UCol X
SurnameLeaving DateGapped today + 7 daysReplacement SurnameReplacement arrival date
SMITH12/2/21here i want to indicate whether the role is gapped in seven days time. I think IF Statement - so GAP or OKJONES21/2/21

Like I say, in Col O i want to indicate whether the position is gapped in 7 days time.

I could have a name in Col F, with no date in Col I.
I cannot have a name in Col U without a date in Col X.

Criteria:
If incumbent name still in Col F, and Col I blank, Col O = "OK".
If Col F, I and X are blank, Col O = "GAP"
If Col F and I are blank, and Col X has a date before today + 7, Col O = "OK".
If Col F and I are blank, and Col X has a date after today + 7, Col O = "Gap".
If incumbent name in Col F, and date in Col I is less than today + 7, and Col X is blank, Col O = "GAP".

I have spent all afternoon trying to write the IF statement and keep getting myself tied up in knots. Hopefully its easy for one of you experts, and I appreciate you help and thank you in advance.

VMT

Matt
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
This would fit your criteria. Your example doesnt seem to be true for any of the criteria.

=IF(OR(AND(F2="",I2="",X2=""),AND(F2="",I2="",X2>TODAY()+7),AND(F2<>"",I2<TODAY()+7,X2="")),"GAP",IF(OR(AND(F2<>"",I2=""),AND(F2="",I2="",X2<TODAY()+7)),"OK","Something Else"))
 
Upvote 0

Forum statistics

Threads
1,215,025
Messages
6,122,732
Members
449,093
Latest member
Mnur

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