Help creating a formula

Dayski147

Banned user
Joined
Apr 12, 2022
Messages
89
Office Version
  1. 2016
Platform
  1. Windows
Help creating a formula in the attached file
Required number of employees for this day by hour from - to It means the number of employees between 9:00 am and 10:00 pm

 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
here is the countifs()

but it will only be on the share for a few days


Book1(ETAF).xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZ
1اعداد الموظفين
2AGENT NAMESatSunMonTueWedThuFriFROMTOSATSUNMONTUEWEDTHUFRI
38/21/228/22/228/23/228/24/228/25/228/26/228/27/229:30 AM10:00 PM2110001
4FROMTOFROMTOFROMTOFROMTOFROMTOFROMTOFROMTO
51david9:30 AM6:30 PM10:00 AM11:00 AM
62badr12:00 AM9:30 PM12:00 PM10:30 AM9:00 AM9:30 AM
73maya11:30 AM8:30 PM11:00 AM11:30 AM
84
95
106
117
128
139
1410
15
16
17
18
Sheet2
Cell Formulas
RangeFormula
S3S3=COUNTIFS(C$5:C$12,">="&$Q3,D$5:D$12,"<="&$R3)
T3T3=COUNTIFS(E$5:E$12,">="&$Q3,F$5:F$12,"<="&$R3)
U3U3=COUNTIFS(G$5:G$12,">="&$Q3,H$5:H$12,"<="&$R3)
V3V3=COUNTIFS(I$5:I$12,">="&$Q3,J$5:J$12,"<="&$R3)
W3W3=COUNTIFS(K$5:K$12,">="&$Q3,L$5:L$12,"<="&$R3)
X3X3=COUNTIFS(M$5:M$12,">="&$Q3,N$5:N$12,"<="&$R3)
Y3Y3=COUNTIFS(O$5:O$12,">="&$Q3,P$5:P$12,"<="&$R3)
Cells with Data Validation
CellAllowCriteria
C5:P18List=time1
Q3:R3List=time1
 
Upvote 0
Solution

Forum statistics

Threads
1,216,115
Messages
6,128,923
Members
449,479
Latest member
nana abanyin

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