owentmoore
Technical User
Hi
I have a dynamic named range as follows:
The code picks up creats the range from Z2 as required, counts along row 2 as required, but instead of stopping at my last value, keeps counting 20 columns past my last column containing a value.
When I put this exact code in a different sheet, substituting the sheet name as appropriate, it counts the correct number of columns!
I cannot figure out why it is doing this.
Does anyone have any suggestions????
Thanks
Owen
I have a dynamic named range as follows:
Code:
= OFFSET('Summary Data'!$Z$2,0,0,COUNTA('Summary Data'!$Z$2:$Z$2),COUNTA('Summary Data'!$2:$2))
The code picks up creats the range from Z2 as required, counts along row 2 as required, but instead of stopping at my last value, keeps counting 20 columns past my last column containing a value.
When I put this exact code in a different sheet, substituting the sheet name as appropriate, it counts the correct number of columns!
I cannot figure out why it is doing this.
Does anyone have any suggestions????
Thanks
Owen