Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() 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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=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? |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Lookup Problem | Excel Worksheet Functions | |||
Lookup problem | Excel Worksheet Functions | |||
Lookup problem | Excel Discussion (Misc queries) | |||
Lookup Problem | Excel Worksheet Functions | |||
Lookup Problem | Excel Worksheet Functions |