Hello, I have tried a few variations but am not able to shorten or simplify this code. It has 4 "IF" conditions which basicaly do the same thing but on different rows. I get a "formula too long" message.
Help would be much appreciated - I have tried but cannot crack this.
Thank you for your help
Help would be much appreciated - I have tried but cannot crack this.
Thank you for your help
Code:
[FONT=Arial]=IF($A$4="","",IF(ISNUMBER(MATCH($A$4,'D:\Report\MAY\[Plan.xls]Total'!$C$2:$IV$2,0)),INDEX('D:\Report\MAY\[Plan.xls]Total'!C4:IV4,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>[/FONT]
[FONT=Arial]MATCH($A$4,'D:\Report\MAY\[Plan.xls] Total'!$C$2:$IV$2,0)),<o:p></o:p>[/FONT]
[FONT=Arial]IF(ISNUMBER(MATCH($A$4,'D:\Report\MAY\[Plan.xls] Total'!$C$22:$IV$22,0)),INDEX('D:\Report\MAY\[Plan.xls] Total'!C24:IV24,MATCH($A$4,'D:\Report\MAY\[Plan.xls] Total'!$C$22:$IV$22,0)),<o:p></o:p>[/FONT]
[FONT=Arial]IF(ISNUMBER(MATCH($A$4,'D:\Report\MAY\[Plan.xls] Total'!$C$33:$IV$33,0)),INDEX('D:\Report\ MAY \[Plan.xls] Total'!C35:IV35,MATCH($A$4,'D:\Report\MAY\[Plan.xls] Total'!$C$33:$IV$33,0)),<o:p></o:p>[/FONT]
[FONT=Arial]IF(ISNUMBER(MATCH($A$4,'D:\Report\MAY\[Plan.xls] Total'!$C$44:$IV$44,0)),INDEX('D:\Report\ MAY \[Plan.xls] Total'!C46:IV46,MATCH($A$4,'D:\Report\MAY\[Plan.xls] Total'!$C$44:$IV$44,0)),"")))))<o:p></o:p>[/FONT]