A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hello,
So I have two tables and one is pulling information from the other. Here are the two tables:
Table 1
A B C D E F G 1 ACCOUNTNUMBER Name1 Name2 Name3 1 time charge Fee Taxes 2 1111111 John Joe Noe 3 22222222 Sam Smith Now Table 2
A B C 1 ACCOUNTNUMBER Charge Type Total Amount 2 1111111 1 time charge $35.00 3 1111111 Fee $29.98 4 1111111 Taxes $0.00 5 22222222 1 time charge $0.00 6 22222222 Fee $29.98 7 22222222 Taxes $0.00
When I put in this formula in E2 of the first table:
=INDEX('TABLE 2'!$C$2:$C$7,MATCH(Sheet1!$A2,'TABLE 2'!$A$2:$A$7,0),MATCH(Sheet1!E$1,'TABLE 2'!$B$2:$B$7,0))
I get the right result witch is $35.00
But when I put this formula in F2 of the first table:
=INDEX('TABLE 2'!$C$2:$C$7,MATCH(Sheet1!$A2,'TABLE 2'!$A$2:$A$7,0),MATCH(Sheet1!F$1,'TABLE 2'!$B$2:$B$7,0))
I get #REF!
What am I donig wrong? Is there a limit to the number of times you use a index/match in a workseet?
Thanks
Try this...
Entered in E2:
=SUMIFS('Table 2'!$C$2:$C$7,'Table 2'!$A$2:$A$7,$A2,'Table 2'!$B$2:$B$7,E$1)
Copy across to G2 then down as needed.
--
Biff
Microsoft Excel MVP