Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default Vlookup and retrieve values 1 row below the normally retrieved val

I'm trying to figure out how to retrieve a value 1 row below the value that
would normally be retrieved with a regular vlookup. As an example below,
using 1234 as my lookup value, column A-B as the table array, column index
=2, and range lookup ="false" I'd like to return the value "5" instead of
"2". Can this be done somehow through an formula?

COL A COL B
Item # Sales
1234 2
5
3
4
2345 6
7
9
1
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Vlookup and retrieve values 1 row below the normally retrieved val

Try this...

D2 = lookup value = 1234

=INDEX(B2:B9,MATCH(D2,A2:A9,0)+1)

--
Biff
Microsoft Excel MVP


"Jon Ratzel" wrote in message
...
I'm trying to figure out how to retrieve a value 1 row below the value
that
would normally be retrieved with a regular vlookup. As an example below,
using 1234 as my lookup value, column A-B as the table array, column index
=2, and range lookup ="false" I'd like to return the value "5" instead of
"2". Can this be done somehow through an formula?

COL A COL B
Item # Sales
1234 2
5
3
4
2345 6
7
9
1



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7,247
Default Vlookup and retrieve values 1 row below the normally retrieved val

Try a formula like the following:

=OFFSET(A2,MATCH(234,A2:A100,0),1,1,1)

where 234 is the value to look up in cells A2:A100. Change as needed.
it will return #N/A if 234 is not found in A2;A100.

Cordially,
Chip Pearson
Microsoft MVP 1998 - 2010
Pearson Software Consulting, LLC
www.cpearson.com
[email on web site]





On Wed, 20 Jan 2010 11:40:01 -0800, Jon Ratzel
wrote:

I'm trying to figure out how to retrieve a value 1 row below the value that
would normally be retrieved with a regular vlookup. As an example below,
using 1234 as my lookup value, column A-B as the table array, column index
=2, and range lookup ="false" I'd like to return the value "5" instead of
"2". Can this be done somehow through an formula?

COL A COL B
Item # Sales
1234 2
5
3
4
2345 6
7
9
1

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
Retrieve data with MAX and VLOOKUP Tasha Excel Discussion (Misc queries) 2 August 5th 09 11:15 PM
Vlookup to retrieve a hyperlink Roger on Excel Excel Discussion (Misc queries) 2 November 5th 07 03:46 PM
Retrieve values from 2 worksheets. [email protected] Excel Worksheet Functions 3 May 24th 06 08:16 PM
vlookup with more than number to be retrieved martelie Excel Worksheet Functions 3 October 14th 05 12:50 PM
vlookup with more than number to be retrieved martelie Excel Worksheet Functions 1 October 8th 05 07:33 AM


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