#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Lookup Problem

I have an array of data. I want to use a lookup function to find a
particular value, then produce the value directly below this reference. For
example if I'm looking for the value in A4 I want A5 returned. Since the
data is irregular HLOOKUP will not work because the value I'm searching for
is not in the top row. Vlookup returns the cell to the right of my value,
but not below. I've tried the offest function but can't seem to make it
happen. Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7,247
Default Lookup Problem


You can use OFFSET for this. E.g.,

=OFFSET($A$1,MATCH("e",A1:A10,0),0)

The MATCH function uses 1-based offsets while OFFSET uses 0-based
offsets, so the value returned by MATCH to OFFSET will be one cell
below where the value is found.

If you want to avoid the #N/A error if the value isn't found, use

=IF(COUNTIF(A1:A10,"e"),OFFSET($A$1,MATCH("e",A1:A 10,0),0),"Not
Found")

Replace the text "Not Found" with whatever you want to display if no
match is found.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)



On Wed, 18 Feb 2009 13:36:02 -0800, Adam L <Adam
wrote:

I have an array of data. I want to use a lookup function to find a
particular value, then produce the value directly below this reference. For
example if I'm looking for the value in A4 I want A5 returned. Since the
data is irregular HLOOKUP will not work because the value I'm searching for
is not in the top row. Vlookup returns the cell to the right of my value,
but not below. I've tried the offest function but can't seem to make it
happen. Any ideas?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
~L ~L is offline
external usenet poster
 
Posts: 177
Default Lookup Problem

=INDEX(Results Row,MATCH(Search Value, Search Row, 0))


"Adam L" wrote:

I have an array of data. I want to use a lookup function to find a
particular value, then produce the value directly below this reference. For
example if I'm looking for the value in A4 I want A5 returned. Since the
data is irregular HLOOKUP will not work because the value I'm searching for
is not in the top row. Vlookup returns the cell to the right of my value,
but not below. I've tried the offest function but can't seem to make it
happen. Any 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
Lookup Problem Linda Peters Excel Worksheet Functions 4 February 28th 06 09:58 PM
Lookup problem RD Wirr Excel Worksheet Functions 4 February 8th 06 01:14 PM
Lookup problem jamesjohn Excel Discussion (Misc queries) 2 November 4th 05 05:48 PM
Lookup Problem SteveG Excel Worksheet Functions 4 November 1st 05 05:34 PM
Lookup Problem Scott Excel Worksheet Functions 2 April 19th 05 12:18 AM


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