Hi DevrajHi Sanjeev,
In H15, use formula as ...
=SUM(SUMIF(OFFSET($B$3:$B$6,,{0,3,6,9}),B13,OFFSET($C$3:$C$6,,{0,3,6,9})))
Thanks a million...C13: =SUMIFS(OFFSET($C$3:$C$5,,MATCH(C$12,$B$1:$L$1,0)-1),OFFSET($B$3:$B$5,,MATCH(C$12,$B$1:$L$1,0)-1),$B13)
Copy across and down
great SajanHi,
Attached is your workbook modified with formulas to generate the unique colors list, unique range headings, and data values.
Cheers,
Sajan.