All - Trying to create a code that hides a row or multiple rows based on certain cells having a 0. I tried If statements and other .hidden functions but I can't get certain rows to hide all at once or to do everything below. The sheet is below and I'm trying to have the logic do the below. All the values in the sheet are pulling from another sheet.
Hide rows 10 - 23 each independently if value in column B is 0 in the row
Hide rows 24 - 33 if C26 is 0
Hide rows 40 - 47 each independently if value in column B is 0 in the row
Hide rows 52 - 53 if B40 is 0
Hide rows 57 - 62 if B43 is 0
Hide rows 36 - 39 if SUM(B40:B47) is 0
If all the numbers change to a number not 0 and the code is run the rows will unhide.
Hide rows 10 - 23 each independently if value in column B is 0 in the row
Hide rows 24 - 33 if C26 is 0
Hide rows 40 - 47 each independently if value in column B is 0 in the row
Hide rows 52 - 53 if B40 is 0
Hide rows 57 - 62 if B43 is 0
Hide rows 36 - 39 if SUM(B40:B47) is 0
If all the numbers change to a number not 0 and the code is run the rows will unhide.