... The only problem I see is the formula is dependent upon the number in which the column in the table resides...
=INDEX(INDIRECT($B4),MATCH($C4,INDEX(INDIRECT($B4),,2),0),MATCH(D$3,INDEX(INDIRECT($B4),1,0),0))
WhereMATCH(D$3,INDEX(INDIRECT($B4),1,0),0)
will return the column of Inv/Ret which matches the column header in Cons. (providing that the corresponding headers are exactly the same)
Note:
named range:
Inventory =INVENTORY!$B$3:$K$500
should have been:
Inventory =INVENTORY!$B$2:$K$500
to include the header row.
Bookmarks