Dynamically Hide Rows Without Filters or Macros

Corim Danex

New Member
Joined
Dec 12, 2015
Messages
5
Is there a way in Excel to have a field where you type in a number of rows desired in a field, with a maximum of say 200, and those rows exist with formulas, but all but the number of desired rows will be hidden?

Like if I choose 30, rows 31-200 would hide.

I don't want a VBA, macro, or a filter solution.

I thought I found something online for how to do this and it turned out to be for a different program, and not for Excel.

This sheet will need to be used by a lot of people with a range of Excel proficiency.
I am confident that I know how to adjust my formulas to only count the rows selected in the how many rows do you want field. But I don't know how to hide the unused rows, which is what I desire.

Currently the sheet has an extra COPY LINE that I ask users to copy and insert for as many added rows as needed beyond the default. Some users have problems with that since it is too complex for them.

Thank you.
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
I'm afraid you cannot hide rows just using a formula.
You will need to use filters or a macro.
 
Upvote 0
Thank you for a quick response.

Is it true that if I were to use a macro, the file type would have to be different than .xlsx?
 
Upvote 0
Yes it would. Macros need to be in either .xlsm or .xlsb workbooks
 
Upvote 0

Forum statistics

Threads
1,216,116
Messages
6,128,926
Members
449,479
Latest member
nana abanyin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top