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 How do I reference the cell which returned a lookup value?

Imagine that I've got a column of 100 numbers. First, I want to find the
maximum value (MAX function). Let's say that turns out to be in the 80th row.
Now I want to find the minimum value from the 80th through the last (100th)
row. Note that the
range of my use of the MIN function depends on where the original MAX value
came from. Any ideas on how to do this? I think what I need is a function
which can tell me which row contains the winning MAX value. Something like:

=ROW(MAX(R1C1:R100C1))

but that obviously doesn't work because the ROW functions wants a reference
- not a value.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default How do I reference the cell which returned a lookup value?

=MIN(INDEX(A:A,MATCH(MAX(A:A),A:A,0)):A100)

(Where A100 is the last used (or after the last used cell in column A).)

tequila27 wrote:

Imagine that I've got a column of 100 numbers. First, I want to find the
maximum value (MAX function). Let's say that turns out to be in the 80th row.
Now I want to find the minimum value from the 80th through the last (100th)
row. Note that the
range of my use of the MIN function depends on where the original MAX value
came from. Any ideas on how to do this? I think what I need is a function
which can tell me which row contains the winning MAX value. Something like:

=ROW(MAX(R1C1:R100C1))

but that obviously doesn't work because the ROW functions wants a reference
- not a value.


--

Dave Peterson
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
reference a cell by using a returned value as the row or column nu Hfreeman Excel Worksheet Functions 1 February 29th 08 02:18 AM
Lookup Value Not Being Returned [email protected] Excel Worksheet Functions 2 February 7th 08 04:36 PM
Reference to a cell returned by MIN...how? Mac Excel Worksheet Functions 3 October 16th 07 03:04 PM
limit characters returned a cell reference Lila Excel Worksheet Functions 8 September 6th 06 03:33 AM
Need reference in adjacent column returned Dan Excel Worksheet Functions 9 March 5th 06 07:05 PM


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