If time in cell greater than current time, then count 1

Olisthoughts

New Member
Joined
Apr 16, 2020
Messages
33
Office Version
  1. 365
Platform
  1. Windows
Hi,

I'm making a break list for my team at my new job.

The employees can set a start time for their break, and an estimated return time is calculated automatically based on the break length.

I want to calculate how many agents are on break right now, based on if the estimated return time is greater than the current time. That would be an indicator that 1 agent is on break.

I just can't think of the correct formula to do this, I think the pseudo-code could be (If time in cell range is greater than current time, then sum those cells, and display currently on break"

But I can't think of a correct formula to do it.

If there are other ways to calculate currently on break that will work too.

I will attach a screenshot.

For context, I think you may be interested in knowing that there used to be 4 columns (start, estimated, actual return time, and total break time) I was using a helper column to calculate if there is a start time without a return time and that counted as 1. But my manager said she wants only the first 2 columns.

Thank you.
 

Attachments

  • Screenshot_82.png
    Screenshot_82.png
    49.6 KB · Views: 5

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Another pseudo-code I was thinking of is
If current time is 30 minutes greater than start time, then 0 agents on break, else 1 agent on break
 
Upvote 0

Forum statistics

Threads
1,214,877
Messages
6,122,051
Members
449,064
Latest member
scottdog129

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