A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Conditional Hiding of Rows or Columns



 
 
Thread Tools Display Modes
  #1  
Old June 18th, 2004, 03:01 AM
sanjay_suda
external usenet poster
 
Posts: n/a
Default Conditional Hiding of Rows or Columns

Hello Good People,

I have a very large spreadsheet with approx 35 columns and over 500
rows. However, I do not need to see all the rows at any point in time
and may want to look at just a limited number of rows. Generally I need
to look at only those rows that have a non zero value in a specific
column. Such rows can be randomly dispersed within the spreadsheet.

I can use the option of sorting the full spreadsheet based upon the
value of the cells in the particular column, however, this does not
help very much as I would need to do this every time I referred to the
sheet - which may be upto 20 times a day (the sheet is populated
automatically from a database every 15 minutes).

If possible I would like the rows to hide and unhide themselves
automatically based upon a condition like If value in a specified
column is non zero then hide the row. This will also allow me to retain
the original sort order of the rows which is based upon different
columns.

Is this possible.

Regards and Thanks for Assistance


---
Message posted from http://www.ExcelForum.com/

  #2  
Old June 18th, 2004, 04:20 AM
JE McGimpsey
external usenet poster
 
Posts: n/a
Default Conditional Hiding of Rows or Columns

You could use an Event Macro to automatically hide and unhide rows, but
it sounds to me like Data/Sort/AutoSort will work for you. Choose Custom
Filter, column does not equal 0.





In article ,
sanjay_suda wrote:

I have a very large spreadsheet with approx 35 columns and over 500
rows. However, I do not need to see all the rows at any point in time
and may want to look at just a limited number of rows. Generally I need
to look at only those rows that have a non zero value in a specific
column. Such rows can be randomly dispersed within the spreadsheet.

I can use the option of sorting the full spreadsheet based upon the
value of the cells in the particular column, however, this does not
help very much as I would need to do this every time I referred to the
sheet - which may be upto 20 times a day (the sheet is populated
automatically from a database every 15 minutes).

If possible I would like the rows to hide and unhide themselves
automatically based upon a condition like If value in a specified
column is non zero then hide the row. This will also allow me to retain
the original sort order of the rows which is based upon different
columns.

Is this possible.

  #3  
Old June 18th, 2004, 04:50 AM
JE McGimpsey
external usenet poster
 
Posts: n/a
Default Conditional Hiding of Rows or Columns

Replace went the wrong way sigh. Try:

Data/Filter/AutoFilter


In article ,
JE McGimpsey wrote:

You could use an Event Macro to automatically hide and unhide rows, but
it sounds to me like Data/Sort/AutoSort will work for you. Choose Custom
Filter, column does not equal 0.

  #4  
Old June 18th, 2004, 05:09 AM
Peo Sjoblom
external usenet poster
 
Posts: n/a
Default Conditional Hiding of Rows or Columns

I thought for a moment it was some new Mac Excel function g

--


No private emails please, for everyone's
benefit keep the discussion in the newsgroup.

Regards,

Peo Sjoblom

"JE McGimpsey" wrote in message
...
Replace went the wrong way sigh. Try:

Data/Filter/AutoFilter


In article ,
JE McGimpsey wrote:

You could use an Event Macro to automatically hide and unhide rows, but
it sounds to me like Data/Sort/AutoSort will work for you. Choose Custom
Filter, column does not equal 0.



  #5  
Old June 18th, 2004, 05:18 AM
JE McGimpsey
external usenet poster
 
Posts: n/a
Default Conditional Hiding of Rows or Columns

In article ,
"Peo Sjoblom" wrote:

I thought for a moment it was some new Mac Excel function g


Nope - 'twas a probably-shouldn't-have-had-that-last-beer function.
  #6  
Old June 18th, 2004, 05:34 AM
opeel
external usenet poster
 
Posts: n/a
Default Conditional Hiding of Rows or Columns

Select the entire sheet using the sqaure button in the top left of the
sheet (between the header A and the row header 1). Then from the data
menu select autofilter. Use the drop down box on the column with the
blank cells you wish to filter out. Select the (Non Blanks) option.


---
Message posted from http://www.ExcelForum.com/

  #7  
Old June 18th, 2004, 04:03 PM
Alan_McBride
external usenet poster
 
Posts: n/a
Default Conditional Hiding of Rows or Columns

I have a similar problem but instead of being an entire column I'm trying to hide the zero values in a range of cells. I've been trying to get the below macro to work but it's just not happening for me. Can anyone suggest the necessary changes? The Macro is to hide zero values in column 6, rows 13 to 70.

Sub hide_rows()

For rwIndex = 13 To 70
For colIndex = 6 To 6
With Worksheets("UCS").Cells(rwIndex, colIndex)
If .Value = 0 Then EntireRow.Hidden = True
End With
Next colIndex
Next rwIndex
End Sub

Thanks for any advice you can give.

AMcB

"sanjay_suda " wrote:

Hello Good People,

I have a very large spreadsheet with approx 35 columns and over 500
rows. However, I do not need to see all the rows at any point in time
and may want to look at just a limited number of rows. Generally I need
to look at only those rows that have a non zero value in a specific
column. Such rows can be randomly dispersed within the spreadsheet.

I can use the option of sorting the full spreadsheet based upon the
value of the cells in the particular column, however, this does not
help very much as I would need to do this every time I referred to the
sheet - which may be upto 20 times a day (the sheet is populated
automatically from a database every 15 minutes).

If possible I would like the rows to hide and unhide themselves
automatically based upon a condition like If value in a specified
column is non zero then hide the row. This will also allow me to retain
the original sort order of the rows which is based upon different
columns.

Is this possible.

Regards and Thanks for Assistance


---
Message posted from http://www.ExcelForum.com/


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.