HELP with Complex formula to derive MAX value in column based on multiple conditions.

D_Spark

Board Regular
Joined
Feb 4, 2007
Messages
232
I have a workbook with 3 column values


Column A is “Site”
Column B is “Date/Time”……format dd/mm/yyyy hh:mm
Column F is “Score”…………..numeric, no decimal places

Total rows 900

I want to create a MAX formula (Column G) that will show, the Max “Score” value, based on the “Site” / “Date” condition.


Eg If

A2= “B”
B2=”12/03/2010 08:00”
F2=”10”
A3=”A”
B3=”12/03/2010 08:01”
F3=”11”
A4=”B”
B4=”13/03/2010 08:14”
F4=”20”
A5=”C”
B5=”11/03/2010 08:14”
F5=”3”
A6=”A”
B6=”11/03/2010 08:59”
F6=”18”
A7=”C”
B7=”11/03/2010 08:16”
F7=”4”
A8=”A”
B8=”11/03/2010 15:59”
F8=”17”


Expected formula results in column G would be

G2=10
G3=11
G4=20
G5=4
G6=18
G7=4
G8=18
 
Last edited:

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".
If you want a formula that you want to copy down:

G2, control+shift+enter, not just enter:

=MAX(IF($A$2:$A$8=A2,IF(INT($B$2:$B$8)=INT(B2),$F$2:$F$8)))

Note. This formula disregards the time component, thinking that it's what you want.
 
Upvote 0
Thanks Aladin

forumla works great apart from the fact that it there are 2x "Site", "Dates" with the same "Score", then two lines are shown

I only want a max of one line

therefore,can your forumla be adapted so that in the eventuality of 2x "Site", "Dates" with the same "Score" happening then the latest "dd/mm/yyyy hh:mm" wins
 
Upvote 0

Forum statistics

Threads
1,224,567
Messages
6,179,571
Members
452,927
Latest member
whitfieldcraig

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