Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Cell identification for a 'lookup'


Hi

The lookup function doesn't seem to do the trick, as it depends on
having the column in which the sought after criterion is kept be sorted
in order to display the data from a related cell from an adjoining
column on the same row.

But I don't want to add a sort routine. too much trouble, too much
time.

So what i want to do is (in my case) first of all find the max value in
a particular range of cells in a particular column, then tell me which
row that value is in. From there I suppose i can just concatebate that
number with the letter of the column where the associated value is I
want displayed.


Date --------high
1/2/00------250
1/3/00------175
1/4/00------415


find the max value in the 'high' column, and tell me what row that
value is in, so i can force excel to tell me the related date in the
date column

Many thanks!

tx


--
tx12345
------------------------------------------------------------------------
tx12345's Profile: http://www.excelforum.com/member.php...o&userid=24776
View this thread: http://www.excelforum.com/showthread...hreadid=567345

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 510
Default Cell identification for a 'lookup'

Hi

=VLOOKUP(MAX($A$1:$A$1000),$A$1:$D$1000,2,0)


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



"tx12345" wrote in
message ...

Hi

The lookup function doesn't seem to do the trick, as it depends on
having the column in which the sought after criterion is kept be sorted
in order to display the data from a related cell from an adjoining
column on the same row.

But I don't want to add a sort routine. too much trouble, too much
time.

So what i want to do is (in my case) first of all find the max value in
a particular range of cells in a particular column, then tell me which
row that value is in. From there I suppose i can just concatebate that
number with the letter of the column where the associated value is I
want displayed.


Date --------high
1/2/00------250
1/3/00------175
1/4/00------415


find the max value in the 'high' column, and tell me what row that
value is in, so i can force excel to tell me the related date in the
date column

Many thanks!

tx


--
tx12345
------------------------------------------------------------------------
tx12345's Profile:
http://www.excelforum.com/member.php...o&userid=24776
View this thread: http://www.excelforum.com/showthread...hreadid=567345



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Cell identification for a 'lookup'

Assuming data in Columns A & B, row 1 as heading:

=INDEX($A$2:$A$4,MATCH(MAX($B$2:$B$4),$B$2:$B$4,0) ,1)

will give date

HTH

"tx12345" wrote:


Hi

The lookup function doesn't seem to do the trick, as it depends on
having the column in which the sought after criterion is kept be sorted
in order to display the data from a related cell from an adjoining
column on the same row.

But I don't want to add a sort routine. too much trouble, too much
time.

So what i want to do is (in my case) first of all find the max value in
a particular range of cells in a particular column, then tell me which
row that value is in. From there I suppose i can just concatebate that
number with the letter of the column where the associated value is I
want displayed.


Date --------high
1/2/00------250
1/3/00------175
1/4/00------415


find the max value in the 'high' column, and tell me what row that
value is in, so i can force excel to tell me the related date in the
date column

Many thanks!

tx


--
tx12345
------------------------------------------------------------------------
tx12345's Profile: http://www.excelforum.com/member.php...o&userid=24776
View this thread: http://www.excelforum.com/showthread...hreadid=567345


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 510
Default Cell identification for a 'lookup'

Hi again

Sorry, I didn't see that the return value is in column left to lookup
column. The VLOOKUP needs the lookup column to be leftmost in lookup range.
You have to redesign your sheet, or you have to use more complex formula,
like

=INDEX($A$1:$A$1000,MATCH(MAX($B$1:$B$1000),$B$1:$ B$1000,0),)


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Cell identification for a 'lookup'


Thanks, the index/match formula works great.

tx


--
tx12345
------------------------------------------------------------------------
tx12345's Profile: http://www.excelforum.com/member.php...o&userid=24776
View this thread: http://www.excelforum.com/showthread...hreadid=567345



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
insert date Larry Excel Worksheet Functions 28 July 15th 06 02:41 AM
Compiling macro based on cell values simonsmith Excel Discussion (Misc queries) 1 May 16th 06 08:31 PM
VLOOKUP CONDITION TO RETURN BLANK CELL WHERE LOOKUP VALUE IS NOT IN TABLE ARRAY Scott Lolmaugh Excel Worksheet Functions 3 March 9th 06 11:05 PM
Return cell reference of lookup value bobm Excel Worksheet Functions 3 July 7th 05 08:49 AM
double lookup, nest, or macro? Josef.angel Excel Worksheet Functions 1 October 29th 04 09:50 AM


All times are GMT +1. The time now is 05:00 PM.

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"