teylyn;
I like the Match("zzzz",...) for columns with text in them. I could probably use Match(999999,....) in most of the other situations.
What I'm doing is trying to name a dynamic column of data with a heading in cell $C$7. The data starts 2 cells below the heading. Each sheet will probably use a different row for all the headings.
Since I may insert a new row(9) at some time in the future, I don't want $C$9 referenced.
I could use $C$8 in my formula, but I've just gotten used to using the heading cell for my anchor for the name.
I've also gotten used to using all 3 parameters in INDEX so that anyone reading my code cannot possibly misunderstand. I'm constantly reconsidering that decision, but I always reach the conclusion that I want to keep using all 3 parameters.
So it looks like my RefersTo will be:
It's not really easier to compose but it will be more efficient since it's not counting all the rows in the sheet.
It just now occurred to me that I could have a name "HR" (short for "HeadingRow") RefersTo =ROW($C$7) then my formula would be
I believe that this will not be volatile and also allow me to insert a row or column any where in the sheet (except between row(7) and row(8)) and my formula will automatically adjust accordingly. And it's easy to create a name for data in columns D-H by just changing the C to the appropriate letter.
I also just realized that I could have a name "BR" (short for "BottomRow") RefersTo: = MATCH("zzzz",$C:$C,1) then my formulas reduce to
And I can see the entire formula in the RefersTo box when I'm creating the name.
Thanks for the help.
Bookmarks