How to get the earliest time by row

JohnCollins

New Member
Joined
Dec 22, 2014
Messages
25
Can anyone provide me with a formula to obtain the "Earliest Response Time" for each row when "Response A" or "Response B" = "Responded". If both do not match then the earliest response time should remain blank as per the entries shown in the table below:

Name Response A Date A Response B Date B Earliest Response Time
John Responded 15/07/2019 08:00 Responded 15/07/2019 08:30 15/07/2019 08:00
Fred Responded 15/07/2019 08:30 Delivered 15/07/2019 09:30 15/07/2019 07:30
Sarah Responded 15/07/2019 07:30 Responded 15/07/2019 08:30 15/07/2019 07:30
Susan Responded 15/07/2019 09:30 Delivered 15/07/2019 09:30 15/07/2019 09:30
David Delivered 15/07/2019 07:30 Delivered 15/07/2019 09:30

Column Responses 15/07/2019 07:30 15/07/2019 08:30

Note: I'm able to obtain the column responses by using the appropriate formula: "=MINIFS(C2:C5,B2:B5,"Responded")"

Many Thanks
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Fred Responded 15/07/2019 08:30 Delivered 15/07/2019 09:30 15/07/2019 07:30

Why is the result of this 07:30 ?
There is no 07:30 in that row
The earliest is 08:30
 
Last edited:
Upvote 0
It was a typeO when I entered the original posting; good spot as it should be 08:30 :)
 
Last edited:
Upvote 0
Try


A
B
C
D
E
F
1
Name​
ResponseA​
DateA​
ResponseB​
DateB​
EarliestResponseTime​
2
John​
Responded​
15/07/2019 08:00​
Responded​
15/07/2019 08:30​
15/07/2019 08:00​
3
Fred​
Responded​
15/07/2019 08:30​
Delivered​
15/07/2019 09:30​
15/07/2019 08:30​
4
Sarah​
Responded​
15/07/2019 07:30​
Responded​
15/07/2019 08:30​
15/07/2019 07:30​
5
Susan​
Responded​
15/07/2019 09:30​
Delivered​
15/07/2019 09:30​
15/07/2019 09:30​
6
David​
Delivered​
15/07/2019 07:30​
Delivered​
15/07/2019 09:30​

F2 copied down
=IFERROR(AGGREGATE(15,6,C2:E2/(B2:D2="Responded"),1),"")

Format as dd/mm/yyyy hh:mm

M.
 
Upvote 0
Thanks for the response, the solution works great and I would never have thought of using "Aggregate". Just for clarity can you advise what the last few entries do following the word "Responded") within the formula
?
 
Upvote 0
AGGREGATE(15 = SMALL and the 1 (last parameter) indicates the smallest value (equivalent to minimum). Take at look at the help about this function.

IFERROR wrapping the AGGREGATE function is used to return an empty string, if there are no values satisfying the condition B2:D2 = "Responded".

M.
 
Upvote 0

Forum statistics

Threads
1,215,036
Messages
6,122,794
Members
449,095
Latest member
m_smith_solihull

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