I am trying to name ranges in a spreadsheet that spans 2 columns (A and B). The data contained is a text values in cell A and numberic values in B. There are 15 sections of data separated by a blank line. I want to use the offset function to name my ranges based off of:
1) The header of the section (Anchor Cell)
eg: if cell a# = Fullname this is anchor
2) Select cells from the cell after the anchor cell down until the next zero value in cell B
I eventually want to make this a VB macro. I want to be able to click a button to search for the headers and name the ranges accordingly.
Here is my named range I created, but it goes all the way down to the end of the spreadsheet instead of stopping at the first zero value in col B
=OFFSET(A!$A$2:$B$2,0,0,COUNT(A!$B:$B))
All help is greatly appreciated!