Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
J
 
Posts: n/a
Default Lookup without VLOOKUP?

i have two columns. i want to look through columA for value X and want to
return the value in columnB in the same row. i need to do this without
vlookup so i can make a recursive equation that i can just drag across the
whole spreadsheat.


A B
1 6
2 5
3 7
4 8

so if i were to serch for "4" in colA, i'd get back "8"

any ideas? thanks in advance.


  #2   Report Post  
Posted to microsoft.public.excel.newusers
Bob Phillips
 
Posts: n/a
Default Lookup without VLOOKUP?

Why doesn't

=VLOOKUP(4,A1:B1000,2,False)

work?

Otherwise, try

=INDEX(B:B,MATCH(4,A:A,0))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"J" wrote in message
...
i have two columns. i want to look through columA for value X and want to
return the value in columnB in the same row. i need to do this without
vlookup so i can make a recursive equation that i can just drag across the
whole spreadsheat.


A B
1 6
2 5
3 7
4 8

so if i were to serch for "4" in colA, i'd get back "8"

any ideas? thanks in advance.




  #3   Report Post  
Posted to microsoft.public.excel.newusers
bpeltzer
 
Posts: n/a
Default Lookup without VLOOKUP?

The key may be using absolute references in the table_range in your vlookup:
=vlookup(4,$A$1:$B$1000,2,false). Those $ signs will keep the cell
references from changing as you drag the formula around the spreadsheet.

"J" wrote:

i have two columns. i want to look through columA for value X and want to
return the value in columnB in the same row. i need to do this without
vlookup so i can make a recursive equation that i can just drag across the
whole spreadsheat.


A B
1 6
2 5
3 7
4 8

so if i were to serch for "4" in colA, i'd get back "8"

any ideas? thanks in advance.


  #4   Report Post  
Posted to microsoft.public.excel.newusers
J
 
Posts: n/a
Default Lookup without VLOOKUP?

the problem is the 3rd entry of the vlookup, the return value. i want that
to move if the column is copied. so i was hoping on getting an equation in
colB that i could extend to colC, colD, ... without having to change the
return value every time. thanks for the responses and sorry for not being
specific.

~j

  #5   Report Post  
Posted to microsoft.public.excel.newusers
Gord Dibben
 
Posts: n/a
Default Lookup without VLOOKUP?

One method.....

Select B1:E1

Enter this in active cell(B1)

=VLOOKUP(lookup_value,Table,{2,3,4,5},FALSE)

Then hit CTRL + SHIFT + ENTER

The formula will be entered across the 4 cells with the third argument
incremented.


Gord Dibben Excel MVP


On Wed, 16 Nov 2005 12:11:54 -0800, "J" wrote:

the problem is the 3rd entry of the vlookup, the return value. i want that
to move if the column is copied. so i was hoping on getting an equation in
colB that i could extend to colC, colD, ... without having to change the
return value every time. thanks for the responses and sorry for not being
specific.

~j




  #6   Report Post  
Posted to microsoft.public.excel.newusers
Biff
 
Posts: n/a
Default Lookup without VLOOKUP?

Hi!

=VLOOKUP(4,$A$1:$B$100,COLUMNS($A:B),0)

This will increment the col_index_num as you drag copy across.

Biff

"J" wrote in message
...
the problem is the 3rd entry of the vlookup, the return value. i want
that
to move if the column is copied. so i was hoping on getting an equation in
colB that i could extend to colC, colD, ... without having to change the
return value every time. thanks for the responses and sorry for not being
specific.

~j



  #7   Report Post  
Posted to microsoft.public.excel.newusers
J
 
Posts: n/a
Default Lookup without VLOOKUP?

thanks guys! works great!
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 doesn't work until i edit(but not change) the lookup cell Confused Excel Worksheet Functions 4 November 8th 05 09:15 AM
Range Lookup in VLookup ?'s Bronco_Junkie Excel Worksheet Functions 1 November 2nd 05 08:53 AM
vlookup - finding the next value that is GREATER than the lookup value? Harold Good Excel Worksheet Functions 6 August 10th 05 10:32 PM
vlookup with lookup value of different length accl Excel Worksheet Functions 3 May 17th 05 09:23 AM
Vlookup based on two lookup values Trip Excel Worksheet Functions 2 April 8th 05 06:25 PM


All times are GMT +1. The time now is 05:02 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"