Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Need help with Hlookup - need to return values below the matched c

Not sure if this is even possible but here's the scenario.

Want to change date on worksheet 1, have the lookup function find the date
match on worksheet 2 and then populate the various cells on worksheet 1 with
the corresponding data on worksheet 2.

Not sure how to return the location of the "matched" cell in the array for
my lookup on 2nd worksheet. (i.e. date match is found on sheet 2 - cell E4 -
that's what I want it to return).

If I can get that I can use it in with an offset function to return the
value of the cells I need.

Maybe I'm not using the right functions at all - any help is appreciated!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Need help with Hlookup - need to return values below the matched c

Dear

I understand that you want to get the row and column of the date

Suppose in Sheet1 A1 you have the query date. Change the range in Sheet2 as
your requirement. I have considered A1:J10

the below formula will retun the row
=MIN(IF(Sheet2!A1:J10=A1,ROW(Sheet2!A1:J10)))

the below formula will retun the column
=MIN(IF(Sheet2!A1:J10=A1,ROW(Sheet2!A1:J10)))

Now you should be able to get the relevant information from Sheet2 using
OFFSET..

If you want to return the data itself..use the INDEX function
=INDEX(Sheet2!A1:J10,MIN(IF(Sheet2!A1:J10=A1,ROW(S heet2!A1:J10))),MIN(IF(Sheet2!A1:J10=A1,COLUMN(She et2!A1:J10))))


Please note that this is an array formula. Within the cell in edit mode (F2)
paste this formula and press Ctrl+Shift+Enter to apply this formula. If
successful in 'Formula Bar' you can notice the curly braces at both ends like
"{=<formula}". Well try and feedback...

If this post helps click Yes
---------------
Jacob Skaria


"ACornell" wrote:

Not sure if this is even possible but here's the scenario.

Want to change date on worksheet 1, have the lookup function find the date
match on worksheet 2 and then populate the various cells on worksheet 1 with
the corresponding data on worksheet 2.

Not sure how to return the location of the "matched" cell in the array for
my lookup on 2nd worksheet. (i.e. date match is found on sheet 2 - cell E4 -
that's what I want it to return).

If I can get that I can use it in with an offset function to return the
value of the cells I need.

Maybe I'm not using the right functions at all - any help is appreciated!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Need help with Hlookup - need to return values below the match

Perfect - managed to use this formula with both the indirect and offset
functions to get it to do exactly what I needed.

Thank you!!

"Jacob Skaria" wrote:

Dear

I understand that you want to get the row and column of the date

Suppose in Sheet1 A1 you have the query date. Change the range in Sheet2 as
your requirement. I have considered A1:J10

the below formula will retun the row
=MIN(IF(Sheet2!A1:J10=A1,ROW(Sheet2!A1:J10)))

the below formula will retun the column
=MIN(IF(Sheet2!A1:J10=A1,ROW(Sheet2!A1:J10)))

Now you should be able to get the relevant information from Sheet2 using
OFFSET..

If you want to return the data itself..use the INDEX function
=INDEX(Sheet2!A1:J10,MIN(IF(Sheet2!A1:J10=A1,ROW(S heet2!A1:J10))),MIN(IF(Sheet2!A1:J10=A1,COLUMN(She et2!A1:J10))))


Please note that this is an array formula. Within the cell in edit mode (F2)
paste this formula and press Ctrl+Shift+Enter to apply this formula. If
successful in 'Formula Bar' you can notice the curly braces at both ends like
"{=<formula}". Well try and feedback...

If this post helps click Yes
---------------
Jacob Skaria


"ACornell" wrote:

Not sure if this is even possible but here's the scenario.

Want to change date on worksheet 1, have the lookup function find the date
match on worksheet 2 and then populate the various cells on worksheet 1 with
the corresponding data on worksheet 2.

Not sure how to return the location of the "matched" cell in the array for
my lookup on 2nd worksheet. (i.e. date match is found on sheet 2 - cell E4 -
that's what I want it to return).

If I can get that I can use it in with an offset function to return the
value of the cells I need.

Maybe I'm not using the right functions at all - any help is appreciated!

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
Return matched value 2 criteria Diddy Excel Worksheet Functions 4 December 1st 08 10:51 PM
Return Matched Numeric Values across Rows Sam via OfficeKB.com Excel Worksheet Functions 2 January 2nd 07 11:03 PM
Return Title to matched column [email protected] New Users to Excel 1 February 21st 06 06:04 AM
How to compare 2 lists and return un-matched? RWR Excel Worksheet Functions 1 February 15th 05 10:25 PM
Hlookup to return a sum of values Abe Excel Worksheet Functions 3 February 13th 05 08:40 PM


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