Date Formulas
Results 1 to 2 of 2

Thread: Date Formulas
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    New Member
    Join Date
    Apr 2018
    Posts
    17
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default Date Formulas

    I am currently using the following formula to get dates:

    Code:
    =IF(ISBLANK(A22),"",IF(C22="Y",D22+18,WORKDAY(I22,1,Holidays!$B$1:$B$5)))
    If I get more than 2 dates, for example 07/16/2019 four times, is there a way to add 1 day to the extra 2 dates? I do not want to have more than 2 of the same date.

  2. #2
    Board Regular
    Join Date
    Nov 2008
    Location
    Netherlands
    Posts
    3,402
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Date Formulas

    Are these dates (and formulas ) in a column? You could then count the number of occurances above and if so add 1.

    What is held in the various columns A, C, D, I?

    Assuming the rows run from row 2 to xx, then for cell B22 it would be something like (not tested)
    Code:
    =IF(ISBLANK(A22),"",IF(COUNTIF(IF(C22="Y",D22+18,WORKDAY(I22,1,Holidays!$B$1:$B$5)),B$2:B21)>1,IF(C22="Y",D22+18,WORKDAY(I22,1,Holidays!$B$1:$B$5))+1,IF(C22="Y",D22+18,WORKDAY(I22,1,Holidays!$B$1:$B$5))))
    Short Guide to Better VBA - Link: https://www.mrexcel.com/forum/showthread.php?t=712119

    Please use code tags around your code:
    [Code] Your code here... [/Code]




    Engelse lessen, persoonlijk en doelgericht. Dutch tuition tailor-made for you. https://Ennef.nl

    Wearable for people with panic attacks: sidjup https://sidjup.com

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •