L
L Mehl
Hello:
One worksheet will contain more than one table holding lookup values
(prices, CPU speed, etc.). They will be located one on top of another, with
possibly some other data between tables, separated by at least one blank
row. They will be expandable by row, as new prices, CPUs, etc. are added.
I want the range name to expand and reflect all the rows in a table.
Using a column as an example of tables,
a (in A1)
b
c
d
e
f
represent 2 tables (ranges).
Excel Hacks has the code for Define Name "Refers to" as
=OFFSET(Sheet1!$A$1,0,0,MATCH("*",Sheet1!$A$1:$A$100,-1),1)
This formula does not see the blank between c and d as a separator of two
ranges. It shows the range as a through f.
If I blank d, e, and f, it correctly defines the range as a through c.
Can someone tell me the code for "Refers to" that will recognize
a
b
c
as the first range?
If the code were correct, would the definition of the second range be
=OFFSET(Sheet1!$A5,0,0,MATCH("*",Sheet1!$A5:$A$100,-1),1)
Thanks for any help.
Stephen Mehl
[email protected]
One worksheet will contain more than one table holding lookup values
(prices, CPU speed, etc.). They will be located one on top of another, with
possibly some other data between tables, separated by at least one blank
row. They will be expandable by row, as new prices, CPUs, etc. are added.
I want the range name to expand and reflect all the rows in a table.
Using a column as an example of tables,
a (in A1)
b
c
d
e
f
represent 2 tables (ranges).
Excel Hacks has the code for Define Name "Refers to" as
=OFFSET(Sheet1!$A$1,0,0,MATCH("*",Sheet1!$A$1:$A$100,-1),1)
This formula does not see the blank between c and d as a separator of two
ranges. It shows the range as a through f.
If I blank d, e, and f, it correctly defines the range as a through c.
Can someone tell me the code for "Refers to" that will recognize
a
b
c
as the first range?
If the code were correct, would the definition of the second range be
=OFFSET(Sheet1!$A5,0,0,MATCH("*",Sheet1!$A5:$A$100,-1),1)
Thanks for any help.
Stephen Mehl
[email protected]