So I'm having an issue pulling data from two sheets that have the same headings into a master sheet where all the data should be kept. The "Initial Invoices" sheet and "Secondary Invoices" are the sheets where the data should be pulled from. I understand how to use an index array formula to pull data from another sheet in excel but I'm having trouble when I need to pull the data from two sheets into one giant sheet which will ultimately contain every invoice.
Here's the formula I'm attempting and having trouble with...It's clearly wrong as you'll see the results are adding whats being reported for "Table2" to whats being reported in "table3" but its how I imagined the formula should work. Hopefully you'll understand what I'm referring to as you see the sample file.
=IFERROR(INDEX(Table2+Table3[#Data],SMALL(IF((Table2[PO '#]<>"")+(Table3[PO '#]<>""),ROW(Table2[PO '#])-MIN(ROW(Table2[PO '#]))+1,""),ROWS($1:2)), MATCH(A$1,'Initial Invoices'!$A$1:$D$1,0)),"")
So as youll see in the "master invoices" sheet, the formula is only reporting 9 rows of data when it should be reporting all 14 distinct PO #'s. (9 from Table2 and 5 from Table3) Instead of adding the two numbers together.
Thank you in advance for your help
Mike Stafford
Bookmarks