+ Reply to Thread
Results 1 to 4 of 4

IF function

  1. #1
    Registered User
    Join Date
    04-09-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    6

    IF function

    HI,

    Can someone assist in making a cell with the following:

    I have:
    -4 cells with different consecutive increasing dates (ie. 1 June, 2014 - 1 July, 2014, etc....) For practical reasons, let's call these cells A,B,C,D
    -Today's date

    I need:
    The created cell to give me back the number of days between TODAY and the first available of the dates (A). If the date (A) has passed, then the countdown goes to the next date (B) and so on.

    So in other words:
    Cell gives displays the value of: Today-(A) if positive
    If not positive, Cell gives the value of Today - (B) if positive
    If not positive, Cell gives the value of Today - (C), etc.........

  2. #2
    Registered User
    Join Date
    03-26-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    59

    Re: IF function

    Try this:

    =MIN(IF((A1:A4-TODAY()>0),A1:A4-TODAY()," "))

  3. #3
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Atlanta
    MS-Off Ver
    Excel 2007
    Posts
    171

    Re: IF function

    Also, make sure to use SHIFT+CTRL+ENTER after you've entered the formula into the cell

  4. #4
    Registered User
    Join Date
    04-09-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: IF function

    Amazing. Thank you Down Under and ATLGator. It's working.

+ 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