Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default running totals between worksheets

I need to keep track of the number of nights worked by an employee in a month
and then add that to the total for the next month's worksheet. Can anyone
help?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default running totals between worksheets

rn2pacu wrote...
I need to keep track of the number of nights worked by an employee in a month
and then add that to the total for the next month's worksheet. Can anyone
help?


Not unless you provide more details.

Generalities: if you have a column of start times and a column of end
times, which I'll refer to respectively as ST and ET, and every 8
hours worked between 6:00 PM and 6:00 AM counted as one night worked,
you could count number of nights worked in a given month using the
following array formula.

=SUM(IF(ET<ST,1-IF(ST<0.75,0.75,ST)+IF(ET0.25,0.25,ET),
IF((ET<0.25)+(ST0.75),ET-ST,IF((ST<0.25)+
(ET0.75),IF(ET<0.75,0.25,ET)
-IF(ST0.25,0.75,ST),0))))*3

You can carry a value from cell X99 in the worksheet named foo into
another worksheet using a reference like foo!X99.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running Totals SJT Excel Discussion (Misc queries) 3 March 3rd 07 03:49 PM
Running totals Carol A. Excel Discussion (Misc queries) 5 January 10th 07 09:48 AM
Running Totals MAC Man Excel Discussion (Misc queries) 5 November 8th 06 08:41 PM
running totals Mert Setting up and Configuration of Excel 1 December 11th 04 01:23 PM
RUNNING TOTALS eddie belfast Excel Discussion (Misc queries) 1 December 2nd 04 03:16 PM


All times are GMT +1. The time now is 06:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"