#1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 38
Default vlookup

how can i use vlookup to return value using the col_index_num to be a cell
refence instead of column number.

=vlookup(...............,2,false) to be

=vlookup(................a1,false)

cheers
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 698
Default vlookup

This seems to work for me, where the lookup value is in A2 and the lookup
column is in A1. Change A1 and it selects a different column to return.

=VLOOKUP(A2,D1:G3,A1,0)

In certain cases, which escapes me now, you may have to use INDIRECT(A1) to
make it work.

HTH
Regards,
Howard

"Rohit" wrote in message
...
how can i use vlookup to return value using the col_index_num to be a cell
refence instead of column number.

=vlookup(...............,2,false) to be

=vlookup(................a1,false)

cheers



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 38
Default vlookup

Hi
for some reason its not working. i got my working...

sheet 1 (orginal)
co co co co co
1 2 4 5 6

CASH 1000 2000 3000 4000 5000

sheet 2 (with formula)
co co co co co
1 2 4 5 6

CASH CASH 1000 3000 4000 5000
note 2000 is missing




"L. Howard Kittle" wrote:

This seems to work for me, where the lookup value is in A2 and the lookup
column is in A1. Change A1 and it selects a different column to return.

=VLOOKUP(A2,D1:G3,A1,0)

In certain cases, which escapes me now, you may have to use INDIRECT(A1) to
make it work.

HTH
Regards,
Howard

"Rohit" wrote in message
...
how can i use vlookup to return value using the col_index_num to be a cell
refence instead of column number.

=vlookup(...............,2,false) to be

=vlookup(................a1,false)

cheers




  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 698
Default vlookup

I am not understanding the layout and what you are trying to do.

If you want, send me an example workbook with detailed instructions of what
you want to happen.



Howard

"Rohit" wrote in message
...
how can i use vlookup to return value using the col_index_num to be a cell
refence instead of column number.

=vlookup(...............,2,false) to be

=vlookup(................a1,false)

cheers



  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 35,218
Default vlookup

Maybe you don't want the column index to be a number. Maybe you're asking how
do you match text in a title (topmost) row (like matching the text in the title
(leftmost) column.

If that's the case, =index(match(),match()) may work for you:
http://contextures.com/xlFunctions03.html
(especially examples 2 and 3.)


Rohit wrote:

how can i use vlookup to return value using the col_index_num to be a cell
refence instead of column number.

=vlookup(...............,2,false) to be

=vlookup(................a1,false)

cheers


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 38
Default vlookup

Hi Dave

i want to vlookup value using column header which is 1,8,10 and 14

1 8 10 14

CASH 100 200 300 400
dEBTORS 50 150 150 200
FA 300 400 500 600

see if you can help me



"Dave Peterson" wrote:

Maybe you don't want the column index to be a number. Maybe you're asking how
do you match text in a title (topmost) row (like matching the text in the title
(leftmost) column.

If that's the case, =index(match(),match()) may work for you:
http://contextures.com/xlFunctions03.html
(especially examples 2 and 3.)


Rohit wrote:

how can i use vlookup to return value using the col_index_num to be a cell
refence instead of column number.

=vlookup(...............,2,false) to be

=vlookup(................a1,false)

cheers


--

Dave Peterson

  #7   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 35,218
Default vlookup

Read Debra's site. It looks like those examples are a perfect fit.

Rohit wrote:

Hi Dave

i want to vlookup value using column header which is 1,8,10 and 14

1 8 10 14

CASH 100 200 300 400
dEBTORS 50 150 150 200
FA 300 400 500 600

see if you can help me

"Dave Peterson" wrote:

Maybe you don't want the column index to be a number. Maybe you're asking how
do you match text in a title (topmost) row (like matching the text in the title
(leftmost) column.

If that's the case, =index(match(),match()) may work for you:
http://contextures.com/xlFunctions03.html
(especially examples 2 and 3.)


Rohit wrote:

how can i use vlookup to return value using the col_index_num to be a cell
refence instead of column number.

=vlookup(...............,2,false) to be

=vlookup(................a1,false)

cheers


--

Dave Peterson


--

Dave Peterson
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
VLookUp - Does the VLookUp return the exact information? Cpviv Excel Worksheet Functions 2 October 28th 08 09:57 AM
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
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 06:26 AM.

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"