Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Erik T
 
Posts: n/a
Default Hide all values in a row if value is 0

I am putting together a forecast sheet for part requirements and with so many
parts to deal with I would like to set it up so that anytime the required
amount is 0, then the entire row is hidden. Currently I have a simple formula
to just show a blank cell. It is time consuming to review 300 P/N when I may
only need 14 P/N that week. How can I go about hidding the entire row in a
formula?

Thank you,

Erik
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Otto Moehrbach
 
Posts: n/a
Default Hide all values in a row if value is 0

You can't. Not with a formula. A formula will only return a value. You
will have to use VBA to hide the rows.
I assume that the required amount is in some column from this row to that
row. Is that correct? If so, then you can use something like this:
Say that Column F holds the amounts.
Sub HideRows()
Dim TheRng As Range
Dim i As Range
Set TheRng = Range("F2", Range("F" & Rows.Count).End(xlUp))
For Each i In TheRng
If i.Value = 0 Then i.EntireRow.Hidden = True
Next i
End Sub
HTH Otto

"Erik T" wrote in message
...
I am putting together a forecast sheet for part requirements and with so
many
parts to deal with I would like to set it up so that anytime the required
amount is 0, then the entire row is hidden. Currently I have a simple
formula
to just show a blank cell. It is time consuming to review 300 P/N when I
may
only need 14 P/N that week. How can I go about hidding the entire row in a
formula?

Thank you,

Erik



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I Need a formula to evaluate a cell with + or - values Bob in Oklahoma Excel Worksheet Functions 6 October 31st 05 02:41 PM
Return Range of Numerical Values in Single Column based on Frequency Percentage Sam via OfficeKB.com Excel Worksheet Functions 9 October 28th 05 11:01 PM
View of x-axis values AhmtDY Charts and Charting in Excel 2 October 18th 05 06:18 PM
How do I hide 0 values in line charts Stephan Charts and Charting in Excel 2 April 12th 05 12:55 PM
Excel - hide erroer values Kathrine J Wathne Excel Discussion (Misc queries) 1 January 10th 05 10:13 PM


All times are GMT +1. The time now is 08:16 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"