+ Reply to Thread
Results 1 to 8 of 8

Checking a range of cells for False

  1. #1
    Forum Contributor Grimace's Avatar
    Join Date
    05-04-2009
    Location
    Gold Coast, Australia
    MS-Off Ver
    Excel 2013 and Office 365 Plus
    Posts
    380

    Checking a range of cells for False

    Good morning,

    Sorry I know I am having a brain fade on a very basic function, but for the life of me cannot think of it.

    I have a list of dates in a column, and am wanting to compare them against today() in cell A1. If any of the dates are in the past, it returns a FALSE, if all of the dates are in the future, it returns a TRUE.

    I know this is a really basic question .... can only put it down to Monday-itis after a big weekend

    I feel like I am asking a rocket scientist how to light a match
    Last edited by Grimace; 02-21-2010 at 09:44 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Checking a range of cells for False

    If the dates are in column B, then you could put this in column C:

    =B1>$A$1

    ...and just copy that down. You should get TRUE/FALSE answers as appropriate.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    10-25-2008
    Location
    Mount Joy, PA
    MS-Off Ver
    2003
    Posts
    44

    Re: Checking a range of cells for False

    Assuming the dates are in column B then

    Please Login or Register  to view this content.
    However this will return False for today.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Checking a range of cells for False

    If you need to compare the entire range of dates to the date in A1 and only get TRUE if they are ALL in the future then use this array formula:

    =AND(B1:B10>$A$1)

    ...confirmed by pressing CTRL-SHIFT-ENTER. You'll know the array is active when curly braces { } appear around your formula.
    Last edited by JBeaucaire; 02-21-2010 at 09:40 PM.

  5. #5
    Forum Contributor Grimace's Avatar
    Join Date
    05-04-2009
    Location
    Gold Coast, Australia
    MS-Off Ver
    Excel 2013 and Office 365 Plus
    Posts
    380

    Re: Checking a range of cells for False

    Thanks for that JBeaucaire ....

    Is there a way for me to incorporate it into a single cell so I am not ading a column for the True / False answer?

    eg in Cell B1, have a formula that checks all of column F to see if any of the cells are before today.

  6. #6
    Forum Contributor Grimace's Avatar
    Join Date
    05-04-2009
    Location
    Gold Coast, Australia
    MS-Off Ver
    Excel 2013 and Office 365 Plus
    Posts
    380

    Re: Checking a range of cells for False

    crossed posts ....

    Thats what I was after ... thanks again !!!

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Checking a range of cells for False

    =COUNTIF(A2:A100,"<="&$A$1)=0

    If Any of the cells in A2:A100 are less than or equal to A1 (Today()), then FALSE is Returned...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Checking a range of cells for False

    I like NBVC's suggestion...

+ 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