GUINNESS85
New Member
- Joined
- Aug 11, 2011
- Messages
- 7
First time trying to do a nested if statement, can someone help me out? Guessing my " ' or ) are not right...
I am getting a #REF! error
=IF(J41=(INDIRECT("'VVINSTAC"&F3&"'")),0,IF(J41=(INDIRECT("'INSTAC"&F3&"'")),0,IF(J41=(INDIRECT("'REMAC"&F3&"'")),J44,IF(J41=(INDIRECT("'AUDITAC"&F3&"'")),J44,""))))
J41 is just displaying the active worksheet name via
=REPLACE(J40,1,89,"")
J40 is the filename
I am getting a #REF! error
=IF(J41=(INDIRECT("'VVINSTAC"&F3&"'")),0,IF(J41=(INDIRECT("'INSTAC"&F3&"'")),0,IF(J41=(INDIRECT("'REMAC"&F3&"'")),J44,IF(J41=(INDIRECT("'AUDITAC"&F3&"'")),J44,""))))
J41 is just displaying the active worksheet name via
=REPLACE(J40,1,89,"")
J40 is the filename