Return Value in Adjacent Cell

pilot330

Board Regular
Joined
Feb 19, 2004
Messages
57
Office Version
  1. 365
Platform
  1. Windows
Hi

I need a formula for COL F please.

COL E returns the max value in COL C for each horse.

In COL F, I need to get the value in the cell adjacent (COL D)

If there is more than 1 max value for a horse (See Chocolate Box) then I the need the higher adjacent value in COL D returned (78 in this case.

Thanks

Book2
ABCDEF
1DateHorseSpd RatORMax Spd Rat Last 12 monthsAdjacent OR
205/04/2021Al Kout8180990
317/03/2021Al Kout908099
402/03/2021Al Kout668099
511/11/2020Al Kout917699
618/10/2020Al Kout99088
707/10/2020Al Kout857688
821/09/2020Al Kout797988
921/08/2020Al Kout37588
1018/07/2020Al Kout557888
1127/06/2020Al Kout858088
1209/06/2020Al Kout88820
1305/04/2021Cadeau D'Or7182890
1428/10/2020Cadeau D'Or818289
1502/10/2020Cadeau D'Or887989
1611/09/2020Cadeau D'Or8900
1722/04/2021Chocolate Box81788478
1806/03/2021Chocolate Box847884
1916/02/2021Chocolate Box847679
2001/02/2021Chocolate Box79780
2113/04/2021Clongowes9710099100
2204/04/2021Clongowes9910094
2304/03/2021Clongowes9210294
2404/02/2021Clongowes5010494
2513/01/2021Clongowes94083
2607/12/2020Clongowes83062
2708/11/2020Clongowes6200
Sheet1
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
How about
Excel Formula:
=MAXIFS($D$2:$D$100,$B$2:$B$100,B2,$C$2:$C$100,MAXIFS($C$2:$C$100,$B$2:$B$100,B2))
 
Upvote 0
Thanks Fluff,

I tried that. The formula is returning the max value for the first row of each horse right throughout the entire range of values for each horse.

For example when Al Kout's value in E6 changes to 88, the formula needs to look down COL C until it finds 88 for that horse, and then return the adjacent value, '82' in this case.

Here is what a working formula should return in COL F

Thank you.

Book2
ABCDEF
1DateHorseSpd RatORMax Spd Rat Last 12 monthsAdjacent OR
205/04/2021Al Kout8180990
317/03/2021Al Kout9080990
402/03/2021Al Kout6680990
511/11/2020Al Kout9176990
618/10/2020Al Kout9908882
707/10/2020Al Kout85768882
821/09/2020Al Kout79798882
921/08/2020Al Kout3758882
1018/07/2020Al Kout55788882
1127/06/2020Al Kout85808882
1209/06/2020Al Kout888200
1305/04/2021Cadeau D'Or7182890
1428/10/2020Cadeau D'Or8182890
1502/10/2020Cadeau D'Or8879890
1611/09/2020Cadeau D'Or89000
1722/04/2021Chocolate Box81788478
1806/03/2021Chocolate Box84788476
1916/02/2021Chocolate Box84767978
2001/02/2021Chocolate Box797800
2113/04/2021Clongowes9710099100
2204/04/2021Clongowes99100940
2304/03/2021Clongowes92102940
2404/02/2021Clongowes50104940
2513/01/2021Clongowes940830
2607/12/2020Clongowes830620
2708/11/2020Clongowes62000
Sheet1
 
Upvote 0
That is not what you showed in your op. :(
Also please update your profile to show your version of Excel as requested.
Finally why is F18 76 and not 78?
 
Upvote 0
Apologies for the lack of clarity.
The formula needs to lookdown. So if the formula is in row 18 (F18) then it needs to lookdown COL C starting at row 19 (for that horse). Hence the 76 in relation to your query.
I will update my profile.
Thanks, I understand this is awkward.
 
Upvote 0
Originally you said you needed the value from col D adjacent to the max value in col C & if there are two max values in C get the highest from col D.
Are you now saying that all that is irrelevant?
 
Upvote 0
No it's relevant. But the max value returned needs to be from an earlier date, hence the formula needs to look for that max value starting from the row below (for that horse).
 
Upvote 0
Ok how about
Excel Formula:
=MAXIFS($D3:$D$100,$B3:$B$100,B2,$C3:$C$100,E2)
 
Upvote 0
Solution

Forum statistics

Threads
1,214,413
Messages
6,119,374
Members
448,888
Latest member
Arle8907

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