I'm on 365. Thanks for the heads upWhat 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’)
23 08 18.xlsm | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
5 | Red | Yellow | Green | Red | ||||||
6 | ||||||||||
7 | 601 | 10 | 11 | 20 | ||||||
8 | 602 | 20 | 12 | 20 | 601 | 10 | ||||
9 | 603 | 30 | 13 | 20 | 602 | 20 | ||||
10 | 605 | 40 | 14 | 20 | 603 | 30 | ||||
11 | 605 | 50 | 15 | 20 | 605 | 150 | ||||
12 | 605 | 60 | 16 | 20 | ||||||
SUM |
Cell Formulas | ||
---|---|---|
Range | Formula | |
H8:H11 | H8 | =BYROW(G8:G11,LAMBDA(r,SUMIFS(INDEX(B7:D12,0,MATCH(H5,B5:D5,0)),A7:A12,r))) |
Dynamic array formulas. |