+ Reply to Thread
Results 1 to 3 of 3

"payment date" vs "payment due date"

  1. #1
    Registered User
    Join Date
    05-04-2017
    Location
    MALAYSIA
    MS-Off Ver
    2007
    Posts
    34

    Lightbulb "payment date" vs "payment due date"

    If "payment due date" fall on friday till monday, "payment date"=next tuesday.
    Otherwise payment date=next friday.

    I have written this formula with 8 "if statement", but pls help me to simplify the formula since i would like to add more complicated formula to the same line

    =if(k4="blm submit","blm submit",if(weekday(k4)=1,k4+2,if(weekday(k4)=2,k4+1,if(weekday(k4)=3,k4+3,if(weekday(k4)=4,k4+2,if(weekday(k4)=5,k4+1,if(weekday(k4)=6,k4+4,if(weekday(k4)=7,k4+3))))))))

    see attachment for details. Also see sheet#2="payment day table"

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: "payment date" vs "payment due date"

    =if(k4="blm submit","blm submit",k4+choose(weekday(k4),2,1,3,2,1,4,3))

  3. #3
    Registered User
    Join Date
    05-04-2017
    Location
    MALAYSIA
    MS-Off Ver
    2007
    Posts
    34

    Re: "payment date" vs "payment due date"

    Tim201110,
    tq very much, that is very excellent solution

+ 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. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  2. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  3. Identify Next Payment Date with "Yes"
    By Branbran10 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-14-2016, 06:28 PM
  4. Replies: 1
    Last Post: 01-22-2016, 09:21 AM
  5. Date format of just "st" "nd" "rd" and "th" with text included
    By notrandom in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-10-2013, 05:45 PM
  6. Return "green", "yellow" or "red" from date/age and priority ranking
    By Cantaloop in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-04-2013, 12:12 AM
  7. Replies: 1
    Last Post: 09-15-2010, 01:55 AM

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