Help please

Athlumneyabbey

New Member
Joined
Mar 7, 2024
Messages
5
Office Version
  1. 2016
Platform
  1. Windows
I am really new to excel and am trying to teach myself how to do things.

I am trying to copy a formula where the criteria changes for each subsequent cell ( I will also add I may not speak the right excel language - which I appreciate does not help matters

My formula will remain the same for all of the following roes but the time will change by 15 minutes each time

I have to do this for a full 24/7 Roster and am doing it cell be cell....... but there has to be an easier way?

To help (I hope) the formula is =COUNTIF(D2:D29,"<=9:30")-COUNTIF(E2:E29,"<=9:30") however for each row the time (in the example 09:30) will increase by 15 minutes

If anyone could help, you would save my little fingers and mem from losing my mind

Many thanks

EDIT: I am also hoping whoever reads this is fluent in typos!! Apologies
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
not sure i fully follow
I have to do this for a full 24/7 Roster and am doing it cell be cell.
is this 7 days a week, so the date changes
also 15mins for 24hrs would be 96 rows
you are only showing D2:D29 - so a lot less rows

you could set up a helper column to change the time by 15mins each row
so row 2 has 9:30 in and then row 3 - =I2+TIMEVALUE("0:15:0")
will add 15mins and that copied down and then the fomrula is

=COUNTIF($D$2:$D$29,"<="&I2)-COUNTIF($E$2:$E$29,"<="&I2)

copy down - see blow
but as i say I have completely miss understood that

Cell Formulas
RangeFormula
F2:F24F2=COUNTIF($D$2:$D$29,"<="&I2)-COUNTIF($E$2:$E$29,"<="&I2)
I3:I24I3=I2+TIMEVALUE("0:15:0")
 
Upvote 0
Solution
not sure i fully follow

is this 7 days a week, so the date changes
also 15mins for 24hrs would be 96 rows
you are only showing D2:D29 - so a lot less rows

you could set up a helper column to change the time by 15mins each row
so row 2 has 9:30 in and then row 3 - =I2+TIMEVALUE("0:15:0")
will add 15mins and that copied down and then the fomrula is

=COUNTIF($D$2:$D$29,"<="&I2)-COUNTIF($E$2:$E$29,"<="&I2)

copy down - see blow
but as i say I have completely miss understood that

Cell Formulas
RangeFormula
F2:F24F2=COUNTIF($D$2:$D$29,"<="&I2)-COUNTIF($E$2:$E$29,"<="&I2)
I3:I24I3=I2+TIMEVALUE("0:15:0")
Very many thanks for your reply which was very helpful
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,194
Members
453,021
Latest member
pingpong7117

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