Jesper_m

New Member
Joined
Oct 22, 2018
Messages
3
Dear all.

I have been working on for a while with a sum issue that I simply can't find a solution to.

I whant to be able to SUM the amount for account "3183-001-01" and for "Jan to Mar" but how do I do that ?

I have tried both "Sumproduct" and "Index" and Match" but I cannot make it sum both columns and rows.


ABCDEFGHIJKL
1AccountjanFebMarAprMayJunJulAugSepOctNov
23183-001-01102030405060708090100110
33183-001-0111111111111
43183-001-0122222222222
53184-001-0133333333333
63184-001-0144444444444

<tbody>
</tbody>

Thanks in advance,

Jesper
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
try this


Book1
ABCDEFGHIJKL
1AccountjanFebMarAprMayJunJulAugSepOctNov
23183-001-01102030405060708090100110
33183-001-0111111111111
43183-001-0122222222222
53184-001-0133333333333
63184-001-0144444444444
7
8Account
93183-001-01
10jan
11Mar
1269
104
Cell Formulas
RangeFormula
A12=SUMPRODUCT((--(MONTH("1/"&$B$1:$L$1)>=MONTH("1/"&A$10)))*(--(MONTH("1/"&$B$1:$L$1)<=MONTH("1/"&A$11)))*($A$2:$A$6=$A9)*$B$2:$L$6)
 
Upvote 0
His formula works for his example.
Did you populate the input cells, A9:A11 too?
 
Upvote 0
In A12 control+shift+enter, not just enter:

=SUM(IF($A$2:$A$6=A9,IF((1&$B$1:$L$1)+0>=(1&A10)+0,IF((1&$B$1:$L$1)+0<=(1&A11)+0,$B$2:$L$6))))

Note 1. This refers to the set up of AlanY in post #2 .

Note 2. Items like Jan, Feb, etc. are considered to be text values.
 
Upvote 0
Upvote 0

Forum statistics

Threads
1,216,562
Messages
6,131,422
Members
449,651
Latest member
Jacobs22

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