row reference range formula

Hi,
I'm looking for a time saving formula where I don't need to enter all the ranges in for each sheet every time.
Example

=COUNTIF(AV14:AV6520,">0")

I would simply enter the following
A1    14     B1   6520

and all formulas for same row would reference the range for col AV

Many thanks

Ian
Ian BellretiredAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rgonzo1971Commented:
Hi,

pls try
=COUNTIF(INDIRECT("AV"&A1&":AV"&B1),">0")

Open in new window

Regards
2

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ShumsExcel & VBA ExpertCommented:
Try below:
=COUNTIF(INDIRECT("AV14:AV"&COUNTA(AV:AV)),">0")

Open in new window

1
Rgonzo1971Commented:
@Shums I wouldn't use your formula, we don't know what's above row 14 and if there are blank cells in the range
2
IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

Ian BellretiredAuthor Commented:
Great one Rgonzo..... Thanks ........ it works a treat.
Ian
0
Ian BellretiredAuthor Commented:
I used a sum using same formula but didn't work.... any ideas ?
got a "VALUE" error

=SUM("AV"&A1&":AV"&A2)
0
Rgonzo1971Commented:
=SUM(indirect("AV"&A1&":AV"&A2))

Open in new window

0
Ian BellretiredAuthor Commented:
ok thanks again........ I need the Indirect clause
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Office

From novice to tech pro — start learning today.