#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jane
 
Posts: n/a
Default copying VLOOKUP

I have copied my vlookup formula across 25 columns and need to reference 25
columns on a data tab. My first formula is:
=vlookup($C20,'data$A$1:$a$50',2,false).... I need to changed the column
lookup for the remaining 24 columns to =vlookup(.....,3,false)
=vlookup(.....,4,false) and so on.

Is there a faster way to change the columns #'s rather than manually
changing them?

thank you in advance! jane
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default copying VLOOKUP

Replace 3 with

COLUMNS($C:E)

and copy across will return 3, 4, 5 and so on

having said that if you use $A$1:$A$50 as a table you can only lookup one
column so maybe that part was a typo

--
Regards,

Peo Sjoblom

Portland, Oregon




"Jane" wrote in message
...
I have copied my vlookup formula across 25 columns and need to reference 25
columns on a data tab. My first formula is:
=vlookup($C20,'data$A$1:$a$50',2,false).... I need to changed the column
lookup for the remaining 24 columns to =vlookup(.....,3,false)
=vlookup(.....,4,false) and so on.

Is there a faster way to change the columns #'s rather than manually
changing them?

thank you in advance! jane


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jane
 
Posts: n/a
Default copying VLOOKUP

Hi Peo, I think I might not have been clear and/ or perhaps I did not
understand your response.
My formula is =vlookup($C20,'data!$A$1:$A$25',2,false). I have to look up
24 colums of information from the data tab, starting in column 2. I wanted
to know a fast way to copy that formula without having to manually change the
column index number.

I tried your solution without luck. I do appreciate any help on this.
Thanks! Jane


"Peo Sjoblom" wrote:

Replace 3 with

COLUMNS($C:E)

and copy across will return 3, 4, 5 and so on

having said that if you use $A$1:$A$50 as a table you can only lookup one
column so maybe that part was a typo

--
Regards,

Peo Sjoblom

Portland, Oregon




"Jane" wrote in message
...
I have copied my vlookup formula across 25 columns and need to reference 25
columns on a data tab. My first formula is:
=vlookup($C20,'data$A$1:$a$50',2,false).... I need to changed the column
lookup for the remaining 24 columns to =vlookup(.....,3,false)
=vlookup(.....,4,false) and so on.

Is there a faster way to change the columns #'s rather than manually
changing them?

thank you in advance! jane



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default copying VLOOKUP

Your formula as posted is incorrect, your formula is looking in the second
column of a table that is only one column, there is no way your formula will
return anything but an error even after you have removed the apostrophe
after A25.
So it doesn't surprise me that my solution does not work. As I noted in my
previous answer:

"having said that if you use $A$1:$A$50 as a table you can only lookup one
column so maybe that part was a typo"

now you post the same formula again which makes me believe it was not a
typo?

You need to refer to a table in a vlookup formula with as many columns as
there are index numbers meaning that if your table starts in A1 and want to
return values from 25 columns it needs at least be


=VLOOKUP($C20,data!$A$1:$Y$25,COLUMNS($A:B),FALSE)

will be the same as

=VLOOKUP($C20,data!$A$1:$Y$25,2,FALSE)

and copied across it will return column index 3, 4, 5 and so on

--
Regards,

Peo Sjoblom

Portland, Oregon




"Jane" wrote in message
...
Hi Peo, I think I might not have been clear and/ or perhaps I did not
understand your response.
My formula is =vlookup($C20,'data!$A$1:$A$25',2,false). I have to look up
24 colums of information from the data tab, starting in column 2. I
wanted
to know a fast way to copy that formula without having to manually change
the
column index number.

I tried your solution without luck. I do appreciate any help on this.
Thanks! Jane


"Peo Sjoblom" wrote:

Replace 3 with

COLUMNS($C:E)

and copy across will return 3, 4, 5 and so on

having said that if you use $A$1:$A$50 as a table you can only lookup one
column so maybe that part was a typo

--
Regards,

Peo Sjoblom

Portland, Oregon




"Jane" wrote in message
...
I have copied my vlookup formula across 25 columns and need to reference
25
columns on a data tab. My first formula is:
=vlookup($C20,'data$A$1:$a$50',2,false).... I need to changed the
column
lookup for the remaining 24 columns to =vlookup(.....,3,false)
=vlookup(.....,4,false) and so on.

Is there a faster way to change the columns #'s rather than manually
changing them?

thank you in advance! jane




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jane
 
Posts: n/a
Default copying VLOOKUP

ah Peo, of course you are right that I DID have a typo, not only once but
twice! argh - working far too hard I think.... note to self: ask for a day
off.

your solution was perfect - once I corrected my error :)
thank you for your help - and your patience. j

"Peo Sjoblom" wrote:

Your formula as posted is incorrect, your formula is looking in the second
column of a table that is only one column, there is no way your formula will
return anything but an error even after you have removed the apostrophe
after A25.
So it doesn't surprise me that my solution does not work. As I noted in my
previous answer:

"having said that if you use $A$1:$A$50 as a table you can only lookup one
column so maybe that part was a typo"

now you post the same formula again which makes me believe it was not a
typo?

You need to refer to a table in a vlookup formula with as many columns as
there are index numbers meaning that if your table starts in A1 and want to
return values from 25 columns it needs at least be


=VLOOKUP($C20,data!$A$1:$Y$25,COLUMNS($A:B),FALSE)

will be the same as

=VLOOKUP($C20,data!$A$1:$Y$25,2,FALSE)

and copied across it will return column index 3, 4, 5 and so on

--
Regards,

Peo Sjoblom

Portland, Oregon




"Jane" wrote in message
...
Hi Peo, I think I might not have been clear and/ or perhaps I did not
understand your response.
My formula is =vlookup($C20,'data!$A$1:$A$25',2,false). I have to look up
24 colums of information from the data tab, starting in column 2. I
wanted
to know a fast way to copy that formula without having to manually change
the
column index number.

I tried your solution without luck. I do appreciate any help on this.
Thanks! Jane


"Peo Sjoblom" wrote:

Replace 3 with

COLUMNS($C:E)

and copy across will return 3, 4, 5 and so on

having said that if you use $A$1:$A$50 as a table you can only lookup one
column so maybe that part was a typo

--
Regards,

Peo Sjoblom

Portland, Oregon




"Jane" wrote in message
...
I have copied my vlookup formula across 25 columns and need to reference
25
columns on a data tab. My first formula is:
=vlookup($C20,'data$A$1:$a$50',2,false).... I need to changed the
column
lookup for the remaining 24 columns to =vlookup(.....,3,false)
=vlookup(.....,4,false) and so on.

Is there a faster way to change the columns #'s rather than manually
changing them?

thank you in advance! jane






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jane
 
Posts: n/a
Default copying VLOOKUP

can I induldge in a 2nd related question?

is there a way to vlookup data that has a column index # to the left of the
lookup value? I've always looked data to the right.
As before , thanks for your help! jane

"Jane" wrote:

Hi Peo, I think I might not have been clear and/ or perhaps I did not
understand your response.
My formula is =vlookup($C20,'data!$A$1:$A$25',2,false). I have to look up
24 colums of information from the data tab, starting in column 2. I wanted
to know a fast way to copy that formula without having to manually change the
column index number.

I tried your solution without luck. I do appreciate any help on this.
Thanks! Jane


"Peo Sjoblom" wrote:

Replace 3 with

COLUMNS($C:E)

and copy across will return 3, 4, 5 and so on

having said that if you use $A$1:$A$50 as a table you can only lookup one
column so maybe that part was a typo

--
Regards,

Peo Sjoblom

Portland, Oregon




"Jane" wrote in message
...
I have copied my vlookup formula across 25 columns and need to reference 25
columns on a data tab. My first formula is:
=vlookup($C20,'data$A$1:$a$50',2,false).... I need to changed the column
lookup for the remaining 24 columns to =vlookup(.....,3,false)
=vlookup(.....,4,false) and so on.

Is there a faster way to change the columns #'s rather than manually
changing them?

thank you in advance! jane



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using single cell reference as table array argument in Vlookup CornNiblet Excel Worksheet Functions 3 September 22nd 05 09:15 AM
VLOOKUP Limitations chris_manning Excel Worksheet Functions 2 August 9th 05 06:23 PM
Have Vlookup return a Value of 0 instead of #N/A Mr Mike Excel Worksheet Functions 4 May 25th 05 04:51 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 09:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"