VLOOKUP (or Equivelent) based on TIME (HH:MM)

KSingh

New Member
Joined
Dec 13, 2017
Messages
3
Hi all,

I hope you can help me with the following;

I need a formula that will look at staff Headcount, and start and finish times, and based on that.... fill out a Headcount requirement by hours. (taking the highest headcount within that hour)

So, the source of the data looks like this:

STAFFSTART TIME FINISH
136:006:44
136:597:58
138:138:57
139:1210:47
511:1711:17
1511:1711:32
1411:4712:59
1213:1414:11
1414:2614:59

<tbody>
</tbody><colgroup><col><col span="2"></colgroup>


and I need a formula system that would give me a result like the below:

TIMESTAFF
6:0013
7:0013
8:0013
9:0013
10:0013
11:0015
12:0014
13:0012
14:0014
15:000
16:000
17:000
18:000

<tbody>
</tbody><colgroup><col><col></colgroup>


Kind Regards,

Kully Singh
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
This seems to work

=MAX(IF((HOUR(E1)>=HOUR(B$1:B$10))*(HOUR(E1)<=HOUR(C$1:C$10)),A$1:A$10))
Array formula, use Ctrl-Shift-Enter
and copy down the column

where column E are your hourly times
 
Upvote 0
Hey thanks for your reply but this doesnt seem to work for me.

I have column E as my hourly column

Column A is staff headcount
Column B is my start time
Column C is my finish time.

Its giving me a #Value result
 
Upvote 0
Sorry my fault. I was including column titles in the formula. It works great. Thank you so much for your guidance :D
 
Upvote 0

Forum statistics

Threads
1,214,522
Messages
6,120,019
Members
448,938
Latest member
Aaliya13

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