Sum with criteria only numbers in range that contains text

samdk

New member
Joined
Dec 14, 2018
Messages
13
Reaction score
0
Points
1
Location
Paris
Excel Version(s)
O365
Hello,

I have this specific range with numbers and " " (which means that the cell is blank, but contains space -> isn't a number) :

1ABCDEFGHIJ
2Criteria columnjanfévmaraprmaijuinjulyaugsept
3Name 1" "" "5121722252123
4Name 1" "" "37514192018
5Name 2" "" "" "" "" "9121622
6Name 2" "" "" "" "" "3468
7Name 3" "" "" "035789
8Name 3" "" "" "001358
9Name 4" "" "" "" "" "" "122430
10Name 4" "" "" "" "" "" "91627


Then I need to sum numbers (in cumuluative way) according to :

Criteria 1 : Name 2
Criteria 2 : august
the result will be : 9+12+16+3+4+6 =50

Criteria 1 : Name 4
Criteria 2 : sept
the result will be : 12+24+30+9+16+27 =118

Thanks in advance for your help.

Cheers,
Sam
 
Try this:

=SUMPRODUCT(($A$2:$A$9=M2)*(COLUMN($B$1:$J$1)-1<=MATCH(M3,$B$1:$J$1,0)),$B$2:$J$9)
 

Attachments

  • Cumulative SUM AliGW.xlsx
    10.2 KB · Views: 2
Thanks a lot AliGW for your time,

Your response is much appreciated, it works like a charm ! :)

Have a perfect day !
 
Back
Top