ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Filtering a dynamic range (https://www.excelbanter.com/excel-worksheet-functions/140966-filtering-dynamic-range.html)

Basil

Filtering a dynamic range
 
Hiya,

I have a dynamic range set up (named range) - this is 8 columns across and
loads (varying) of rows down. Lets call it DATA.

For a vlookup, however, I only want to look at columns 3-7.

Is there anyway that I can filter the existing dynamic range rather than
creating a new one?

PS I know it would make no difference if I have 3-8 in the range, but I want
to learn how to do filter at both ends for something else.

Thanks guys!

B

bj

Filtering a dynamic range
 
I do not understand your question. please give me your definition of filtering

"Basil" wrote:

Hiya,

I have a dynamic range set up (named range) - this is 8 columns across and
loads (varying) of rows down. Lets call it DATA.

For a vlookup, however, I only want to look at columns 3-7.

Is there anyway that I can filter the existing dynamic range rather than
creating a new one?

PS I know it would make no difference if I have 3-8 in the range, but I want
to learn how to do filter at both ends for something else.

Thanks guys!

B


Bob Phillips

Filtering a dynamic range
 
Maybe something like

=VLOOKUP("some_value",OFFSET(dynarange,2,0),2,FALS E)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Basil" wrote in message
...
Hiya,

I have a dynamic range set up (named range) - this is 8 columns across and
loads (varying) of rows down. Lets call it DATA.

For a vlookup, however, I only want to look at columns 3-7.

Is there anyway that I can filter the existing dynamic range rather than
creating a new one?

PS I know it would make no difference if I have 3-8 in the range, but I
want
to learn how to do filter at both ends for something else.

Thanks guys!

B




Basil

Filtering a dynamic range
 
Instead of the range looking at Columns A to H, I want to look at columns B
to G.

"bj" wrote:

I do not understand your question. please give me your definition of filtering

"Basil" wrote:

Hiya,

I have a dynamic range set up (named range) - this is 8 columns across and
loads (varying) of rows down. Lets call it DATA.

For a vlookup, however, I only want to look at columns 3-7.

Is there anyway that I can filter the existing dynamic range rather than
creating a new one?

PS I know it would make no difference if I have 3-8 in the range, but I want
to learn how to do filter at both ends for something else.

Thanks guys!

B


bj

Filtering a dynamic range
 
If you want to use column B for the lookup range in a vlookup, just set your
formula as =vlookup(lookupvalue,B:G,column numberusing B as 1, 0)
if you want to extract anything from column A you can use index-match
formulas.

"Basil" wrote:

Instead of the range looking at Columns A to H, I want to look at columns B
to G.

"bj" wrote:

I do not understand your question. please give me your definition of filtering

"Basil" wrote:

Hiya,

I have a dynamic range set up (named range) - this is 8 columns across and
loads (varying) of rows down. Lets call it DATA.

For a vlookup, however, I only want to look at columns 3-7.

Is there anyway that I can filter the existing dynamic range rather than
creating a new one?

PS I know it would make no difference if I have 3-8 in the range, but I want
to learn how to do filter at both ends for something else.

Thanks guys!

B


Roger Govier

Filtering a dynamic range
 
Hi Basil

One way, create a new named range, Data2
=INDEX(data,1,3):INDEX(data,COUNTA(Sheet3!C:C),7)

this will give you columns C:G for as many rows as you have in column C
of your table.
If there is another column which always has values, whereas other
columns may be blank, then carry out the COUNTA() function on that
column, even if it is outside the range of the columns you want to look
at.

You could hold the variables, for first column 3, and last column 7 in
cells, and substitute those cells in the formula.
That way, you could re-define Data2 just by altering those cell's
values.
--
Regards

Roger Govier


"Basil" wrote in message
...
Instead of the range looking at Columns A to H, I want to look at
columns B
to G.

"bj" wrote:

I do not understand your question. please give me your definition of
filtering

"Basil" wrote:

Hiya,

I have a dynamic range set up (named range) - this is 8 columns
across and
loads (varying) of rows down. Lets call it DATA.

For a vlookup, however, I only want to look at columns 3-7.

Is there anyway that I can filter the existing dynamic range rather
than
creating a new one?

PS I know it would make no difference if I have 3-8 in the range,
but I want
to learn how to do filter at both ends for something else.

Thanks guys!

B





All times are GMT +1. The time now is 02:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com