lookup and min time (I think)

rcsmith

New Member
Joined
Jul 19, 2011
Messages
3
Hi all,
I am trying (and failing) to find a formula to show me the following:

columnA = names of people
ColumnB = Date
ColumnC = Task number
ColumnD = Time

what I would like to do is a lookup against the name, and in columnE, show the time of the first task that person did for that date.

I can get the overall MIN time, but cannot figure out how to get it to look at the name first.... any thoughts?

thanks,
Rich.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Welcome to MrExcel.

Try a formula like:

=MIN(IF(A$2:A$11=A2,IF(B$2:B$11=B2,D$2:D$11)))

which must be confirmed with Ctrl+Shift+Enter, not just Enter. If correctly entered Excel will surround the array formula with curly braces {}.
 
Upvote 0
That's great, thank you very much.

I now have one more (very small) 'problem' which I didnt realise until just now...

I would like to show only the number of people that started their first task after 9am in a pivot, I can get the count of names where start was after 9am without problem, but it's only the first entry of each person I care about.

Any ideas?

Thanks again,
Rich.
 
Last edited:
Upvote 0
I think I have it fathomed... A bit of a botch job, but columnF is a countif, and columnG is IF columF is true, count 1. My pivot then is a sum of columnG...

Thanks again for your help.
 
Upvote 0

Forum statistics

Threads
1,224,542
Messages
6,179,421
Members
452,913
Latest member
JWD210

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