+ Reply to Thread
Results 1 to 5 of 5

Check if row is 0 or blank

  1. #1
    Registered User
    Join Date
    08-25-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    35

    Check if row is 0 or blank

    Hi all,

    I have a number of rows that contains data (normally numeric):

    0 | 0 | 0 | 0 | ... |True
    1 | 0 | 0 | 0 | ... |False
    0 | 1 | 0 | 1 | ... |False

    What's the formula that gives the True/False answers?
    I could go IF(AND(A1=0,B1=0,etc...),TRUE,FALSE) that gets the results, but can it be done in a smarter method or can it done via array method?

    Cheers

  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: Check if row is 0 or blank

    Maybe this array formula**:

    =AND(A1:D1=0)

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,962

    Re: Check if row is 0 or blank

    or
    =COUNTIF(A1:D1,">0")=0

    Not as simple/clean as Tony's, but *maybe* easier to understand?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    08-25-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: Check if row is 0 or blank

    Cheers guys!

  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: Check if row is 0 or blank

    You're welcome!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Check if the cells are not blank
    By mkgoff11 in forum Excel General
    Replies: 2
    Last Post: 12-19-2012, 02:35 PM
  2. Check if Blank, If so, Check the Next Cell
    By Watterboy in forum Excel General
    Replies: 5
    Last Post: 12-08-2011, 01:39 PM
  3. Check if any cell is blank.
    By spqr in forum Excel General
    Replies: 5
    Last Post: 06-18-2009, 04:29 AM
  4. Macro to check for blank cell entry, copy previous value, and check for duplicates
    By xPunxNotDeadx in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-26-2009, 06:33 PM
  5. VBA macros to check a blank
    By coffee11 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-08-2005, 12:00 PM

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