+ Reply to Thread
Results 1 to 12 of 12

Formula to recognise Saturday or Nightshift etc for timesheet

  1. #1
    Registered User
    Join Date
    08-19-2014
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    19

    Formula to recognise Saturday or Nightshift etc for timesheet

    Hi

    I have attached an example workbook.

    I am trying to get a formula for Column AB to recognize if Column B is either Saturday or Sunday then it should be zero.

    Then Column AC needs to recognize if it is a Saturday or Sunday it needs to sum in that cell i.e. if they work Sat/Sun it should be paid as overtime.

    Also if Column N shows more than 8 hours however it has 'nightshift' in column D it needs to sum in column AB for anything up to and incl 8 then anything above that should be summed in column AD.

    Phew this is a tricky one!

    Good Luck if you can help!!

    Thanks heaps

  2. #2
    Registered User
    Join Date
    08-19-2014
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Formula to recognise Saturday or Nightshift etc for timesheet

    Oh it wont let me upload the file? it is 1.02mb is that too big?

  3. #3
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Formula to recognise Saturday or Nightshift etc for timesheet

    kazmacdow,

    Yes it will not allow , the file should be less than 1 mb .

    Punnam

  4. #4
    Registered User
    Join Date
    08-19-2014
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Formula to recognise Saturday or Nightshift etc for timesheet

    Oh! I am not sure how to make it smaller?

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Formula to recognise Saturday or Nightshift etc for timesheet

    You need to ZIP the file. Locate the file in windows explorer, right click and select send to > compressed (zipped) folder. Then post the zipped file
    Ben Van Johnson

  6. #6
    Registered User
    Join Date
    08-19-2014
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Formula to recognise Saturday or Nightshift etc for timesheet

    Ha! of course!
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Formula to recognise Saturday or Nightshift etc for timesheet

    kazmacdow

    Update the expected results manually taking a particular date as an example

    Punnam

  8. #8
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Formula to recognise Saturday or Nightshift etc for timesheet

    Hi,

    in column AB you coul add a segment to your formula

    =IF(M709*24>=10,10,M709*24)*LOOKUP(G709,'Dowells Allowances'!$B$26:$B$31,'Dowells Allowances'!$C$26:$C$31)*(weekday(A709,2)<6)

    it should return numbers excepting Saturdays and Sundays

    Regards
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  9. #9
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Formula to recognise Saturday or Nightshift etc for timesheet

    Hi again

    I hope to have understood

    in column AC you integrate your formula adding

    *(weekday(A709,2>5)

    to isolate Sundays and Saturdays.

    Regarding column N you could try a segment like

    MIN(N709,8)

    to sum up first 8 hours.

    .....

    Hope it's a little step forward
    Last edited by canapone; 10-14-2014 at 01:56 AM.

  10. #10
    Registered User
    Join Date
    08-19-2014
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Formula to recognise Saturday or Nightshift etc for timesheet

    Hi Canapone

    Your formula has worked thank you for Column AB.

  11. #11
    Registered User
    Join Date
    08-19-2014
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Formula to recognise Saturday or Nightshift etc for timesheet

    Hi Canapone

    The formula for AC doesn't seem to be working?

    I am also abit lost with your column N suggestion? My formula basically needs to say if Column D says nightshift (Sheet1!A46) then anything great than 8 in Column N needs to be multiplied using the same formula LOOKUP(G6,'Dowells Allowances'!$B$26:$B$31,'Dowells Allowances'!$D$26:$D$31... I think!

    I am so lost!

  12. #12
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Formula to recognise Saturday or Nightshift etc for timesheet

    Hi

    in column N maybe could help

    Please Login or Register  to view this content.
    I don't understand in your formula INT(M2) - my bad

    Waiting for better solutions

    Cheers

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Check If Today is Saturday. If Saturday, Execute Macro
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-06-2014, 09:07 AM
  2. Nightshift :D
    By TanalYstvalJy in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 07-25-2014, 06:15 PM
  3. Need an IF formula to recognise text.
    By oldfil in forum Excel General
    Replies: 1
    Last Post: 07-08-2014, 04:20 PM
  4. How to Recognise and Array Formula?
    By rau in forum Excel General
    Replies: 2
    Last Post: 09-08-2012, 07:15 AM
  5. [SOLVED] Cell colour chg when formula results equal a weekend day, i.e., "Saturday" and a date that falls on a Saturday?
    By StargateFanFromWork in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-19-2005, 08:15 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1