Hi,
You'd be better advised to use INDEX() & MATCH()
You also need to shift your July - December table on the Margin_Table sheet to V1 so that all months are on the same rows. Then the formula on the cover sheet in B4 copied across and down is
Formula:
=INDEX(Margin_Table!$A$1:$AM$30,MATCH($A4,Margin_Table!$A$1:$A$30,FALSE),MATCH($B$1,Margin_Table!$1:$1,FALSE)+COLUMN()-2)
Yes it's failing currently because there are merged cells, (you should avoid those like the plague since they are often a real nuisance and can compromise other aspects of Excel. Use the Center across selection format instead). Putting January in C1 on the Margin Table sheet would correct it but the C4 cell would need to be changed to C1:C64 and it thereby becomes different to B4. i.e. you can't then copy B4 across.
Bookmarks