MrsFraser07
New Member
- Joined
- Aug 16, 2017
- Messages
- 46
- Office Version
- 365
- Platform
- Windows
- MacOS
Here is my nested IF statement. For some reason it has an issue when cells in column "J" are "Injector" and cells in column "M" are blank. Not sure why the IF statement isn't working on these cells. I'm telling it to look in column "N" for a date if the cell in column "J" is "Injector" so it shouldn't matter if "M" is blank. But, it obviously does. Any ideas???
=IF(J8669="No Activity","Inactive",
IF(AND(J8669="Producer",DATEDIF(M8669,$C$1,"D")<365),"Active",
IF(AND(J8669="Producer",DATEDIF(M8669,$C$1,"D")>=365),"Inactive",
IF(AND(J8669="Injector",DATEDIF(N8669,$C$1,"D")<365),"Active",
IF(AND(J8669="Injector",DATEDIF(N8669,$C$1,"D")>=365),"Inactive","??")))))
Thanks for your help!
=IF(J8669="No Activity","Inactive",
IF(AND(J8669="Producer",DATEDIF(M8669,$C$1,"D")<365),"Active",
IF(AND(J8669="Producer",DATEDIF(M8669,$C$1,"D")>=365),"Inactive",
IF(AND(J8669="Injector",DATEDIF(N8669,$C$1,"D")<365),"Active",
IF(AND(J8669="Injector",DATEDIF(N8669,$C$1,"D")>=365),"Inactive","??")))))
Thanks for your help!