Sumif, index match help

Mike820

New Member
Joined
Jul 24, 2019
Messages
21
In my "summary" tab I have a list of accounts that I would like to sum balances in a specific month from "sheet2" and "sheet3" based on a few criteria's. I would like to incorporate the following logic into a formula.
1- return the balance for March if account # and Managed columns are a match in "sheet2"
2- return the balance for March is account # and managed columns are a match in "Sheet3"
3- sum the two balances.
if there is no match in sheet2 then return the value from only sheet3.

Thanks,
 

Attachments

  • 4461D432-5F7F-4F07-BE04-C4695447400E.png
    4461D432-5F7F-4F07-BE04-C4695447400E.png
    17.4 KB · Views: 5
  • A014A0AE-B5F7-4F71-9AB2-7685D24969A7.png
    A014A0AE-B5F7-4F71-9AB2-7685D24969A7.png
    18.6 KB · Views: 6
  • 6D2F7E2E-D3EC-4AFA-8B7A-EB04B0E38959.png
    6D2F7E2E-D3EC-4AFA-8B7A-EB04B0E38959.png
    13.8 KB · Views: 5

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Hi,

This would work.
For future reference, please consider posting samples with XL2BB, so we don't have to recreate your data manually, see my signature for where and how.

Book1
ABCDE
3MarchAprilMay
4Yes1131700600130
5Yes1144002050
Sheet1
Cell Formulas
RangeFormula
C4:E5C4=SUMPRODUCT((Sheet2!$D$5:$F$5=C$3)*(Sheet2!$B$6:$B$8=$A4)*(Sheet2!$C$6:$C$8=$B4)*Sheet2!$D$6:$F$8)+SUMPRODUCT((Sheet3!$D$5:$F$5=C$3)*(Sheet3!$B$6:$B$8=$A4)*(Sheet3!$C$6:$C$8=$B4)*Sheet3!$D$6:$F$8)


Book1
BCDEF
5MarchAprilMay
6Yes1131000500100
7No1133000100090
8No11450004007000
Sheet2


Book1
BCDEF
5MarchAprilMay
6Yes11370010030
7Yes1144002050
8No1134509090
9No114902020
Sheet3
 
Upvote 0
Thank you. Is there a more efficient way to do this? this formula works like you said. Only issue is that I have over 2000 accounts and a 12 month period. As you can imagine it take a very long time for the formula to calculate a sheet.
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0

Forum statistics

Threads
1,215,684
Messages
6,126,199
Members
449,298
Latest member
Jest

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