ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do write a formula so that only rows with info prints? (https://www.excelbanter.com/excel-worksheet-functions/89143-how-do-write-formula-so-only-rows-info-prints.html)

help

How do write a formula so that only rows with info prints?
 
I need to write a formula that would only print rows that have info in a
quantity column

Miguel Zapico

How do write a formula so that only rows with info prints?
 
You can use the autofilter (Data-Filter-Autofilter), and select "(Non
blanks)" in the quantity column. That will hide all the rows that don't have
data there.

Hope this helps,
Miguel.

"help" wrote:

I need to write a formula that would only print rows that have info in a
quantity column


Pete_UK

How do write a formula so that only rows with info prints?
 
In a spare column to the right of the main data (i.e. out of the print
range) add a simple formula to copy the quantity column, eg =G2 if
column G is the quantity column, and copy this down as necessary. Where
you have blanks in column G, these will show as 0 in this helper
column.

Highlight the column and click Data | Filter | Autofilter to turn on
autofilter for this column only. Then, to select only those columns
containing data, you can apply a filter as follows:

Custom | Does Not Equal | 0 (zero)

and only the non-blank rows will be visible.

Hope this helps.

Pete



All times are GMT +1. The time now is 05:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com