+ Reply to Thread
Results 1 to 2 of 2

Need help developing a formula

  1. #1
    Registered User
    Join Date
    09-03-2006
    Posts
    1

    Need help developing a formula

    I need help developing a formula in which column A calendar date (09/01/06) is compared to column B calendar date (09/03/06) and the earlier of the 2 dates plus 30 days goes into column C.

    The 3 choices for C are:
    If A < B, C = A+30
    If A = B, C = B+30
    If A > B, C = B+30

    Example:
    If Column A = 09/01/06 and Column B = 09/03/06, Column C should be 09/01/06 + 30 days = 10/03/06

    What I've come up with so far (that doesn't work) is:
    =((A+30)IF(A<B))OR((B+30)IF(A>=B))

    Thanks for your help.
    FarleyP
    Last edited by FarleyP; 09-03-2006 at 08:26 PM.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065
    Given your three formulas C is either A+30 or B+30, so isnt this simply

    =IF(A<B,A+30,B+30)
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

+ 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