We help IT Professionals succeed at work.
Get Started

Excel - Lock a range in an array formula

billb1057
billb1057 asked
on
1,265 Views
Last Modified: 2012-05-09
I'm not sure how to explain this, but the attached file shows an array formula that finds the first text cell in a column and returns the row number.
The problem I'm trying to solve is to lock the range as the entire column, so if any rows are deleted the range doesn't automatically get smaller.
Usually, I would set the range as the column like sum(a:a) and that sums everything in column a.  If you delete a row, it still gets the whole column.
With this array formula though, it doesn't like the use of that range.
Even if you set the range manually for a1:a65536 it doesn't seem to work.
If the range is set from a2:65536 or a1:65535, then the formula works.
But in those cases, if you delete a row, the range shrinks by one.

Any ideas on how to solve this?  Thanks.
Set-range-in-array.xls
Comment
Watch Question
CERTIFIED EXPERT
Most Valuable Expert 2013
Commented:
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE