Hi, I am trying to compile financial statements and am trying to put together a formula to pull account numbers into their proper reporting lines and years. Currently, I am just adding up multiple index/match formulas with a "+" between them. Is there a way to use a single index/match as an array to sum up all of the results from various lookup values? Here is an example of one of the formulas:
=(IFERROR(INDEX(Sheet2!$A$1:$AG$500,MATCH($A5, Sheet2!$C$1:$C$509,0),MATCH(C$1, Sheet2!$A$1:$AG$1,0)),0))+(IFERROR(INDEX(Sheet2!$A$1:$AG$500,MATCH($B5, Sheet2!$C$1:$C$509,0),MATCH(C$1, Sheet2!$A$1:$AG$1,0)),0))+(IFERROR(INDEX(Sheet2!$A$1:$AG$500,MATCH($A5, Sheet2!$C$1:$C$509,0),MATCH(B$1, Sheet2!$A$1:$AG$1,0)),0))+(IFERROR(INDEX(Sheet2!$A$1:$AG$500,MATCH($B5, Sheet2!$C$1:$C$509,0),MATCH(B$1, Sheet2!$A$1:$AG$1,0)),0))
As you can see, this is rather unwieldy and that is one of the shorter examples. I have also attached a sample of the data. Thanks in advance for any help. Sample data.xlsx
Bookmarks