+ Reply to Thread
Results 1 to 7 of 7

Return non-blank cells from range AND ignore cells with only formula w/o results

  1. #1
    Registered User
    Join Date
    03-26-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Return non-blank cells from range AND ignore cells with only formula w/o results

    Hi. I'm rather new to excel, and am having trouble merging two formulas.
    In column A I tick off items using different letters according to their category, and my existing formula in column D (for simplicity's sake, something like IF A2=x, F2)pulls the associated order numberand places it in the D cell.

    I want my formula on a separate sheet to return all the non blank values in the column, which is easy enough using this formula posted in another thread on here
    =IFERROR(INDEX(D:D,SMALL(INDEX(NOT(ISBLANK($D$2:$D$20))*ROW($D$2:$D$20),0),COUNTBLANK($D$2:$D$20)+ROW(D1))),"")
    This however is not ignoring blank cells as opposed to empty cells.
    edit: if that's not clear, it does ignore truly empty cells but if there is a formula in the cell, even though the formula is not returning any value, it sees the formula and counts it as non blank.

    I found this on another forum, which works in its own right but I am unable to merge the two correctly.
    =IF(A1="",empty_situation,non_empty_situation)

    I'm sure there's a plainly obvious solution I'm overlooking but would appreciate any help.
    Last edited by grafitti; 03-27-2013 at 05:27 PM.

  2. #2
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852

    Re: Return non-blank cells from range AND ignore cells with only formula w/o results

    Why not create a pivot table with the range being only Column D?

    Then add the field to the row section of the pivot. It will desplay all items, and you can tick off the blanks in the field options
    If you found the solution to your question. Mark the thread as "Solved"
    Thank everyone that helped you with a valid solution by clicking on their

    There is no such thing as a problem, only a temporary lack of a solution

  3. #3
    Registered User
    Join Date
    03-26-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Return non-blank cells from range AND ignore cells with only formula w/o results

    I've tried a pivot table, but since I have more than one column i can't get it to hide blanks in one column without hiding the fields in the adjoining column, short of adding a new pivot table in each column.
    I've attached a sample of what I'm working on. My complete file will have 10-15,000 rows of data.
    Sheet 05PDCH where the pivot table pulls the info from Sheet Data, columns B and C populate depending on the value in column A.
    I want the Sheet Work to Process to enter the values from those columns B and C, removing blanks. (as in the static sample on that sheet)
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852

    Re: Return non-blank cells from range AND ignore cells with only formula w/o results

    If you want all non blank + Unique values for a specific column, the Pivot is the best way to do it.
    No need to add any extra columns. Just create the pivot table with 1 column as your data source and tick off the blanks you don’t want.
    The added bonus of the pivot is that as new data arrives, the pivot updates also.

    It seems though that what you are looking for is
    The unique list without blanks from 2 Columns.

    Column B and Column C. For this you need 2 pivots

    Create 2 Pivots 1 for column B and 1 for Column C

    Column B data Source B14:B20000 - Put the field in the row section and tick off blanks
    Column C data Source C14:B20000 - Put the field in the row section and tick off blanks

    Alternatively you can add an extra field to your "data" sheet where you put an extra columnO and insert there the X or A marks.
    Your original pivot table will now have the "A" or "X" marks as a field with no need to have those columns B or C with the if statements

  5. #5
    Registered User
    Join Date
    03-26-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Return non-blank cells from range AND ignore cells with only formula w/o results

    Thank you. That worked, to have each column running its own pivot table. As I will have 4 sheets each with 2 columns of data, that will mean 8 pivot tables but it must be less strain on the workbook than my idea of a formula in 10,000 rows x 8 columns.

  6. #6
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852

    Re: Return non-blank cells from range AND ignore cells with only formula w/o results

    Glad I could help.

    You can save a bit of time also if you create a small macro to update all the pivots automatically by pressing an update button.

    The code is not that hard to do and you will make sure all your date is up to date very quickly.
    If you need help with that start a new thread in the macros/vba section.

  7. #7
    Registered User
    Join Date
    03-06-2014
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Return non-blank cells from range AND ignore cells with only formula w/o results

    This will help you out,

    IFERROR(INDEX($AA:$AA,SMALL(INDEX((($AA$2:$AA$600)<>"")*ROW($AA$2:$AA$600),0),ROW(AA1)+COUNTBLANK($AA$2:$AA$600))),"")


+ 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