简体   繁体   中英

Invisible table based on drop-down list value

There is a drop-down list with numbers that was made using Data-> Data validation. The goal is to make visible only the number of rows of the table that was chosen from drop-down list without using vba (to make it more easily to edit by ordinary users). The first column of the table contains numbers corresponding to the numbers from the drop-down list. The table also contains the columns with formulas. I choosed to use conditional formating with idea that all the cells of the table will be calculated and then hide those rows of the table that are under the row corresponding to the value of cell with drop-down list. In other words it needs to dynamically change the visible rows of the table or to dynamically form the table (but there is a columns with formulas and I don't know if you can do that without using vba). I've tried different ways but this problem seems difficult for me. Maybe instead of ordinary table you need to use smart-table or power pivot but I don't have experience of using it. Thank You for Your help!

Ok... let's asume you have the value in A1 .

Now for the range of B2:G20 .
Conditional formatting formula: =ROW()>$A$1

In the range of B2:G20 every cell will be formated with a row higher than the value in A1

If the format is something like ; ; ; ; ; ; it looks empty.

Using this example and having 11 in A1 -> B12:G20 will be hidden.

However: to set Row.Hdden = true you need to do it manually or use VBA :/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM