Dynamic 365 solution for SUMIF INDEX MATCH

PrettyGood_Not Great

Board Regular
Joined
Nov 24, 2023
Messages
93
Office Version
  1. 365
Platform
  1. Windows
Hi, I am wondering if there is a go to 365 equation that can spill down or possibly even spill in 2d that can replace an old 2016 staple.

SUMIF(Sheet1!Vertical Criteria Range,Vertical Criteria,INDEX(Sheet1!Sum Range,0,XMATCH(Horizontal Criteria,Sheet1!Horizontal Criteria Range,0))

If more information is required I can provide, however I am looking at this as a general case. I use this equation in many different places.

Thank you
 
Not sure why you said this at the beginning then? ;)



If you only want to spill down, then try ..

24 03 19.xlsm
BCDEFGOPQRSTU
1Data TableMar-24Apr-24May-24Jun-24Jul-24365 SoltuionResult Table1025203040
21091345Mar-2416156184
32584618Apr-247911714
42055591May-241212844
53096243Jun-2412814128
64025358Jul-241113269
71076986
82575675
92016351
103091283
114029131
PGNG (3)
Cell Formulas
RangeFormula
Q2:U6Q2=BYROW($P2:$P6,LAMBDA(r,SUMIF($B2:$B11,Q1,INDEX($C2:$G11,0,MATCH(r,$C1:$G1,0)))))
Dynamic array formulas.
I didn't think I was going to get the 2D before the 1D! I use this equation in so many applications. @KRice and Peter thank you for the 2D solution as well! I will put this to good use. Thanks so much! @shaowu459 thanks for these solutions also, hopefully I get these soon. Great thread!
 
Upvote 0

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
You're welcome. Glad we could help. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,215,084
Messages
6,123,028
Members
449,092
Latest member
ikke

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