Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default mod formula used with midnight

We have a few employees who work an overnight shift. They work (4) 10 hours
shifts. Their shift begins at 630p and ends at 530am. Here is the formula I
am using to calculate the work week for our other employees who work duing
the day time hours, but I need help in adjusting it for our overnight shift.

=SUM((MOD(COLUMN(C4:P4),2)=0)*C4:P4)-SUM(((MOD(COLUMN(C4:P4),2)=1)*C4:P4))-SUM(--(IF(MOD(COLUMN(D4:Q4),2)=0,D4:Q4)-IF(MOD(COLUMN(C4:P4),2)=1,C4:P4)0.25))/48

(shift+ctrl+enter)

My current result is ####
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default mod formula used with midnight

S in AZ,

Assuming that you want the MOD() function on the first part of the formula

=SUM(MOD((MOD(COLUMN(C4:P4),2)=0)*C4:P4-((MOD(COLUMN(C4:P4),2)=1)*C4:P4),1))-SUM(--(IF(MOD(COLUMN(D4:Q4),2)=0,D4:Q4)-IF(MOD(COLUMN(C4:P4),2)=1,C4:P4)0.25))/48

Seems to return the correct result. Of course not knowing what was in Row 4
I just left them all blank.

Like your original formula array entered.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"S in AZ" wrote in message
...
We have a few employees who work an overnight shift. They work (4) 10
hours
shifts. Their shift begins at 630p and ends at 530am. Here is the
formula I
am using to calculate the work week for our other employees who work duing
the day time hours, but I need help in adjusting it for our overnight
shift.

=SUM((MOD(COLUMN(C4:P4),2)=0)*C4:P4)-SUM(((MOD(COLUMN(C4:P4),2)=1)*C4:P4))-SUM(--(IF(MOD(COLUMN(D4:Q4),2)=0,D4:Q4)-IF(MOD(COLUMN(C4:P4),2)=1,C4:P4)0.25))/48

(shift+ctrl+enter)

My current result is ####



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
Reusing formula Tony29 Excel Discussion (Misc queries) 7 September 7th 06 03:34 AM
formula to calculate time difference crossing midnight ditorejax Excel Worksheet Functions 3 August 17th 06 04:46 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM


All times are GMT +1. The time now is 10:05 AM.

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

About Us

"It's about Microsoft Excel"