OFFSET embeded with MAX

nicolehalliday

Board Regular
Joined
May 19, 2010
Messages
56
Hi everyone,
I am searching a column range of values to return the maximum value, which I did simply by using the MAX function [=MAX(D2:D501)]. My next step is to return the value of the cell three cells left of the maximum value, which is a stock name. Basically, I would like one cell to return which stock in the range has the highest value, and another cell to return that specific stocks value. I tried this but it is not working:

=OFFSET(MAX(D2:D501),,-3)

Thanks in advance for you time and help!!!
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Hi everyone,
I am searching a column range of values to return the maximum value, which I did simply by using the MAX function [=MAX(D2:D501)]. My next step is to return the value of the cell three cells left of the maximum value, which is a stock name. Basically, I would like one cell to return which stock in the range has the highest value, and another cell to return that specific stocks value. I tried this but it is not working:

=OFFSET(MAX(D2:D501),,-3)

Thanks in advance for you time and help!!!
Try it like this...

=INDEX(A2:A501,MATCH(MAX(D2:D501),D2:D501,0))
 
Upvote 0
Here is my 2 cents on this...


Excel Workbook
ABCDEFGHIJK
1Stock NameValueValueReturned item 3 columns to the left of lookup column
2Name-81343Name-7
3Name-22
4Name-33
5Name-74
6Name-456
7Name-27
8Name-102
9Name-7343
10Name-168
11Name-76
12Name-923
13Name-411
14Name-1067
15Name-74
16Name-53
17Name-29
18
Sheet1
 
Upvote 0
Hi everyone,
I am searching a column range of values to return the maximum value, which I did simply by using the MAX function [=MAX(D2:D501)]. My next step is to return the value of the cell three cells left of the maximum value, which is a stock name. Basically, I would like one cell to return which stock in the range has the highest value, and another cell to return that specific stocks value. I tried this but it is not working:

=OFFSET(MAX(D2:D501),,-3)

Thanks in advance for you time and help!!!

E1: Max

E2:
Rich (BB code):
=MAX(D2:D501)
E3:
Rich (BB code):
=COUNTIF(D2:D501,E2)
E4: Stock

E5, control+shift+enter, not just enter, and copy down:
Rich (BB code):
=IF(ROWS($E$5:E5)<=$E$3,INDEX($A$2:$A$501,SMALL(IF($D$2:$D$501=$E$2,
     ROW($D$2:$D$501)-ROW($D$2)+1),ROWS($E$5:E5))),"")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,299
Members
452,904
Latest member
CodeMasterX

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top