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
Depends on how many months you have. By your description, it's probably a lot. It is possible with a formula but can get pretty large. Easier solution would be VBA.
yes, if to compile a year, I might need a formula for every month from Jan to December.
i'm not so familiar with VBA as compare using formula.
Appreciates if you can advise further using formula.
 
Upvote 0

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
I would use helper columns for each month, then look for the one with real value like this.

Book1
ABCDEF
1ClientInvoiceSeptOctNovAmount
2AA123100010
3EA456200020
4CA567300030
5A123040040
6E456050050
7C678060060
8AB123007070
9EB456008080
10CB6789009090
Summary
Cell Formulas
RangeFormula
C2:E10C2=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:F10F2=SUM(C2:E2)


Sample of the monthly sheet.
Book1
ABC
1ClientInvoiceAmount1
2AA12310
3EA45620
4CA56730
Sept
 
Last edited:
Upvote 0
I would use helper columns for each month, then look for the one with real value like this.

Book1
ABCDEF
1ClientInvoiceSeptOctNovAmount
2AA123100010
3EA456200020
4CA567300030
5A123040040
6E456050050
7C678060060
8AB123007070
9EB456008080
10CB6789009090
Summary
Cell Formulas
RangeFormula
C2:E10C2=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:F10F2=SUM(C2:E2)


Sample of the monthly sheet.
Book1
ABC
1ClientInvoiceAmount1
2AA12310
3EA45620
4CA56730
Sept
I would use helper columns for each month, then look for the one with real value like this.

Book1
ABCDEF
1ClientInvoiceSeptOctNovAmount
2AA123100010
3EA45620100010
3EA456200020
4CA567300030
5A123040040
6E456050050
7C678060060
8AB123007070
9EB456008080
10CB6789009090
Summary
Cell Formulas
RangeFormula
C2:E10C2=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:F10F2=SUM(C2:E2)


Sample of the monthly sheet.
Book1
ABC
1ClientInvoiceAmount1
2AA12310
3EA45620
4CA56730
Sept

[/QUOTE]
I would use helper columns for each month, then look for the one with real value like this.

Book1
ABCDEF
1ClientInvoiceSeptOctNovAmount
2AA123100010
3EA456200020
4CA567300030
5A123040040
6E456050050
7C678060060
8AB123007070
9EB456008080
10CB6789009090
Summary
Cell Formulas
RangeFormula
C2:E10C2=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:F10F2=SUM(C2:E2)


Sample of the monthly sheet.
Book1
ABC
1ClientInvoiceAmount1
2AA12310
3EA45620
4CA56730
Sept
I would use helper columns for each month, then look for the one with real value like this.

Book1
ABCDEF
1ClientInvoiceSeptOctNovAmount
2AA123100010
3EA456200020
4CA567300030
5A123040040
6E456050050
7C678060060
8AB123007070
9EB456008080
10CB6789009090
Summary
Cell Formulas
RangeFormula
C2:E10C2=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:F10F2=SUM(C2:E2)


Sample of the monthly sheet.
Book1
ABC
1ClientInvoiceAmount1
2AA12310
3EA45620
4CA56730
Sept
I'm unable to do this because I received the
I would use helper columns for each month, then look for the one with real value like this.

Book1
ABCDEF
1ClientInvoiceSeptOctNovAmount
2AA123100010
3EA456200020
4CA567300030
5A123040040
6E456050050
7C678060060
8AB123007070
9EB456008080
10CB6789009090
Summary
Cell Formulas
RangeFormula
C2:E10C2=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:F10F2=SUM(C2:E2)


Sample of the monthly sheet.
Book1
ABC
1ClientInvoiceAmount1
2AA12310
3EA45620
4CA56730
Sept
I'm unable to do this because I received different client with different invoice no., every month , that's why I have Multiple sheet .
and for summary , i have different sheet for individual client too. that's why i need set up a formula to retrieve the data on different month into different summary page.
 
Upvote 0


I'm unable to do this because I received the

I'm unable to do this because I received different client with different invoice no., every month , that's why I have Multiple sheet .
and for summary , i have different sheet for individual client too. that's why i need set up a formula to retrieve the data on different month into different summary page.
[/QUOTE]

It would be greatful if you can advise the formula to work on multiple sheet with the criteria which i mention earlier.
 
Upvote 0
It would be greatful if you can advise the formula to work on multiple sheet with the criteria which i mention earlier.
Did you look at the formula? I'm using INDIRECT to reference each monthly sheet.

For example, INDRECT(C1,...), where C1 = Sept. I'm looking at the Sept sheet.
 
Upvote 0
Did you look at the formula? I'm using INDIRECT to reference each monthly sheet.

For example, INDRECT(C1,...), where C1 = Sept. I'm looking at the Sept sheet.
yes, however, in my summary, i do not want to split monthly by monthly, i just need to have the amount to be reflected based on criteria client and Invoice match by looking into all sheets of different month.
as i have different sheet of summary for client A, cliemt B, client C. so for every of the summary sheet, i just need to know how much I;ve been invoice afterall.
 
Upvote 0
yes, however, in my summary, i do not want to split monthly by monthly, i just need to have the amount to be reflected based on criteria client and Invoice match by looking into all sheets of different month.
I said the monthly columns are helper columns to look into each sheet. As you potentially have 12 sheets, 1 formula would be massive. You can choose to hide those. The Amount column is the relevant one. Am I missing something?
 
Upvote 0

Forum statistics

Threads
1,215,133
Messages
6,123,234
Members
449,092
Latest member
SCleaveland

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