How to Change an Excel Grid Layout with a Drop-Down Selection in WPS Spreadsheets
Question details
The user needs to display different worksheet grid sizes, such as 8x12 or 4x6, by selecting a value from a drop-down list using conditional formatting.

- Product
- WPS Spreadsheets
- Device & OS
- not provided
- Scenario
- A worksheet contains a grid area and a drop-down cell. The user needs the visible or highlighted grid dimensions to update automatically when the drop-down value changes.
- Observed behavior
- The grid layout does not change automatically, and the user needs a formula-based conditional formatting rule to update the displayed grid for each selected size.
Make sure the drop-down cell, such as A1, contains exactly the grid size labels you want to use, such as 8x12 and 4x6, and select the largest worksheet range that may need the grid formatting before you create the rule.
Create conditional formatting rules that change grid size from a drop-down selection
Use this method to automatically highlight or outline the selected grid area in WPS Spreadsheets when the drop-down value changes.
This approach applies a formula-based conditional formatting rule to the selected grid area. WPS Spreadsheets evaluates the ROW() and COLUMN() functions against the drop-down cell, so the visible grid updates instantly when the selection changes.
Click and drag to select the largest range that may need formatting, for example A1:L12. On the Home tab, click Conditional Formatting.
Choose New Rule, select "Use a formula to determine which cells to format", and enter =AND(ROW()<=8,COLUMN()<=12,$A$1="8x12") for an 8 by 12 grid controlled by cell A1.
Click Format, choose Fill, Borders, or another format to visually mark the grid cells, then confirm the rule.
Repeat the steps for each drop-down value, such as =AND(ROW()<=4,COLUMN()<=6,$A$1="4x6"), applying the formatting for the 4 by 6 selection.
Switch Excel Grid Layouts from a Drop-Down in WPS Spreadsheets
Use formula-based conditional formatting in WPS Spreadsheets to control which rows and columns are highlighted based on a drop-down selection such as 8x12 or 4x6.
- 1. Open your workbook in WPS Spreadsheets: Launch WPS Office, open the Excel workbook that contains the grid and drop-down cell A1.
- 2. Select the grid range: Select the maximum range such as A1:L12 where the grid layout should appear.
- 3. Create the first conditional formatting rule: Go to Home > Conditional Formatting > New Rule, choose "Use a formula to determine which cells to format", and enter =AND(ROW()<=8,COLUMN()<=12,$A$1="8x12").
- 4. Add rules for each drop-down size: Repeat the rule for 4x6 or any other size, using the matching row, column, and $A$1 value in the formula.
- 5. Test the drop-down selection: Change the drop-down cell A1 between 8x12 and 4x6 to confirm the grid layout updates automatically.

Frequently Asked Questions
Can I use a cell other than A1 to control the grid layout?
Yes. Replace $A$1 in the conditional formatting formula with the absolute reference of your drop-down cell, for example $B$2.
Why is the grid not changing when I select a new value?
Check that the formula uses an absolute drop-down reference such as $A$1, that the conditional formatting rule is applied to the correct range, and that the drop-down value exactly matches the text in the formula, including spacing and capitalization.
Can I apply a different fill color for each grid size?
Yes. Create a separate conditional formatting rule for each grid size and choose a different fill, border, or font format for each rule.
Does this work with more than two grid sizes?
Yes. Add a formula-based conditional formatting rule for each additional grid size, adjusting the row limit, column limit, and drop-down value in each formula.
Will this conditional formatting rule work in Microsoft Excel?
Yes. The same formula-based approach works in WPS Spreadsheets and Microsoft Excel, so the worksheet remains compatible with .xlsx files.




