+ Reply to Thread
Results 1 to 9 of 9

Define different date results in one cell

  1. #1
    Registered User
    Join Date
    06-08-2012
    Location
    ladysmith, va
    MS-Off Ver
    Excel 2007
    Posts
    4

    Talking Define different date results in one cell

    UPDATED.
    Cell A2 (if used) will have a date to be calculated with a 14 day result in E2, unless
    B2 (if used) will have a date to be caculated with a 12 month result in E2, unless
    and C2 (if used) will have a date to calculated with a 7 year result in E2, unless
    finally D2 (if used) will have a result entered as "permanent".
    The (if used) means that only one of cells (A2, B2, C2, D2) will be used. with the results in E2.
    How would this formula be written?
    Attached Files Attached Files
    Last edited by ltdcmdjaw; 06-15-2012 at 01:53 PM. Reason: explain more clearly

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: hello,i have one cell (a5)that will have different date results.

    And while you're at it, could you also provide a better explanation of what you're trying to do, and several examples?
    Last edited by shg; 06-09-2012 at 03:25 PM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    06-08-2012
    Location
    ladysmith, va
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: hello,i have one cell (a5)that will have different date results.

    sorry about the confusion. have update/edit my post at top, a little new with this. thanks for your patience

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Define different date results in one cell

    Here is one way in E2 copied down...

    Please Login or Register  to view this content.
    HTH
    Regards, Jeff

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Define different date results in one cell

    If I understand the priority correctly then:

    =IF(N(D2),"Permanent",IF(N(C2),EDATE(C2,84),IF(N(B2),EDATE(B2,12),IF(N(A2),A2+14,""))))

  6. #6
    Registered User
    Join Date
    06-08-2012
    Location
    ladysmith, va
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Define different date results in one cell

    Thanku, thanku, thanku... this worked perfectly!!

    Quote Originally Posted by Cutter View Post
    If I understand the priority correctly then:

    =IF(N(D2),"Permanent",IF(N(C2),EDATE(C2,84),IF(N(B2),EDATE(B2,12),IF(N(A2),A2+14,""))))

  7. #7
    Registered User
    Join Date
    06-08-2012
    Location
    ladysmith, va
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Define different date results in one cell

    thanks jeff

    Quote Originally Posted by jeffreybrown View Post
    Here is one way in E2 copied down...

    Please Login or Register  to view this content.

  8. #8
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Define different date results in one cell

    You are very welcome. Glad we could help and thanks for the feedback

  9. #9
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Define different date results in one cell

    Yes, you're welcome.

+ 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