Can anybody tell me how I would re-write the formula below using either ANDs, IFs, or OR equations?
My problem is this formula is resulting in an N/A result and I need it to display a zero if any of the criteria are missing. The way the spreadsheet is set up is a year in Column D, a type of project in Column E, and a region in Column G.
I have tried to fix this with an IF statement that says if Column E is "", insert 0 but it says there is an error with the formula being too long or the formula not being valid.
=(IF($D48=2010,IF($G48="NA",INDEX(Profiles!$B$5:$O$10,MATCH(Data!$E48,Profiles!$B$5:$B$10,0)),12),INDEX(Profiles!$B$15:$O$19,MATCH(Data!$E48,Profiles!$B$15:$B$19,0),12)),(IF($D48=2011,IF($G48="NA",INDEX(Profiles!$B$5:$O$10,MATCH(Data!$E48,Profiles!$B$5:$B$10,0),11),INDEX(Profiles!$B$15:$O$19,MATCH(Data!$E48,Profiles!$B$15:$B$19,0),11)),(IF($D48=2012,IF($G48="NA",INDEX(Profiles!$B$5:$O$10,MATCH(Data!$E48,Profiles!$B$5:$B$10,0),10),INDEX(Profiles!$B$15:$O$19,MATCH(Data!$E48,Profiles!$B$15:$B$19,0),10)),(IF($D48=2013,IF($G48="NA",INDEX(Profiles!$B$5:$O$10,MATCH(Data!$E48,Profiles!$B$5:$B$10,0),9),INDEX(Profiles!$B$15:$O$19,MATCH(Data!$E48,Profiles!$B$15:$B$19,0),9)),(IF($D48=2014,IF($G48="NA",INDEX(Profiles!$B$5:$O$10,MATCH(Data!$E48,Profiles!$B$5:$B$10,0),8),INDEX(Profiles!$B$15:$O$19,MATCH(Data!$E48,Profiles!$B$15:$B$19,0),8)),0)))))))))
Thanks for your help
Bookmarks