MS Excel Formula Help

CommSecy

Board Regular
Joined
Mar 21, 2017
Messages
68
I have a "time sheet" with 55 members working various hours. Right now, I am manually entering the numbers in green, which is labor-intensive. I want to add a formula that will add only the hours that fall between 1500 and 0700.
Any help would be very much appreciated.

1718738007738.png
1718738146859.png


Thank you. :)
 
You can review this fragment that yields the number of hours.
You did not post an extract of your sheet that we can use.
Dates and Time 2024.xlsm
CDEFGHIJKLM
1
210:00 PM7:00 AM09:007:00 AM
33:00 PM
4
4b
Cell Formulas
RangeFormula
K2K2=MOD(MIN(D2,M2)-MAX(C2,M3),1)
So it works on some, but say a schedule of 0700 - 1900 which should yield a result of 4 hours...it does not work :(
 
Upvote 0

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
You have to
* build the formulas for the different ranges of interest.
* consider the start and end times
* consider if the time spans midnight

I stated that the suggestion was a fragment for part of your requirement.

Review the suggestion and good luck with your project.
 
Upvote 0
You have to
* build the formulas for the different ranges of interest.
* consider the start and end times
* consider if the time spans midnight

I stated that the suggestion was a fragment for part of your requirement.

Review the suggestion and good luck with your project.
Thank you,
 
Upvote 0

Forum statistics

Threads
1,221,602
Messages
6,160,739
Members
451,669
Latest member
Peaches000

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