+ Reply to Thread
Results 1 to 3 of 3

Check if the cells are not blank

Hybrid View

  1. #1
    Registered User
    Join Date
    12-11-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    2

    Check if the cells are not blank

    I have attempted to alter this example to simply check if the cells are not blank by replacing the "X" with "<>", but I get errors in the SMALL function--it looks like the IF statement is just returning an array with all of the values set to FALSE, and none of the values in the array call out a location of the next filled cell.

    How could you alter your fixed XLSX file to check for non-blank cells instead of "X" specifically?

    Thanks,

    Micah
    Last edited by mkgoff11; 12-19-2012 at 02:11 PM. Reason: Added link to url

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Check if the cells are not blank

    mkgoff11,

    Welcome to the forum!
    Assuming the items you want to return are in column A and the column you're checking for non-blanks is also column A, put this array formula in cell B1 and copy down:
    IFERROR(INDEX($A$1:$A$10,SMALL(IF($A$1:$A$10<>"",ROW($A$1:$A$10)),ROW(A1)),"")

    Note that array formulas must be entered with Ctrl+Shift+Enter and not just Enter.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    12-11-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Check if the cells are not blank

    Ah-ha! The <>"" syntax change fixed it.

    I am trying to produce a configurator for work (yes, I am jimmy-rigging excel to do a database-esque task) and don't have the time to really learn all of this stuff properly. My 2 weeks of Excel in a freshmen engineering course didn't go this deep, and so I must use google to educate myself. I really appreciate your help

    Thanks!!

+ 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