Hello,
I am trying to figure out how to Auto hide rows in a table based on the criteria that Columns B,C,D & E contain a value of zero. (I also have another sheet that I would want to do the exact same thing but with B,C,D,E,F & G containing a value of zero). And if possible only on the rows that contain the tables.
The cells contain an IFERROR formula that returns a 0 if no data is fetched.
I'm assuming I will need to use a "Private Sub Worksheet_Calculate()" but so far all the ones I have tried have given me issues.
If possible I would also want it to Auto unhide the rows when the data is changed and the value in either of those columns is no longer Zero.
Is this a possible thing to do? This is my first post so bare with me if the explanation is not thorough enough.
Thanks!
I am trying to figure out how to Auto hide rows in a table based on the criteria that Columns B,C,D & E contain a value of zero. (I also have another sheet that I would want to do the exact same thing but with B,C,D,E,F & G containing a value of zero). And if possible only on the rows that contain the tables.
The cells contain an IFERROR formula that returns a 0 if no data is fetched.
I'm assuming I will need to use a "Private Sub Worksheet_Calculate()" but so far all the ones I have tried have given me issues.
If possible I would also want it to Auto unhide the rows when the data is changed and the value in either of those columns is no longer Zero.
Is this a possible thing to do? This is my first post so bare with me if the explanation is not thorough enough.
Thanks!
Cell Formulas | ||
---|---|---|
Range | Formula | |
B5:B6,D5:D6 | B5 | ='Data-OH'!B18 |
B8:B30 | B8 | =IFERROR(INDEX('Data-OH'!B:B,MATCH(A8,'Data-OH'!A:A,0)),0) |
C8:C30 | C8 | =IFERROR(INDEX('Data-OH'!C:C,MATCH(A8,'Data-OH'!A:A,0)),0) |
D8:D30 | D8 | =IFERROR(INDEX('Data-OH'!D:D,MATCH(A8,'Data-OH'!A:A,0)),0) |
E8:E30 | E8 | =IFERROR(INDEX('Data-OH'!E:E,MATCH(A8,'Data-OH'!A:A,0)),0) |
F8:G30 | F8 | =B8-D8 |
B31 | B31 | =SUBTOTAL(109,[MONTH]) |
C31 | C31 | =SUBTOTAL(109,[YTD]) |
D31 | D31 | =SUBTOTAL(109,[[MONTH ]]) |
E31 | E31 | =SUBTOTAL(109,[[YTD ]]) |
F31 | F31 | =SUBTOTAL(109,[[MONTH ]]) |
G31 | G31 | =SUBTOTAL(109,[[YTD ]]) |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
F8:G31 | Cell Value | <0 | text | NO |
F8:G31 | Cell Value | >0 | text | NO |