+ Reply to Thread
Results 1 to 4 of 4

Given a data range, bring me expected payment date

Hybrid View

  1. #1
    Registered User
    Join Date
    01-23-2019
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    Windows 2016
    Posts
    49

    Given a data range, bring me expected payment date

    Howdy

    A question to the enlightned ones of this forum
    Help me figure out this

    Information
    * Payment dates cycle can fall either on 06/XX or 20/XX
    * Expected range
    -Bills received from 18/01 to 03/02: Payment date 06/02
    -Bills received from 04/02 to 17/02: Payment date 20/02
    -Bills received from 18/02 to 03/03: Payment date 06/03
    -Bills received from 04/03 to 17/03: Payment date 20/03

    How can I set a formula that will recognize the given range and bring the correct expected payment date?

    Cheers

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

    Re: Given a data range, bring me expected payment date

    You will need the SUMIFS function for this. If you require any more specific help, please attach a sample workbook,
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    01-23-2019
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    Windows 2016
    Posts
    49

    Re: Given a data range, bring me expected payment date

    Howdy,

    Here is the attached sample file
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    19,043

    Re: Given a data range, bring me expected payment date

    Paste the following formula into cell B2 and double click the fill handle to copy it down the column:
    Formula: copy to clipboard
    =IF(DAY(A2)>=18,DATE(YEAR(A2),MONTH(A2)+1,6),IF(DAY(A2)<=3,DATE(YEAR(A2),MONTH(A2),6),DATE(YEAR(A2),MONTH(A2),20)))

    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.

+ 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. Search in row range find first non empty cell bring value (date)2 cells above
    By Lephterisp in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-21-2019, 04:01 PM
  2. SUMPRODUCT with Date Range not working as expected
    By redsheep79 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-13-2016, 12:29 PM
  3. Calculating a due date based on a range of payment terms???
    By 6032Wayne in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-23-2015, 05:59 PM
  4. formula to subtract payment amount on monthly payment date
    By restingdonkey in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-18-2014, 03:39 PM
  5. [SOLVED] Bring back date from last populated cell in range
    By tiger01 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-20-2013, 06:26 AM
  6. how to bring up all data after specified date AND time
    By schueyisking in forum Excel General
    Replies: 2
    Last Post: 12-23-2011, 04:11 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