+ Reply to Thread
Results 1 to 3 of 3

If statement for returning date if adding number of days does not take you into next month

  1. #1
    Registered User
    Join Date
    11-09-2012
    Location
    PA, USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    If statement for returning date if adding number of days does not take you into next month

    I am trying to create a formula that would calculate every Tuesday of the month. If A1 is the first Tuesday of the month, cell B1 is A1+7, cell C1 is A1+14, etc. I want to account for the possibility that there is a 5th Tuesday in a month but do not what a result to show if there is only 4 Tuesdays. For example, if cell E1 has the formula A1+28 and returns 29, 30 or 31, fine; but if A1+28 returns a number 1 through whatever, to not show the result. I am trying to use an If statement, but not getting accurate answers.

    Thanks,
    Last edited by KJH34; 11-09-2012 at 04:09 PM.

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: If statement for returning date if adding number of days does not take you into next m

    Try...

    =IF(A1+28>EOMONTH(A1,0),"",A1+28)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    11-09-2012
    Location
    PA, USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: If statement for returning date if adding number of days does not take you into next m

    That worked! Thank you so much. Amazing it was that simple!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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