Avatar of Flora Edwards
Flora Edwards
Flag for Sweden asked on

Folow up question on dynamic range from answer given by Robert Henson

I had this question after viewing How to get the INDIRECT function and an R1C1 notation for entire column?.


please see attached file.   because it uses the column A for counting non blank cells.

now if my Order ID title gets moved to column E.  the formula below works. but it has a problem.  when i have less rows with data in column A. then the named range leaves out cells.  i need help with making the column used in COUNTA(Sheet1!$A:$A) also dynamic.

EE.png=OFFSET(Sheet1!$A$2,0,MATCH("ORDER ID",Sheet1!$1:$1,0)-1,COUNTA(Sheet1!$A:$A)-1,1)
EE.xlsx
Microsoft ExcelMicrosoft Office

Avatar of undefined
Last Comment
Flora Edwards

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.
Flora Edwards

ASKER
Thank you Rgonzo1971  it worked
Flora Edwards

ASKER
i also have a follow up question on VBA posting now.
Flora Edwards

ASKER
Your help has saved me hundreds of hours of internet surfing.
fblack61