+ Reply to Thread
Results 1 to 8 of 8

Generate list of dates between two dates

  1. #1
    Registered User
    Join Date
    09-23-2014
    Location
    Dubai, UAE
    MS-Off Ver
    2013
    Posts
    81

    Post Generate list of dates between two dates

    I would like to get a list of dates between my date range (B2 - D2) in Column H for first 5 chargeable days date , and Column I for the rest.

    Cost slab is

    1-10 Free
    11-15 20 USD
    16-99999 40 USD


    I don’t how difficult this is. It would very helpful to me if someone would me assist with this.
    Attached Files Attached Files
    Last edited by abdumon7; 08-06-2018 at 09:56 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Generate list of dates between two dates

    Not enough detail. Why is the first data in the list 15/06? Where did that come from?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    09-23-2014
    Location
    Dubai, UAE
    MS-Off Ver
    2013
    Posts
    81

    Re: Generate list of dates between two dates

    First 10 days Free (till 14/06/2018)
    Next 5 Days 20 USD per day (From 15/06/2018 - 19/06/2018)
    After that 40 USD per day (From 20/06/2018 -

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Generate list of dates between two dates

    Hi

    Try this in H3 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Try this in I3 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-23-2014
    Location
    Dubai, UAE
    MS-Off Ver
    2013
    Posts
    81

    Re: Generate list of dates between two dates

    Column H3 is working fine. but Column I doesn't generate the full list of dates if I change the date in D3

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Generate list of dates between two dates

    In H3:

    =IF(ROWS($B$3:$B3) < DATEDIF(B$3,D$3,"d")-20,10+$B$3+ROWS($B$3:$B3),"")

    and in I3:

    =IF(ROWS($B$3:$B3) < DATEDIF(B$3,D$3,"d")-14,15+$B$3+ROWS($B$3:$B3),"")

  7. #7
    Registered User
    Join Date
    09-23-2014
    Location
    Dubai, UAE
    MS-Off Ver
    2013
    Posts
    81

    Re: Generate list of dates between two dates

    Sorry. I couldn't check yesterday.

    However its working properly. Thanks for your help

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Generate list of dates between two dates

    You're welcome!

+ 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] Generate list of dates between dates based on criteria - Onsite/Offshore holidays
    By sreeks in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-21-2017, 12:37 AM
  2. How to take a list of dates and generate them into a calendar
    By lcooper011 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-27-2016, 04:25 PM
  3. Populating list of dates from another sheet with Start Dates and End Dates
    By Jesshloly in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-05-2015, 04:07 AM
  4. Generate a list of names and dates
    By Kramxel in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-01-2015, 04:42 AM
  5. [SOLVED] Highlight Group of Dates if Dates Match List of other Dates
    By martinpgibson in forum Excel General
    Replies: 5
    Last Post: 10-24-2012, 08:14 PM
  6. macro to generate a list of dates down a column
    By Aqua in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-07-2008, 07:24 AM
  7. How to generate a random list of weekDAYS between two dates?
    By Yanzel Muniz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-21-2005, 08:05 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