+ Reply to Thread
Results 1 to 5 of 5

IF statement

  1. #1
    Registered User
    Join Date
    09-11-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    3

    IF statement

    I am just a very old dog trying to learn new tricks and I need some help please.

    I have a spreadsheet with four (4) columns of interest

    C3 TODAY()
    D8 Date Reported
    H8 Date Closed
    I8 Aging

    I want to show aging based on reported date and current date as long as the item is not closed. Once a date is entered into the (H3) date closed cell, I want it to stop updating and show the aging up until it was closed.

    I would appreciate any help and would really appreciate an explanation to go with the solution.

    Best regards

  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

    In I8 use

    =IF(H8="",TODAY()-D8,H8-D8)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: IF statement

    Try this in cell I8:

    =IF(H8="",C3-D8,H8-D8)

    states that if cell H8 (Date closed) contains not date then cell I8 is equal to the number of days between todays date (C3) and the date reported(D8). If H8 does contain a value the cell I8 is equal to the number of days between the date closed (H8) minus the Date Reported (D8).

  4. #4
    Registered User
    Join Date
    09-11-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: IF statement

    rvasquez,

    Thank you for such a clear explanation. I actually understand it now. Just hope I can remember it.

    Thanks again

  5. #5
    Registered User
    Join Date
    09-11-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: IF statement

    Thank you Ace_XL. I do appreciate the assistance.

+ 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