Confusing IF statement not working out

Shredder90

New Member
Joined
Jul 14, 2021
Messages
2
Hi Team,

Been working on an if statement which has a few conditions.

the three conditions which need to be met:

IF(AND(A1>TODAY(),ISBLANK(G4)),"YES" - maintenance is required

IF(AND(A1>TODAY(),(G4 ISNT BLANK?)),"NO" - no maintenance is required because it was carried out already (date noted in G4)

IF(A1<TODAY()),"NO" - Due date for maintenance not reached yet so not required.

Id like to nest all these together in one cell.

Essentially - Need to carry out maintenance when its due and if it hasn't been already carried out already, see below example.

Ive spent 4 hours and cant figure it out, going round in circles.

Cheers

Shreddy.
 

Attachments

  • IMAGE 1.JPG
    IMAGE 1.JPG
    25.7 KB · Views: 7

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
=IF(A1<TODAY(),"NO",IF(AND(A1>TODAY(),ISBLANK(G4)=TRUE),"YES",IF(AND(A1>TODAY(),ISBLANK(G4)=FALSE),"NO",IF(A1=TODAY(),"Today is here"))))

You'll need to set value if A1 is today or change the "A1>TODAY()" sections to "A1>=TODAY()"
 
Upvote 0
Another option
Excel Formula:
=IF(OR(A4<TODAY(),G4<>""),"NO","YES")
 
Upvote 0

Forum statistics

Threads
1,216,146
Messages
6,129,134
Members
449,488
Latest member
qh017

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