+ Reply to Thread
Results 1 to 4 of 4

working out weekday rates vs weekend rates

  1. #1
    Registered User
    Join Date
    08-14-2015
    Location
    nc
    MS-Off Ver
    mac 2011
    Posts
    25

    working out weekday rates vs weekend rates

    i have a spreadsheet attached that i am trying to get the values for a tenant booking a rental. knowing that weekdays equal sun-thursday and friday and saturday being a weekend. please see column o-r where i am trying to calculate. i think i am close but for some reason row 5 is calculating the checkout day as part of the price. if a tenant checks in on wed and checks out on friday, friday is not counted so it should only count wed and thursday as weekday rates. also there is a discount per day that gets subtracted

    please help as i am stuckrental list.xls

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: working out weekday rates vs weekend rates

    You need to exclude the check out date from the calculation..

    In P2

    =SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(J2&":"&K2-1)))=6)+(WEEKDAY(ROW(INDIRECT(J2&":"&K2-1)))=7))

    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: working out weekday rates vs weekend rates

    Maybe,

    P2: =SUM(INDEX(--(WEEKDAY(ROW(INDIRECT(J2&":"&K2-1)))>=6),0))

    R2: =SUM(INDEX(--(WEEKDAY(ROW(INDIRECT(J2&":"&K2-1)))<=5),0))

    or, R2: =L2-P2

    and copy down.

    Hope that helps,

    Cheers,
    berlan
    Last edited by berlan; 08-29-2015 at 11:55 AM.

  4. #4
    Registered User
    Join Date
    08-14-2015
    Location
    nc
    MS-Off Ver
    mac 2011
    Posts
    25

    Re: working out weekday rates vs weekend rates

    i think that works great, i will continue to test but thanks

    i appeciate the quick help, you guys are the best !!

+ 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] Create VBA to distribute rates and exclude weekend
    By laramfarhat in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-25-2014, 01:54 AM
  2. [SOLVED] Need a hand to clean up working code (External Data fetch foreign exchange rates)
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-12-2013, 06:40 PM
  3. Calendar and weekend days, rates calculations? Very challenging
    By Sherburn Systems in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-20-2012, 07:04 AM
  4. [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
  5. Calculating overtime on variable rates over the weekend
    By barrie.shardlow in forum Excel General
    Replies: 2
    Last Post: 11-03-2010, 05:41 PM
  6. Working out a price when different rates apply?
    By jason7579 in forum Excel General
    Replies: 3
    Last Post: 02-04-2010, 07:01 PM
  7. Timesheet for Working hours and Standby Rates
    By euwest30 in forum Excel General
    Replies: 1
    Last Post: 10-18-2006, 11:34 PM

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