+ Reply to Thread
Results 1 to 6 of 6

Calculate Next Payment Date Problem

  1. #1
    Forum Contributor
    Join Date
    07-21-2018
    Location
    London, England
    MS-Off Ver
    Excel for Mac Version 16.15
    Posts
    117

    Calculate Next Payment Date Problem

    Hello!

    I am trying to write a formula that calculates my next billing date for my mobile phone bill. I am charged on the 31st of each month (or the next working day where the 31st non-working day or where there aren't 31 days in the month). My formula (below) returns the correct date but if that date is today then I want it to return today's date and not jump to next month's date.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    For example, today (21st August) this formula returns the 1st September (because, whilst August has 31 days, the 31st is a bank holiday here in the UK so the next working day is 1st September). However, on the 1st September, I still want this formula to return 1st September to highlight to me that my payment date is today. Then on 2nd September, as my payment has now passed, I want the formula to return the next date (which would be 1st October).

    I can't for the life of me work out how to amend my current formula to do want I want so I'd appreciate any help I can get!

    Thank you!

  2. #2
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Calculate Next Payment Date Problem

    May be this will work for you:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Tsjallie; 08-21-2020 at 05:08 PM.
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

  3. #3
    Forum Contributor
    Join Date
    07-21-2018
    Location
    London, England
    MS-Off Ver
    Excel for Mac Version 16.15
    Posts
    117

    Re: Calculate Next Payment Date Problem

    Thank you for this!

    I'm afraid that this formula doesn't return the dates I'd expect. When today is a date in August, it returns 31st August but it should return 1st September as 31st August is a bank holiday. In fact, it looks like it's returning dates that are a day earlier than I'd expect for each month. I think it's close to being right though as when the calculated day is today it stays the same until the following day when it returns the next date.

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,659

    Re: Calculate Next Payment Date Problem

    I interprete it as following: If working day of "yesterday month-end" is today, this month, else next month

    Please Login or Register  to view this content.
    Or shorter:

    Please Login or Register  to view this content.
    Quang PT

  5. #5
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    514

    Re: Calculate Next Payment Date Problem

    See if the following formula works for you:

    =WORKDAY(EOMONTH(TODAY(),-(WORKDAY(EOMONTH(TODAY(),-1)-1,1,Public_holidays) >=TODAY()))-1,1,Public_holidays)

    ^^^ this is a compacted version of a longer formula:

    =IF(WORKDAY(EOMONTH(TODAY(),-1)-1,1,Public_holidays) >=TODAY(),WORKDAY(EOMONTH(TODAY(),-1)-1,1,Public_holidays),WORKDAY(EOMONTH(TODAY(),0)-1,1,Public_holidays))

  6. #6
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Calculate Next Payment Date Problem

    Underestimated some nasty constraints.
    This should do yr trick:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    See also attached workbook to see how the formula developes with different dates for today().
    Attached Files Attached Files

+ 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. Calculate next 'payment' date
    By linuxgeek in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-01-2019, 07:15 AM
  2. [SOLVED] Formula to Calculate Payment Date based on Multiple Conditions
    By NonStopLeo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-18-2018, 01:13 AM
  3. [SOLVED] Calculate Next Payment Date based on multiple criteria
    By sabin348 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-10-2015, 07:27 AM
  4. How to calculate the payment due past due date
    By Bankolao in forum Excel General
    Replies: 9
    Last Post: 08-22-2013, 10:20 AM
  5. Replies: 3
    Last Post: 07-29-2013, 11:31 AM
  6. create a formula to look to calculate average payment based on rep and date
    By EddieMaher in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-21-2008, 03:55 PM
  7. calculate payment with first payment due date variable?
    By Jody Solbach in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-08-2005, 12:46 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