+ Reply to Thread
Results 1 to 6 of 6

Dates

  1. #1
    Registered User
    Join Date
    12-23-2003
    Posts
    61

    Dates

    Setting up a credit card worksheet register.
    Column/Cell A-1=Due Date
    Column/Cell B-1=Transaction Date
    Payment due date is always on the 15th of each month, therefore if transaction date is May 14, 2012, Due Date will be May 15, 2012.
    If Transaction Date falls on May 16, 2012, Due Date will be June 15, 2012.
    I need a formula for Column/Cell A-1 that can read the date in Column/Cell B-1 and automatically relay the appropriate Due Date.
    Thank you for your help
    coffee man

  2. #2
    Forum Contributor
    Join Date
    04-24-2012
    Location
    Moscow
    MS-Off Ver
    Excel 2010
    Posts
    291

    Re: Dates

    =if(day(b2)>=15,date(year(b2),month(b2)+1,15),date(year(b2),month(b2),15))

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Dates

    What should the due date be if the payment date is 15th? is it the same date or the next month? For the former try

    =DATE(YEAR(B1-15),MONTH(B1-15)+1,15)

    If it should be next month then change the -15s to -16s
    Audere est facere

  4. #4
    Registered User
    Join Date
    12-23-2003
    Posts
    61

    Re: Dates

    Thank you Alexander_Golinsky & daddylonglegs for your reply.
    Both replies worked well so now I must decide which to use.
    Thanks again

  5. #5
    Forum Contributor
    Join Date
    04-24-2012
    Location
    Moscow
    MS-Off Ver
    Excel 2010
    Posts
    291

    Re: Dates

    For sure, the 2nd one! i believe the most simple solution is the most beautiful one.

  6. #6
    Registered User
    Join Date
    12-23-2003
    Posts
    61

    Re: Dates

    I agree, but in this case, even tho I had not mentioned it in my query, I am able to use your solution with an "IF" included at the first in order to copy & paste down column A and keep the lower cells from being populated if Col B has no entry.
    I'm sure daddylonglegs solution can be adjusted to handle this but I'm not seeing how to do it.
    Thanks again for your help and have a great weekend.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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