+ Reply to Thread
Results 1 to 4 of 4

I'd love some assistance conbining these two formulas in to one!

  1. #1
    Registered User
    Join Date
    11-09-2010
    Location
    Toronto Ontario
    MS-Off Ver
    Excel 2007
    Posts
    6

    I'd love some assistance conbining these two formulas in to one!

    =IF(E3>=0,(DAY(B2)>1)+MONTH(B2)&"/1")+0

    =IF(OR(E3>=0),DATE(YEAR(B1),MONTH(B2),DAY(B1)))

    Here is what i'm trying to attempt....

    if E3 is 0 (zero) or greater i would like B6 to be polulated with the Month and year from B2 and the day from B1.
    If E3 is less than 0 (zero) I would like the the date to be rounded to the beginning of the next month after the date in B2 (in this case 10/1/12)

    Thanks in advance!Help.xlsx

  2. #2
    Forum Contributor
    Join Date
    11-05-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    229

    Re: I'd love some assistance conbining these two formulas in to one!

    Enter the following formula in B6:

    =IF(E3>=0,DATE(Year(B2),MONTH(B2),DAY(B1)),DATE(YEAR(B2+32),MONTH(B2+1),DAY(1)))

    Don't forget to click the little star to the left of this post if you feel I helped!
    Taming the Excel dragon... www.TheExcelphile.com

  3. #3
    Registered User
    Join Date
    11-09-2010
    Location
    Toronto Ontario
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: I'd love some assistance conbining these two formulas in to one!

    =IF(E3>=0,DATE(YEAR(B2),MONTH(B2),DAY(B1)),DATE(YEAR(B2+32),MONTH(B2)+1,DAY(1)))

    I tweaked it a little.

    Thanks very much!!!

    Star fo you!

  4. #4
    Forum Contributor
    Join Date
    11-05-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    229

    Re: I'd love some assistance conbining these two formulas in to one!

    Thanks for the star!

    It was stupid of me to misplace the brackets... well done sorting that out

+ 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