Hide Rows in Range Based on Value in Column

blairski10

New Member
Joined
Jan 26, 2014
Messages
9
I have a worksheet that pulls data from another sheet to show spend data in various categories (rows). The data in the range changes based on criteria that I put in a specific cell. I want to be able to hide/unhide rows dynamically every time I change the data in the specific cell if the value in a specific column is "hide" (based on an IF statement "IF(ColumnD+ColumnE=0,"hide","show")."

Is there VBA code that will hide these rows if it matches the criteria AND then 1) resets to the full them all when I select a new criteria and then hides again for zero values?
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
You could just set the row.height to zero when value = 0, and then expand it when needed.
 
Upvote 0

Forum statistics

Threads
1,214,812
Messages
6,121,693
Members
449,048
Latest member
81jamesacct

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top