A Sum Index (Match maybe?) Formula

NyxieMoon

New Member
Joined
Jan 31, 2018
Messages
10
Hello!

I am looking for a formula to assist me with this:

I have a file with three sheets; let's say Sheet1, Sheet2, and Sheet3. I would like Sheet1 as my main page and where I would like the formula to be set up. This will include the customer number and a place for the formula to return.

Sheet2 has the customer number with the dollar amount spent.

Sheet3 has the customer number with the dollar amount currently in transaction.

I need Sheet1 to have a formula to Index/Match both Sheet2 and Sheet3 values to the customer number and add the totals together. A tricky thing about this is that there are multiple entries on both Sheet2 and Sheet3 with the customer number and I need all the totals added together.

I tried =sum(index(Sheet1!$C$4:$C$15,match(A1,Sheet1!$B$4:$B$15,0))) to see if it would total just one page of entries and it did not; but I need two pages of entries!

Any help or assistance would be great!

Thank you!
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
You can use sumif


Excel 2010
AB
1cust #
212323
Sheet1
Cell Formulas
RangeFormula
B2=SUMIF(Sheet2!A2:A6,A2,Sheet2!B2:B6)+SUMIF(Sheet3!A2:A6,A2,Sheet3!B2:B6)



Excel 2010
AB
1cust #amt
21237
36543
432111
5194666
612310
Sheet2



Excel 2010
AB
1cust #cur amt
21235
36545
43216
519461
61231
Sheet3
 
Upvote 0
Sheet2 has the customer number with the dollar amount spent.
Sheet3 has the customer number with the dollar amount currently in transaction.
I need Sheet1 to have a formula to Index/Match both Sheet2 and Sheet3 values to the customer number and add the totals together. A tricky thing about this is that there are multiple entries on both Sheet2 and Sheet3 with the customer number and I need all the totals added together.
col Ccol Hcol Icol Mcol N
sheet1sheet2sheet3
numbertotalsnumberspentnumbertrans
cust14561500row 12123100123250
cust25671680456105456275
234110234300
567115567325
123120123350
456125456375
234130234400
567135567425
123140123450
456145456475
234150234500
row 23567155567525
formula giving 1500
=SUMPRODUCT(($H$12:$H$23=C12)*($I$12:$I$23))+SUMPRODUCT(($M$12:$M$23=C12)*($N$12:$N$23))
is this what you want
if so just add sheet references to the formula

<colgroup><col><col span="14"></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,216,085
Messages
6,128,733
Members
449,465
Latest member
TAKLAM

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