SUM and FILTER function on two dimension array...

dxg169

New Member
Joined
Sep 12, 2022
Messages
3
Office Version
  1. 365
  2. 2021
Hi - I'm trying to work out if there is a way to use the FILTER function and SUM, to have both criteria along rows and columns.

Example formula below (yellow cell in image), with the first two criteria in the FILTER formula being on columns.... whilst the third criteria is along a row.

=SUM( FILTER( $C$4:$E$13,
($A$4:$A$13=$G5) * ($B$4:$B$13=J$4) * ($C$3:$E$3=$H5),0))

The alternative is to use the FILTER function on only columns, but I'd need a different formula for each cost, realisation and book value line.

I can't work out how to easily attach this file to my post, so have attached this image.

1663003810201.png
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
How about
Excel Formula:
=SUM(FILTER(FILTER($C$4:$E$13,($A$4:$A$13=$G5)*($B$4:$B$13=J$4)),$C$3:$E$3=$H5),0)
 
Upvote 0
Another option
Excel Formula:
=SUMIFS(INDEX($C$4:$E$13,,MATCH($H5,$C$3:$E$3,0)),$A$4:$A$13,$G5,$B$4:$B$13,J$4)
 
Upvote 0

Forum statistics

Threads
1,214,947
Messages
6,122,411
Members
449,081
Latest member
JAMES KECULAH

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