+ Reply to Thread
Results 1 to 7 of 7

Calculate Weekday and weekend rates

  1. #1
    Forum Contributor
    Join Date
    08-19-2012
    Location
    Sydney
    MS-Off Ver
    MS Office 365/16
    Posts
    282

    Calculate Weekday and weekend rates

    Hi,

    I have attached a speadsheet of what I am trying to build.

    After each working day I place in the hours of work they have done.

    From Monday to Friday they get paid X amount and from Saturday to Sunday they get paid Y amount.

    I have made the font red indicating areas I need help with.

    As always any help will be much appreciated.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,738

    Re: Calculate Weekday and weekend rates

    If you change cell B21 to a decimal of hours worked, ie 2.5 hours for 2 hours 30 minutes, then this formula will do what you need

    =IF(OR(WEEKDAY(A21=1,1),WEEKDAY(A21=7,1)),65*B21,50*B21) and copy down
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor
    Join Date
    08-19-2012
    Location
    Sydney
    MS-Off Ver
    MS Office 365/16
    Posts
    282

    Re: Calculate Weekday and weekend rates

    it is still not picking up whether that day is a weekday or a weekend

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: Calculate Weekday and weekend rates

    B2=SUM(IF(($A$21:$A$308>=$A8+0)*($A$21:$A$308<=EOMONTH($A8+0,0)),IF(WEEKDAY($A$21:$A$308,2)<=5,50,65),0)*($B$21:$B$308+$C$21:$C$308/60))
    Try this array formula and copy towards down

    If you are unable to enter formula...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    see the attached file

    If you are unable to enter formula, Unmerge cells and try again (Normally you can't enter array formula in merged cells)
    Attached Files Attached Files
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,177

    Re: Calculate Weekday and weekend rates

    Or try:

    =SUM(IF(TEXT($A$21:$A$308,"mmmm yyyy")=$A8,IF(WEEKDAY($A$21:$A$308,2)<=5,50,65)*($B$21:$B$308+$C$21:$C$308/60)))

    Ctrl+Shift+Enter.

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,738

    Re: Calculate Weekday and weekend rates

    works for me. see attached
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    08-19-2012
    Location
    Sydney
    MS-Off Ver
    MS Office 365/16
    Posts
    282

    Re: Calculate Weekday and weekend rates

    Alansidman, If you look at cell F22 you will see the number 325. This is a weekday, so this should be 250.

+ 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] weekend and weekday formulas
    By oxcor in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 11-14-2017, 01:21 PM
  2. [SOLVED] Weekday/Weekend Formula
    By nmckever in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-19-2017, 04:36 PM
  3. [SOLVED] Have VBA Identify if it is a weekend or weekday
    By jdoerr1021 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-17-2016, 06:37 PM
  4. working out weekday rates vs weekend rates
    By scott11106 in forum Excel General
    Replies: 3
    Last Post: 08-29-2015, 12:14 PM
  5. [SOLVED] Calculate Overtime Weekday different from Weekend
    By Lg101 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-07-2014, 04:41 PM
  6. [SOLVED] calculate turn around times range of times for weekday and weekend
    By xrayexceller in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 07-28-2013, 02:22 PM
  7. [SOLVED] Weekend nightmare how to work out week day and weekend rates Help Please
    By Sherburn Systems in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2012, 06:07 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