Formula to ignore empty cells when calculating Time

stacyl14

New Member
Joined
Aug 17, 2013
Messages
6
First off, I am new to this forum and I just want to thank every one in advance for any and all assistance. I have been searching the web for a week and have not even come close to figuring this out. Here is my problem: We have created a excel (2010) workbook to track workers who are late (see below) to determine lost production. I have managed to get it to calculate the time but only if I fill every cell with either the time the worker arrived or the scheduled work time. This throws off my calculation in column "Q" which I have set to calculate the number of times the worker has been late during the pay period (counts cells with data in them). What I need is a formula which will calculate the time difference (between arrival time and actual start time) in only the cells that have a time entered and ignoring the cells with no time entered, then total them in Column "R" (formatted [h]:mm) . Monday through Friday (columns: E,F,G,H,I,K,L,M,N,O) the start time is 07:30 (located in cell: W2), on Saturdays (columns: J,P) the start time is 06:30 (located in cell: X2).

I hope someone here can understand what I am trying to say.

Excel 2010
EFGHIJKLMNOPQRSTUVWX
12-Sep3-Sep4-Sep5-Sep6-Sep6-Sep9-Sep10-Sep11-Sep12-Sep13-Sep14-SepTOTALMinutes LateLost Production RateLost Production ValueTotal Lost ProductionMon-Fri/ StartSat/ Start
27:356:508:053$82.80007:306:30
300
400

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
Q2=COUNTA(E2:F2:G2:H2:I2:J2:K2:L2:M2:N2:O2:P2)
Q3=COUNTA(E3:F3:G3:H3:I3:J3:K3:L3:M3:N3:O3:P3)
Q4=COUNTA(E4:F4:G4:H4:I4:J4:K4:L4:M4:N4:O4:P4)
T2=R2*$S$2
U2=SUM(T2:T155)
T3=R3*$S$2
T4=R4*$S$2

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
MikeWx,

I'm such a moron, I had the date set wrong in that column (J). Thanks a million for all of your help. Every thing is working perfectly now. I don't know if there is a way to give reputation points on this site, but you get a 100% rating in my book. Again, Thanks for all of your help.
 
Upvote 0

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,215,575
Messages
6,125,631
Members
449,241
Latest member
NoniJ

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