DRExcel515
Board Regular
- Joined
- Oct 20, 2017
- Messages
- 56
Here is a formula I am trying to build that basically states: If the current month value is (null) and the next month value is (null) then say "OKAY", but if the current month value is (null) and the second month value is <>(null) say "Current Month NA?" and if all of that is false (current month is a value basically) then pull back that value. For some reason I keep getting a FALSE. I tried using an If(and, IF(or etc. but all give me the FALSE. Any help would be much appreciated.
IF(INDEX('SQL Dump'!D:D,MATCH('SD Calcs'!$B3,'SQL Dump'!$A:$A,0))="(null)",IF(INDEX('SQL Dump'!D:D,MATCH('SD Calcs'!$A3,'SQL Dump'!$A:$A,0))="(null)","OKAY",IF(INDEX('SQL Dump'!D:D,MATCH('SD Calcs'!$B3,'SQL Dump'!$A:$A,0))="(null)",IF(INDEX('SQL Dump'!D:D,MATCH('SD Calcs'!$A3,'SQL Dump'!$A:$A,0))<>"(null)","Current Month NA?",INDEX('SQL Dump'!D:D,MATCH('SD Calcs'!$B3,'SQL Dump'!$A:$A,0))))))
Or:
IF(AND(INDEX('SQL Dump'!D:D,MATCH('SD Calcs'!$B4,'SQL Dump'!$A:$A,0)),INDEX('SQL Dump'!D:D,MATCH('SD Calcs'!$A4,'SQL Dump'!$A:$A,0)))="(null)","OKAY",IF(INDEX('SQL Dump'!D:D,MATCH('SD Calcs'!$B4,'SQL Dump'!$A:$A,0))="(null)",IF(INDEX('SQL Dump'!D:D,MATCH('SD Calcs'!$A4,'SQL Dump'!$A:$A,0))<>"(null)","Current Month Missing",INDEX('SQL Dump'!D:D,MATCH('SD Calcs'!$B4,'SQL Dump'!$A:$A,0),0))))
IF(INDEX('SQL Dump'!D:D,MATCH('SD Calcs'!$B3,'SQL Dump'!$A:$A,0))="(null)",IF(INDEX('SQL Dump'!D:D,MATCH('SD Calcs'!$A3,'SQL Dump'!$A:$A,0))="(null)","OKAY",IF(INDEX('SQL Dump'!D:D,MATCH('SD Calcs'!$B3,'SQL Dump'!$A:$A,0))="(null)",IF(INDEX('SQL Dump'!D:D,MATCH('SD Calcs'!$A3,'SQL Dump'!$A:$A,0))<>"(null)","Current Month NA?",INDEX('SQL Dump'!D:D,MATCH('SD Calcs'!$B3,'SQL Dump'!$A:$A,0))))))
Or:
IF(AND(INDEX('SQL Dump'!D:D,MATCH('SD Calcs'!$B4,'SQL Dump'!$A:$A,0)),INDEX('SQL Dump'!D:D,MATCH('SD Calcs'!$A4,'SQL Dump'!$A:$A,0)))="(null)","OKAY",IF(INDEX('SQL Dump'!D:D,MATCH('SD Calcs'!$B4,'SQL Dump'!$A:$A,0))="(null)",IF(INDEX('SQL Dump'!D:D,MATCH('SD Calcs'!$A4,'SQL Dump'!$A:$A,0))<>"(null)","Current Month Missing",INDEX('SQL Dump'!D:D,MATCH('SD Calcs'!$B4,'SQL Dump'!$A:$A,0),0))))