+ Reply to Thread
Results 1 to 5 of 5

how to calculate dates using vba to find when a check is payable

  1. #1
    Registered User
    Join Date
    06-12-2012
    Location
    ath
    MS-Off Ver
    Excel 2019
    Posts
    53

    how to calculate dates using vba to find when a check is payable

    hi there
    i am looking to calculate when a check is payable using vba.
    the parameters are:
    1)the check has to be cashed at the same bank otherwise it will be payable in 3 day after the payable date.
    2)the payable date must be a working day (no weekend, no holiday). it that case it will be available in the next working date.

    any ideas
    thanks in advance
    ids
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-19-2008
    Location
    It varies ...
    MS-Off Ver
    Office365 - 64bit
    Posts
    862

    Re: how to calculate dates using vba to find when a check is payable

    VBA is not necessary for this ... have a look at the NETWORKDAYS() formula. You would have to set up a list of holiday dates and refer to that in the third (optional) parameter. Whether it is cashed at the same or different bank is a simple IF statement.

    Hope that helps. MM
    MatrixMan.
    --------------------------------------
    If this - or any - reply helps you, remember to say thanks by clicking on *Add Reputation.
    If your issue is now resolved, remember to mark as solved - click Thread Tools at top right of thread.

  3. #3
    Registered User
    Join Date
    06-12-2012
    Location
    ath
    MS-Off Ver
    Excel 2019
    Posts
    53

    Re: how to calculate dates using vba to find when a check is payable

    hi there
    thanks for your initial support but it didnt help a lot.

    and that because my English don’t help me to explain the problem.

    what i want to mange to do is based on the following scenario:
    i have some bank checks let say 5 of them
    1)No 10 value 100 with payable date 15/5/2017
    2)no 15 value 150 with payable date 15/5/2017
    3)no 16 value 250 with payable date 27/5/2017
    4)no 18 value 350 with payable date 27/5/2017
    5)no 21 value 150 with payable date 26/5/2017

    The bank gives the opportunity to cash in earlier date these checks but up to the amount of 100 the rest will be payed to me on the payable data
    So if today is 14/5/2015 and I give to the bank the no 10&15 check the bank will pay me today 100 but the rest 150 will pay me on 15/5/2017
    If I give to the bank on the 15/5/2017 the No16 then the bank will give me 100 and the rest 150 on 27/5/2017
    If I give to the bank the no21&18 on 26/5/17 it will pay me only the value of the 26/5/2017 check 150 and the rest on 27/5/2017 which will be 500 (the rest of no16 and all of the 18)

    I hope now to be more clear my problem

    thank in advance for the help
    IDS

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: how to calculate dates using vba to find when a check is payable

    It would help if you could put the scenario from post #3 into a spreadsheet with the amounts that are payable on certain days manually input. I also have a couple of questions:
    1) Why do the dates in column A of the spreadsheet attached to post #1 include Saturdays and Sundays, since point 2 states no weekends, no holidays?
    2) The dates in column E of the spreadsheet are labeled actual dates, is it correct to assume that these are what the first post refers to as payable dates?
    3) IF (and this is a large if) a formula solution is possible, which may include multiple helper columns, would that be acceptable, or are you strictly seeking a VBA solution?
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: how to calculate dates using vba to find when a check is payable

    This proposed solution employs a formula as opposed to VBA. The dates in row one, starting with column I, are populated with the WORKDAY function. The formula that populates the table, H2:S22 is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Let us know if you have any questions.
    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. Aging Payable Problem
    By kami_110 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-02-2016, 05:46 AM
  2. [SOLVED] Find similar account number then calculate the difference in dates
    By snikrs11 in forum Excel General
    Replies: 6
    Last Post: 10-28-2015, 11:45 AM
  3. [SOLVED] Check a date to find if it falls between a range of dates
    By Kausch in forum Excel General
    Replies: 3
    Last Post: 10-21-2014, 07:56 AM
  4. Check dates in range either same dates or different dates by formula
    By breadwinner in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-12-2013, 07:42 AM
  5. Account Payable
    By hassan1960 in forum Excel General
    Replies: 9
    Last Post: 02-03-2013, 02:14 PM
  6. Replies: 7
    Last Post: 11-02-2005, 06:17 PM
  7. due date for payable invoice
    By due date for payable invoice in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-17-2005, 10: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