Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / November 2007

Tip: Looking for answers? Try searching our database.

Dynamic Range

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sandy - 16 Nov 2007 18:03 GMT
I have the following function defining the range "Grips". (The first value
to be used in the "M" column is in Row 3.)

=OFFSET(Jobs!$M$3,0,0,COUNTA(Jobs!$M:$M),1)

I then use the name "Grips" as a validation list "Source".

It works fine other than I get all the values plus a blank space at the
bottom of my drop-down list.

Any ideas?
Sandy
Dave Peterson - 16 Nov 2007 18:14 GMT
What's in M1:M2?

Remember your =counta($m:$m) is including those cells, too.

I'd put something in both cells.  If I want to make it look like that cell is
blank, I'll use a formula: =""

Then you could use:
=OFFSET(Jobs!$M$3,0,0,COUNTA(Jobs!$M:$M)-2,1)

Or if you don't want worry, you could subtract the number of used cells in
M1:M2:

=OFFSET(Jobs!$M$3,0,0,COUNTA(Jobs!$M:$M)-counta($m$1:$m$2),1)

> I have the following function defining the range "Grips". (The first value
> to be used in the "M" column is in Row 3.)
[quoted text clipped - 8 lines]
> Any ideas?
> Sandy

Signature

Dave Peterson

Don Guillett - 16 Nov 2007 18:15 GMT
=OFFSET(Jobs!$M$3,0,0,COUNTA(Jobs!$M:$M)-3,1)
or
=OFFSET(Jobs!$M$3,0,0,COUNTA(Jobs!$M:$M)-1,1)

Signature

Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@austin.rr.com

>I have the following function defining the range "Grips". (The first value
>to be used in the "M" column is in Row 3.)
[quoted text clipped - 8 lines]
> Any ideas?
> Sandy
Sandy - 16 Nov 2007 18:34 GMT
I have a heading in M1 (and a few other columns too) because I wanted to be
able to easily sort the values in these columns for easier reading in the
drop-down.
M2 is blank in order to not allow heading to become part of Ascending sort.

So

=OFFSET(Jobs!$M$3,0,0,COUNTA(Jobs!$M:$M)-1,1)

works a treat.

Thank you both
Sandy

>I have the following function defining the range "Grips". (The first value
>to be used in the "M" column is in Row 3.)
[quoted text clipped - 8 lines]
> Any ideas?
> Sandy

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.