Conditional hiding of rows with multiple Ifs
How does one write this?
- In a worksheet named "Control Panel" the user types in the descriptions of market segments in B2:B21
- Using the COUNTA function, cell D1 in Sheet "Control Panel" returns the number of populated rows (some rows are likely to be blank)
- Then, I want to hide the following rows in other worksheets of the workbook depending on the value returned in "Control Panel" Cell D1:
- If it is 7, hide rows 10:17 and 28:35 in each of Worksheets "Sales" and "Margin"
- If it is 8, hide rows 11:17 and 29:35 in each of Worksheets "Sales" and "Margin",
and so on.
Thanks!