+ Reply to Thread
Results 1 to 5 of 5

aging a date in column A unless there is a value in column B

  1. #1
    Registered User
    Join Date
    03-07-2013
    Location
    San Antonio
    MS-Off Ver
    Excel 2010
    Posts
    45

    aging a date in column A unless there is a value in column B

    Hello,

    I need help coming up with a formula. In column A I have various dates that a customer began doing business with us. In column B is the date that that customer began generating revenue. I need to put a formula in column C that calculates the number of days between now and when the customer begain doing business with us (column A) unless there is a date in column B.

    Book1.xlsx

    In this example I would need a value returned in column C on rows 3, 4, 5, and 7 but not on 2 and 6.

    Any help would be greatly appreciated!

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: aging a date in column A unless there is a value in column B

    Maybe this...

    Entered in C2 and copied down:

    =IF(B2="","",TODAY()-A2)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    03-07-2013
    Location
    San Antonio
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: aging a date in column A unless there is a value in column B

    That is a good start, but the column still displays a value even if there is something in column B.

  4. #4
    Registered User
    Join Date
    03-07-2013
    Location
    San Antonio
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: aging a date in column A unless there is a value in column B

    I figured it out. The formula I needed was =IF(and(A2>0, B2=""), TODAY()-A2, "")

    Thanks for the help!

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: aging a date in column A unless there is a value in column B

    Good deal. Thanks for the feedback!

+ 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