+ Reply to Thread
Results 1 to 3 of 3

Total Amount of Days Between Two Dates Using Alternate Days as a Variable

  1. #1
    Registered User
    Join Date
    04-30-2020
    Location
    Australia
    MS-Off Ver
    Office 365
    Posts
    1

    Total Amount of Days Between Two Dates Using Alternate Days as a Variable

    Hello All,
    I hope everyone is keeping healthy & happy!

    Just a quick question.
    I have a userform that contains four textboxes; 1x start date, 1x end date, 1x Alternate Day number & 1x result.
    A user enters a starting and ending date, eg "01/oct/2020" and an end date "04/jan/2021".
    In the "Alternate Day number" textbox the user enters an Alternate day number; eg "4" this represents that an action begins on every 4th day.

    How could I code it so that VBA can work out the total number of Alternate days between the two dates?

    Many thanks in advance!

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Total Amount of Days Between Two Dates Using Alternate Days as a Variable

    In your above example should the answer be 23?
    Cheers!
    Deep Dave

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Total Amount of Days Between Two Dates Using Alternate Days as a Variable

    crosspost: https://www.mrexcel.com/board/thread...-days.1165027/

    Rule 03: Cross-posting Without Telling Us

    Your post does not comply with Rule 3 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Read this to understand why we ask you to do this.

    I have added the crosspost reference for you today. Please comply with this and all our rules in the future
    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

+ 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. Counting Amount of Days Between Two Dates
    By KoolKatelyn in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-20-2020, 01:46 PM
  2. [SOLVED] SUMIF amount if name is found and is in the last 6 days giving incorrect total
    By lah81uk in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-22-2019, 11:45 AM
  3. Dates plus or minus a certain amount of days.
    By Outsider418 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-30-2018, 04:32 PM
  4. [SOLVED] calculate total number of days between two days based on 365 days year
    By aparunkumar in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-14-2016, 12:51 AM
  5. [SOLVED] Subtract dates to give a total amount of days - Multiple Data
    By t_man000 in forum Excel General
    Replies: 2
    Last Post: 07-23-2015, 11:14 PM
  6. [SOLVED] Highlight dates within 'x' amount of days
    By rhodestransit in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-27-2012, 01:57 PM
  7. Replies: 1
    Last Post: 06-19-2008, 04:13 PM

Tags for this Thread

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