+ Reply to Thread
Results 1 to 6 of 6

how to set DUES dates based on a given DATE RANGE

  1. #1
    Registered User
    Join Date
    05-15-2014
    MS-Off Ver
    Excel 2003
    Posts
    8

    how to set DUES dates based on a given DATE RANGE

    Hello everyone,
    I would like to know the function/syntax for determining the due dates given certain date ranges. see attached sheet for the example
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: how to set DUES dates based on a given DATE RANGE

    Try this...
    =IF(DAY(A3)<10,DATE(YEAR(A3),MONTH(A3),15),IF(DAY(A3)<25,EDATE(DATE(YEAR(A3),MONTH(A3),1),1)-1,EDATE(DATE(YEAR(A3),MONTH(A3),1),1)+15))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

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

    Re: how to set DUES dates based on a given DATE RANGE

    Hope it works...

    Cheers
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-15-2014
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: how to set DUES dates based on a given DATE RANGE

    thank you so much..this really work

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: how to set DUES dates based on a given DATE RANGE

    @ mondon, happy to help and thanks for the feedback

    @ azumi, nice formula A quick observation, if you dont mind?
    You dont need to use DAY(15), you can just use 15, and you did not need to use the AND(DAY(A3)>=10 part, the <10 in the beginning will cover that
    Nice use of EOMONTH(), I forgot that 1 lol

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

    Re: how to set DUES dates based on a given DATE RANGE

    @FDibbins

    Yes you'reright, we both missed something..... haha..

+ 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] Fill in dates based on a date range in 2 cells
    By braun.reivn in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-20-2014, 05:54 PM
  2. Replies: 0
    Last Post: 05-30-2013, 07:50 PM
  3. [SOLVED] Returning a date based on a range of dates
    By ExcelAteMyHomework in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-10-2012, 06:07 PM
  4. [SOLVED] Date Filter based on Cell Input - single date or range of dates
    By babaloo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-23-2012, 10:32 AM
  5. Compare Dates To Date Range & Return Date Based On Outcome
    By gusmontoya in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-03-2008, 09:06 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