Match 2 Criteria on multiple sheet and return a value

Yvonne Ng

Board Regular
Joined
Nov 5, 2013
Messages
67
I have data sheet namely Sept, Oct.
I want to create a summary page to see how much I've been bill on that particular invoice.
I try used index and match function for multiple sheet, but not successful.

Please illustrate and advise.
Attached file for reference.
 

Attachments

  • Oct.PNG
    Oct.PNG
    30.9 KB · Views: 3
  • Sept.PNG
    Sept.PNG
    25.6 KB · Views: 3
  • Summary.PNG
    Summary.PNG
    36.8 KB · Views: 3
I have 3 data base here, showing Sept, oct, Nov, and I have 3 seperate summary page for 3 different client. I want retreve the amount on different month sheet and input into client's summary.
this is exactly what i need
I need a formular that can lookup all the month sheet and into the amount into individual client summary sheet
 
Upvote 0

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
I have 3 data base here, showing Sept, oct, Nov, and I have 3 seperate summary page for 3 different client. I want retreve the amount on different month sheet and input into client's summary.
this is exactly what i need
It's not different than what I showed already. You would have 12 help columns for each month for each Client sheet.

EDIT: The numbers came out wrong because I didn't input values in Oct sheet.

Book2
ABCDEFG
1ClientInvoiceSeptOctDecAmountComment
2AA123100010Found In Sept Sheet
3A424010010Found In Oct sheet
4A5320000
ClientA
Cell Formulas
RangeFormula
C2:E4C2=IFERROR(INDEX(INDIRECT("'" &C$1& "'!$C2:C5"),MATCH($A2&$B2,INDIRECT("'" & C$1 & "'!$A$2:$A$5") &INDIRECT("'" & C$1 & "'!$B$2:$B$5"),0)),0)
F2:F4F2=SUM(C2:E2)


Book2
ABCDEFG
1ClientInvoiceSeptOctDecAmountComment
2C567030030Found in Oct Sheet
3CA567300030Found in Sept Sheet
ClientC
Cell Formulas
RangeFormula
C2:D3C2=IFERROR(INDEX(INDIRECT("'" &C$1& "'!$C2:C5"),MATCH($A2&$B2,INDIRECT("'" & C$1 & "'!$A$2:$A$5") &INDIRECT("'" & C$1 & "'!$B$2:$B$5"),0)),0)
F2:F3F2=SUM(C2:E2)
 
Upvote 0
It's not different than what I showed already. You would have 12 help columns for each month for each Client sheet.
Book2
ABCDEFG
1ClientInvoiceSeptOctDecAmountComment
2AA123100010Found In Sept Sheet
3A4240000
4A5320000
ClientA
Cell Formulas
RangeFormula
C2:E4C2=IFERROR(INDEX(INDIRECT("'" &C$1& "'!$C2:C5"),MATCH($A2&$B2,INDIRECT("'" & C$1 & "'!$A$2:$A$5") &INDIRECT("'" & C$1 & "'!$B$2:$B$5"),0)),0)
F2:F4F2=SUM(C2:E2)


Book2
ABCDEFG
1ClientInvoiceSeptOctDecAmountComment
2C5670000
3CA567300030Found in Sept Sheet
ClientC
Cell Formulas
RangeFormula
C2:D3C2=IFERROR(INDEX(INDIRECT("'" &C$1& "'!$C2:C5"),MATCH($A2&$B2,INDIRECT("'" & C$1 & "'!$A$2:$A$5") &INDIRECT("'" & C$1 & "'!$B$2:$B$5"),0)),0)
F2:F3F2=SUM(C2:E2)
But i only want to have the amount showing in one column only regardless of month.
 
Upvote 0
But i only want to have the amount showing in one column only regardless of month.
Then just hide the month and only show the Amount column? Or if you just want 1 formula you're welcome to combine each of those individual monthly formulas into 1, it would be very massive.
 
Upvote 0
yes, one formula to conbined all. this is exact what i need.
Here's the formula for 1 month. Replace "Sept" with other months and sum them all in 1 formula.
Excel Formula:
=IFERROR(INDEX(INDIRECT("'Sept" & "'!$C2:C5"),MATCH($A2&$B2,INDIRECT("Sept"  & "'!$A$2:$A$5") &INDIRECT("Sept" & "'!$B$2:$B$5"),0)),0)
 
Upvote 0
Here's the formula for 1 month. Replace "Sept" with other months and sum them all in 1 formula.
Excel Formula:
=IFERROR(INDEX(INDIRECT("'Sept" & "'!$C2:C5"),MATCH($A2&$B2,INDIRECT("Sept"  & "'!$A$2:$A$5") &INDIRECT("Sept" & "'!$B$2:$B$5"),0)),0)

I got a 0 instead of 10.
did i miss out anything?

ClientInvoiceAmount
AA123
0​
A424
A532
 
Upvote 0
I got a 0 instead of 10.
did i miss out anything?

ClientInvoiceAmount
AA123
0​
A424
A532
=IFERROR(INDEX(INDIRECT("'Sept" & "'!$C2:C5"),MATCH($A2&$B2,INDIRECT("Sept" & "'!$A$2:$A$5") &INDIRECT("Sept" & "'!$B$2:$B$5"),0)),0)
the formula i key in.
 
Upvote 0
=IFERROR(INDEX(INDIRECT("'Sept" & "'!$C2:C5"),MATCH($A2&$B2,INDIRECT("Sept" & "'!$A$2:$A$5") &INDIRECT("Sept" & "'!$B$2:$B$5"),0)),0)
the formula i key in.
We actually don't need the INDIRECT anymore. Try this:
Excel Formula:
=IFNA(INDEX(Sept!$C$2:$C$4,MATCH(ClientC!$A2&ClientC!$B2,Sept!$A$2:$A$4&Sept!$B$2:$B$4,0)),0)

Make sure the reference matches.
 
Upvote 0
We actually don't need the INDIRECT anymore. Try this:
Excel Formula:
=IFNA(INDEX(Sept!$C$2:$C$4,MATCH(ClientC!$A2&ClientC!$B2,Sept!$A$2:$A$4&Sept!$B$2:$B$4,0)),0)

Make sure the reference matches.
=IFNA(INDEX(Sept!$C$2:$C$4,MATCH(A2&B2,Sept!$A$2:$A$4&Sept!$B$2:$B$4,0)),0)
Its work for the data search for sept, but i try add for oct , the formular :
=IFNA(INDEX(Sept!$C$2:$C$4,MATCH(A3&B3,Sept!$A$2:$A$4&Sept!$B$2:$B$4,0))+INDEX(Oct!$C$2:$C$4,MATCH(A3&B3,Oct!$A$2:$A$4&Oct!$B$2:$B$4,0)),0)
Giving me A '0'. how should i corrrect the formula for the other months?
 
Upvote 0

Forum statistics

Threads
1,215,131
Messages
6,123,223
Members
449,091
Latest member
jeremy_bp001

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top