+ Reply to Thread
Results 1 to 7 of 7

List only entries that have values

  1. #1
    Registered User
    Join Date
    07-28-2009
    Location
    Newcastle
    MS-Off Ver
    Excel 2003
    Posts
    38

    List only entries that have values

    Is there any way that I can only display a cell if it has a value? I don't mean by conditional formatting or anything like that.

    What I have is a set of data in two columns and about 20 rows. At any one time, there will only be a maximum of 4 or 5 rows that have data in, the others will all be #DIV/0! errors. I am creating a report on another sheet that needs to display the valid entries and I'm hoping there is a way to display them only. I could only think of having a row for each possible entry on the report and using conditional formatting or if statements to keep them blank when they aren't actual numbers, but this would make the report look a bit messy and have big gaps in.

    Any thoughts would be really appreciated, I've hit a brick wall!

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: List only entries that have values

    Try getting rid of the #DIV/0! errors

    e.g.

    =IF(ISERR(A1/B1),"",A1/B1)

    Then filter your data for Non-Blanks
    This could then be your report.

    If you want it on a separate sheet, copy the filter result and paste to the desired sheet.

    Hope this is of some help.

  3. #3
    Registered User
    Join Date
    07-28-2009
    Location
    Newcastle
    MS-Off Ver
    Excel 2003
    Posts
    38

    Re: List only entries that have values

    Thanks. The only problem with that though, is that without the errors my graphs go wrong as these use the same data.

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: List only entries that have values

    Why base your graphs on errors?

  5. #5
    Registered User
    Join Date
    07-28-2009
    Location
    Newcastle
    MS-Off Ver
    Excel 2003
    Posts
    38

    Re: List only entries that have values

    Having errors instead of zeros mean that the graphs don't bother trying to plot those points.

  6. #6
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: List only entries that have values

    Are you sure of that?

    The charts seem to behave in identical ways, regardless of whether "", 0, or #DIV/0! is used in my version of Excel.

  7. #7
    Registered User
    Join Date
    07-28-2009
    Location
    Newcastle
    MS-Off Ver
    Excel 2003
    Posts
    38

    Re: List only entries that have values

    Sorry, I got the error wrong, it was the #N/A one. On my graphs (excel 2003), this just gets ignored, whereas if the cells are empty or zero it tries to plot along the axis. This = very annoying!
    Not to worry though, got it sorted with a macro instead.

    In case anyone else has the same problem, here is the code
    Please Login or Register  to view this content.

+ 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