Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Named Range with a twist 2

Status
Not open for further replies.

thefox149

Technical User
Nov 22, 2004
158
AU
Hi all

I am comfortable with creating dynamic named ranges for charts but I wouls like to create a named range that uses the last 12 rows in the column...any suggestions I know you can use offset but my usual dynamic

My cat's name is sprinkles
-Ralph Wigam
 
Use an OFFSET within an OFFSET:
Code:
=OFFSET(OFFSET(Sheet1!$A$1,COUNTA(Sheet1!$A:$A)-1,0,1,1),-11,0,12,1)

Cheers, Glenn.

Did you hear about the literalist show-jumper? He broke his nose jumping against the clock.
 
Hi there Ralph,

This named range should give you what you need ...


=OFFSET(Sheet1!$B$2,COUNTA(Sheet1!$B:$B)-13,0,12)


Assuming that the data is on Sheet 1 with a single line header in row 1 and your data starts in row 2 going down (with nothing else in the column and no blank rows).

HTH

-----------
Regards,
Zack Barresse
 
Hi thefox149,

of course firefytr's formula is better, it's first thing in the morning here, and I'm not thinking straight ... should have calculated the offset and used a single OFFSET function instead of nesting them.

Cheers, Glenn.

Did you hear about the literalist show-jumper? He broke his nose jumping against the clock.
 
thanks guys ...have a star each

My cat's name is sprinkles
-Ralph Wigam
 
Well, thanks! Not really sure what a star is, but it sounds nice. :)

Glad it works for you. :)

-----------
Regards,
Zack Barresse
 
Zack - them's the little purple stars next to your name - people are encouraged to give them if an answer has been helpful etc. This then allows others to search the archives more effectively, looking for "starred" posts.

It's also the TT way of saying thanks [thumbsup]

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Thanks for hte info xlbo! :)

-----------
Regards,
Zack Barresse
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top