• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Enabling number of cells based on sum of two cells

Muhammad Wasif

New Member
Hi,
I need to enable number of cells in a column based on the sum of two cells.
Example:
If sum of A1 and A2 is 15; I need to enable 15 cells in the range B5:B100

Please advise.

Thanks
 
Sorry, but what exactly do you mean by 'enable' here? If A1+A2=15, what exactly is going to happen with the range of cells mentioned?
 
Maybe……..

upload_2017-7-26_17-45-18.png

In B5, enter formula and copy down to B100

=IF(ROWS($1:1)<=SUM(A$1:A$2),MAX(B$4:B4)+1,"")

Regards
Bosco
 
Last edited:
Sorry, but what exactly do you mean by 'enable' here? If A1+A2=15, what exactly is going to happen with the range of cells mentioned?
Hi Ali,
In my sheet i calculate total amount of required subscribers in A1 and A2. I want to restrict the input in column B to the maximum of required subscriber i.e A1+A2.
So if the total of A1+A2 is 15; in column B starting from B16, customer should only be allowed to enter until B30.

Thanks
 
.........I want to restrict the input in column B to the maximum of required subscriber i.e A1+A2. So if the total of A1+A2 is 15; in column B starting from B16, customer should only be allowed to enter until B30.
Thanks
upload_2017-7-26_19-21-48.png

Select B1:B100 >> Data Validation >> "Allow", choose: Custom >> "Formula", enter:

=(ROW()>(A$1+A$2))*(ROW()<=(A$1+A$2)*2)

>> OK

Regards
Bosco
 
Back
Top