+ Reply to Thread
Results 1 to 5 of 5

How to Display only Populated Cells in a Printable Report

  1. #1
    Registered User
    Join Date
    03-23-2015
    Location
    Chicago, USA
    MS-Off Ver
    MS Office 2013 on PC
    Posts
    2

    How to Display only Populated Cells in a Printable Report

    This task is more complicated than it sounds. I have a very large survey data worksheet of which I wish to take sections at a time for a printable report on a different worksheet. Most of the data are quantitative, but there's also a comments section. Most people leave this blank. A few write something. I want the comments section at the bottom of the printable report only to display cells that have comments in them and to ignore blank ones. I'm not sure how to achieve this. Unfortunately, the simplest route of simply using a filter on the survey worksheet doesn't get the job done--the report survey still "sees" the blanks.

    Am I describing this clearly? In the data worksheet, the Comments all go in the Comments column associated with the quantitative data in the same row of the survey with which they were entered. I want a different worksheet to show only the cells from that column that have comments in them. Because we'll be producing a very large number of reports from segments of data, I have a worksheet set up that comfortably summarizes the quantitative data in a one-page printable format. I could filter the comments and then copy-paste them, but I'm hoping to skip this step with a printable report that automatically populates when it's reading from the survey data.

    Because the formulas for the worksheet only to read visible cells in filtered columns for the quantitative summary caused Excel to grind slowly with this much data, I'm copy-pasting the desired sets of rows into an otherwise blank worksheet, and the report is referencing from this instead. This is mostly irrelevant to the question, but it may make things a little easier, since there's no hoop of making the report only attend to a certain selection.

    First-time post, and I haven't found a question quite like this before. I'm on MS Office 2013. Hope I'm addressing the forum correctly. Thank you!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,422

    Re: How to Display only Populated Cells in a Printable Report

    You could have a helper column on the first sheet which looks to see if there is a comment, and increments a unique sequential number if there is one, like this:

    =IF(LEN(K2)>0,(M$1:M1)+1,"-")

    assuming the comment is in column K and the helper formula is in M2. You can then use this as the basis of which records to retrieve on the other sheet.

    Hope this helps.

    Pete

  3. #3
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: How to Display only Populated Cells in a Printable Report

    I would wrap a pivot table around the data, and only then filter out blank comments.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  4. #4
    Registered User
    Join Date
    03-23-2015
    Location
    Chicago, USA
    MS-Off Ver
    MS Office 2013 on PC
    Posts
    2

    Re: How to Display only Populated Cells in a Printable Report

    Thanks for both these suggestions. While the pivot table seems like the obvious way to go, it's surprisingly clunky for creating the printable reports from chunks of data in the way I need to.

    But how about this helper column idea? I'm a little confused how to use it, since I'm getting either 0s or value or reference errors, depending on which row I start the helper column and how I tweak the row references (with the column designations obviously changed to suit the worksheet).

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,422

    Re: How to Display only Populated Cells in a Printable Report

    Post a sample Excel workbook.

    Pete

+ 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. make a repair and maintenance report with printable form
    By aaronmendoza in forum Excel General
    Replies: 6
    Last Post: 06-19-2012, 07:38 PM
  2. Replies: 4
    Last Post: 12-03-2009, 10:45 AM
  3. Splitting cells by non-printable characters
    By Simon1185 in forum Excel General
    Replies: 8
    Last Post: 10-16-2009, 05:34 AM
  4. Display result where cell in a row populated
    By dnf999 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-14-2009, 12:29 PM
  5. 'Automatic' sorting to printable report
    By Ian in forum Excel General
    Replies: 1
    Last Post: 04-02-2006, 07:00 AM

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