Hi Taj48,
I modified the amazing formula kvsrinivasamurthy provided to work with dynamic ranges.
I set the following dynamic ranges
Formula:
Data=OFFSET(Input!$D$2,0,0,COUNTA(Input!$A:$A)-1,COUNTA(Input!$1:$1)-3)
Headers=OFFSET(Input!$D$1,0,0,1,COUNTA(Input!$1:$1)-3)
Names=OFFSET(Input!$C$2,0,0,COUNTA(Input!$C:$C)-1,1)
So the modified formula looks like this in "B2"
Formula:
=SUMPRODUCT(INDEX(Data,,MATCH(Output!$A2,Headers,0)),--(Names=Output!B$1))
I have attached the workbook.
Attachment 263621
Thanks
Bookmarks