tycasey17
Board Regular
- Joined
- Sep 26, 2013
- Messages
- 93
- Office Version
- 2019
- 2016
- Platform
- Windows
I have been trying to have a nested IF statement based on the year. It seems like the year portion is causing the issue but I cannot seem how to fix this, I am trying to have multiple years on the same sheet but have a formula to pull up by the year I select.
SAMPLE FORMULA:
IF(A1="2019",
IF(VLOOKUP(A2,B2:D10,2,FALSE)="YES","YES",
IF(VLOOKUP(A2,B2:D10,2,FALSE)="NO","NO","")),
IF(A1="2020",
IF(VLOOKUP(A2,B2:D10,3,FALSE)="YES","YES",
IF(VLOOKUP(A2,B2:D10,3,FALSE)="NO","NO","")),""))
SAMPLE FORMULA:
IF(A1="2019",
IF(VLOOKUP(A2,B2:D10,2,FALSE)="YES","YES",
IF(VLOOKUP(A2,B2:D10,2,FALSE)="NO","NO","")),
IF(A1="2020",
IF(VLOOKUP(A2,B2:D10,3,FALSE)="YES","YES",
IF(VLOOKUP(A2,B2:D10,3,FALSE)="NO","NO","")),""))