+ Reply to Thread
Results 1 to 9 of 9

Know the exact days between 2 dates

Hybrid View

  1. #1
    Registered User
    Join Date
    06-04-2014
    Posts
    10

    Question Know the exact days between 2 dates

    Hi guys,

    I am new on that forum even if number of your posts have been really useful for me !

    I am working on a new file and there are few steps I do not know out to do it. Hope you can help me to figure it out !

    So, it is for a hotel, I need to know to know between a Check-in and a check-out date, each day (monday, saturday) there is. In depending it is for one night or 12..
    I will try to be clear:
    Depending on the channel of booking and the day of week we have a % of commission different. so I want to put the price in one cell and it is calculate for each date in order at the end I have the right net profit (because the right commission has been applied).
    Of course to complicate the commissions do not apply in the same order depending the channel and there are fixed costs which are count one time or repeat by the amount of nights. For the these things what i did seems work.

    After, my boss would like to link the dates with another excel file which say for each date which "level of price" (price point) is applied and function of this Price Point we have the price applied per room type and offer

    But for now, I didn't find anything what can say to me between 2 dates what dates are between...

    Thank you so much for your help

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,373

    Re: Know the exact days between 2 dates

    Its hard without seeing your sample workbook, not actual workbook, just upload it at the forum to attrack the member, and if you lucky you have the answer as well...

    To attach : click "Go Advanced" button and find paperclip button

    Cheers
    Azumi

  3. #3
    Registered User
    Join Date
    06-04-2014
    Posts
    10

    Re: Know the exact days between 2 dates

    Attachment 322817

    Here it is !
    Any suggestion is really welcomed

    Just a try for now on

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.85 for Mac MS 365
    Posts
    8,513

    Re: Know the exact days between 2 dates

    can't swear that I could follow your request but based on the title for the post I'm going to say, try the dateif formula.
    =DATEDIF(A6,B6,"d")
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  5. #5
    Registered User
    Join Date
    06-04-2014
    Posts
    10

    Re: Know the exact days between 2 dates

    Thank you for the try but no,
    For example C/I date is 03-06
    C/O is 05-06
    I need a way to show me Wed, Thu, Fri => the Wed is the 03-06, Thu the 04-06 and the Fri 05-06, and that no matters there is one or 60 days between the c/i and c/o dates..

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Know the exact days between 2 dates

    Hi,

    Can you manually add the results you expect to see underneath the actual formulae. I also think you should be simplifying columns H & I by using the tables you already have as a VLOOKUP table. All those IF statements really aren't necessary.

    I'm also not quite clear why some codes in column R don't have a rate in the table starting in column T, and vice versa, there are some column T codes that don't exist in column R. Doesn't this suggest there are some combinations that won't evaluate?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  7. #7
    Registered User
    Join Date
    06-04-2014
    Posts
    10

    Re: Know the exact days between 2 dates

    Hi,

    Thank you for your answer

    I start it yesterday, I will make the vlookup, you are right

    For the code, do not take into account, it is to not let the official name as it is for my job...

    And actually I create the table after the list, and it is much more easier, because when a commission rate will change I can just change it in the table and all will be linked

    Sorry if I am not clear, it is not as evident for me to see where I will end !

    The price is for a Room night, and I want to calculate the net benefit for the all booking. But, each day, we can pay a different commission. Therefore I need, when I write down my check-in and check out and by which channel it has been booked, a calculation on this room price, per night, per commission rate.
    i.e: I have a booking from Monday to Wednesday so 2 nights. On the channel "qwerty", the commission rate is 20% and 25% on the Tuesday. The room price is 2000. my calculation is 2000*(1-0.2)+ 2000*(1-0.25) = 2700 (net benefit). The thing is, I will only enter the 02-06-2014 date for Check-in and 04-06-2014 for check out. I need to figure out a way to know between these two date there are a Monday and a Tuesday..

    Is it better?

  8. #8
    Registered User
    Join Date
    06-04-2014
    Posts
    10

    Re: Know the exact days between 2 dates

    the only matter is to be able to deal with the dates and days associated..

    (it looks so much nicer with the Vlookup function )

  9. #9
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Know the exact days between 2 dates

    Is your problem solved?

    If so mark it as solved.

    If not, please add an excel file, without confidential information.

    Please also add the desired result in your sheet.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

+ 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. Know the exact days between 2 dates
    By mbime in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-04-2014, 05:02 AM
  2. How count exact date of 90 days
    By redza in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-12-2013, 02:45 AM
  3. How to count even exact date 90 days
    By redza in forum Excel General
    Replies: 0
    Last Post: 09-12-2013, 02:12 AM
  4. Replies: 11
    Last Post: 01-13-2013, 09:40 AM
  5. [SOLVED] HOW CAN I FILL AN EMPLOYEE CARD WITH EXACT DAYS CALENDAR
    By LARGO16 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-19-2005, 09:06 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