Avatar of Ian Bell
Ian Bell
Flag for United Kingdom of Great Britain and Northern Ireland asked on

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
Microsoft OfficeMicrosoft ExcelMicrosoft ApplicationsSpreadsheets

Avatar of undefined
Last Comment
Ian Bell

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Rgonzo1971

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Shums Faruk

Try below:
=COUNTIF(INDIRECT("AV14:AV"&COUNTA(AV:AV)),">0")

Open in new window

Rgonzo1971

@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
Ian Bell

ASKER
Great one Rgonzo..... Thanks ........ it works a treat.
Ian
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Ian Bell

ASKER
I used a sum using same formula but didn't work.... any ideas ?
got a "VALUE" error

=SUM("AV"&A1&":AV"&A2)
Rgonzo1971

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

Open in new window

Ian Bell

ASKER
ok thanks again........ I need the Indirect clause
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.