Try this to get the last filled in week,
the first match returns which Row contains the Category #, (with the $A$3:$A$168 being the array to look in, so 50 in this case returns a 1), The second match tries to find the largest number available to excel, in the row returned by the first formula(note, the match within the match is exactly the same as the first match), if it doesn't find it, it returns (in this case) the # of the last cell that contains a number, giving an
offset within the 52 cells that it looks at, we add 1 to this number to get the right column number for the overall offsetusing the sample I uploaded)
=Offset($A$2,{row offset,so for 50}1,{column offset of last column, again, for 50}8 + 1)
=Offset($A$2,1,9) which would be the same as $J$3
Hope this helps
Bookmarks