Select how many cells should be avaiable

cinox

New Member
Joined
Mar 14, 2011
Messages
11
Hi,

I want to have a cell where i write in a number, example: 10.
And then i have cell A1:A10 available for editing. And if i write 5 then i have A1:A5 available for editing.

How is that possible?
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Welcome to the board.

One way might be to use data validation. For example, say the cell with the count in is C1.

Select A1.
Invoke Data Validation
Settings (tab) Allow: Custom
Formula: =ROW(A1)<=$C$1
Click OK

Now copy A1.
Select the range in column A that you want this to apply to (e.g. A1:A100).
Paste Special > Validation

Inputting 10 will only allow A1:A10 to be edited.
 
Upvote 0
Thanks for your early reply,

i dont understand what you mean with
"Invoke Data Validation
Settings (tab) Allow: Custom"
I cant find this in my excel sheet.

Thanks

Welcome to the board.

One way might be to use data validation. For example, say the cell with the count in is C1.

Select A1.
Invoke Data Validation
Settings (tab) Allow: Custom
Formula: =ROW(A1)<=$C$1
Click OK

Now copy A1.
Select the range in column A that you want this to apply to (e.g. A1:A100).
Paste Special > Validation

Inputting 10 will only allow A1:A10 to be edited.
 
Upvote 0
In Excel 97-2003, on the worksheet menu go Data > Validation.

In 2007-2010, on the ribbon go Data > Data Validation.

The 1st tab of the dialog is called 'Settings'.
In that tab choose 'Custom' from the 'Allow' drop-down.
Then, in the 'Formula' text box enter the formula that I provided.

Hope this helps.
 
Upvote 0
Hmm... doesent seem to work!
when i paste =ROW(A1)<=$C$1 in A1 afterwards i only get "False in the colum afterwards :(

In Excel 97-2003, on the worksheet menu go Data > Validation.

In 2007-2010, on the ribbon go Data > Data Validation.

The 1st tab of the dialog is called 'Settings'.
In that tab choose 'Custom' from the 'Allow' drop-down.
Then, in the 'Formula' text box enter the formula that I provided.

Hope this helps.
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,733
Members
452,939
Latest member
WCrawford

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