Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 52
Default vlookup value from previous column

The instructions for vlookup say the lookup value must be in the first column
of the lookup array. Unfortunately I want to look up values in a spreadsheet
with a standard format which I can't change, and the lookup value is in
column B and the value I want to return is in column A. Is there a clever
trick of getting vlookup to do this (other than simply making a personal copy
of the spreadsheet with the columns reversed)?

Grateful for ideas.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 353
Default vlookup value from previous column

=INDEX(A:A,MATCH(D2,B:B,0))
Matches the exact value in D2 with a value in column B and returns column A.
Adjust as desired.

"simonc" wrote:

The instructions for vlookup say the lookup value must be in the first column
of the lookup array. Unfortunately I want to look up values in a spreadsheet
with a standard format which I can't change, and the lookup value is in
column B and the value I want to return is in column A. Is there a clever
trick of getting vlookup to do this (other than simply making a personal copy
of the spreadsheet with the columns reversed)?

Grateful for ideas.

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
Looking up previous data in column within an IF statement CheekyFlash Excel Worksheet Functions 0 October 9th 06 05:19 PM
find a value in a table, go to the previous column and add that co Paul Excel Worksheet Functions 1 April 4th 06 08:30 PM
vlookup reverts to data from a previous report Preston Nuckols Excel Worksheet Functions 2 September 14th 05 05:00 PM
Referencing previous column in COUNTIF [email protected] Excel Discussion (Misc queries) 6 March 1st 05 10:27 AM
Data in column predetermined by what has been entered in previous zan123 Excel Discussion (Misc queries) 6 February 23rd 05 08:03 PM


All times are GMT +1. The time now is 03:47 AM.

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

About Us

"It's about Microsoft Excel"