+ Reply to Thread
Results 1 to 8 of 8

date range formula charging different rates for weekends

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

    date range formula charging different rates for weekends

    hello all,

    i need a formula that will take the date range as below (i2 through j2) and figures out what is a friday or saturday and charges 200.00 for those days and then every other day gets charged 175.00 a day




    I J K L M N
    1 check in date check out date days rented days until checkin rent fee
    2 08/20/15 08/30/15 10 6 ***here is where i need a formula
    3
    4


    thanks for your help,
    scott

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

    Re: date range formula charging different rates for weekends

    Screen Shot 2015-08-14 at 3.02.48 PM.png

    here is a screen shot to clearify

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

    Re: date range formula charging different rates for weekends

    Attachment 413692

    here is a screen shot to clearify

  4. #4
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: date range formula charging different rates for weekends

    take a look at this file
    I used this formula to count fridays and saterdays
    Please Login or Register  to view this content.
    Next time post a excel file
    Attached Files Attached Files
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

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

    Re: date range formula charging different rates for weekends

    that worked great, just needed to add two columns for the price per "weekend" and "weekday", is there a way to add that all in one formula?

  6. #6
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: date range formula charging different rates for weekends

    yes it can
    =(J2-I2)*Q1-SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(I2&":"&J2)))=6)+(WEEKDAY(ROW(INDIRECT(I2&":"&J2)))=7))*Q2
    Attached Files Attached Files

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

    Re: date range formula charging different rates for weekends

    that is perfect !

    thank you very much as i have been racking my brain and just could not find the answer.

    thanks again

    scott

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

    Re: date range formula charging different rates for weekends

    Screen Shot 2015-08-21 at 8.40.33 AM.png

    well i thought that this worked perfect but the weekend rates come out negative as showed in N4, the weekdays seem to work perfect

+ 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. Excel Query Date Range Exluding Weekends
    By jimbob23 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-15-2014, 09:21 AM
  2. Statement to search date range and eliminate weekends and holidays
    By mrnuce in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-19-2014, 11:23 AM
  3. display calendar for a given month or date range in a row without weekends
    By wunmi in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-07-2014, 05:22 PM
  4. Replies: 6
    Last Post: 10-16-2013, 09:58 AM
  5. How to add weekends to a date range of Stock Prices??
    By datageek6810 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-27-2013, 12:01 PM
  6. formula for commit date minus completion date excluding weekends
    By jtmayo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-07-2012, 08:42 PM
  7. Excluding weekends from a date range
    By Timjor in forum Excel General
    Replies: 2
    Last Post: 02-09-2012, 02:58 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