ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How to look up a value? (https://www.excelbanter.com/excel-discussion-misc-queries/141383-how-look-up-value.html)

Eric

How to look up a value?
 
There are two lists under column A and B,
Under column A, there is a list of date and under column B, there is a list
of price, and I would like to search for the maximum value under column B and
return the date under column A for this maximum value.
Does anyone have any suggestion on how to do it?
Thank for any suggestions
Eric

RobN[_2_]

How to look up a value?
 
Have you looked at the Auto Filter facility? If your columns have headers,
click in a cell below the headers and then go to Data, Auto filter on the
menubar. Click the filter arrows that should appear next to the headers and
use the options there-in.

Rob

"Eric" wrote in message
...
There are two lists under column A and B,
Under column A, there is a list of date and under column B, there is a
list
of price, and I would like to search for the maximum value under column B
and
return the date under column A for this maximum value.
Does anyone have any suggestion on how to do it?
Thank for any suggestions
Eric




Pete_UK

How to look up a value?
 
Try something like:

=INDEX(A1:A100,MATCH(MAX(B1:B100),B1:B100,0))

Adjust the ranges to suit, and format the cell as a date.

Hope this helps.

Pete

On May 3, 10:26 am, Eric wrote:
There are two lists under column A and B,
Under column A, there is a list of date and under column B, there is a list
of price, and I would like to search for the maximum value under column B and
return the date under column A for this maximum value.
Does anyone have any suggestion on how to do it?
Thank for any suggestions
Eric




Eric

How to look up a value?
 
Thank everyone very much for suggestions
Eric

"Pete_UK" wrote:

Try something like:

=INDEX(A1:A100,MATCH(MAX(B1:B100),B1:B100,0))

Adjust the ranges to suit, and format the cell as a date.

Hope this helps.

Pete

On May 3, 10:26 am, Eric wrote:
There are two lists under column A and B,
Under column A, there is a list of date and under column B, there is a list
of price, and I would like to search for the maximum value under column B and
return the date under column A for this maximum value.
Does anyone have any suggestion on how to do it?
Thank for any suggestions
Eric






All times are GMT +1. The time now is 11:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com