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 / Worksheet Functions / March 2008

Tip: Looking for answers? Try searching our database.

Range question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jock - 19 Mar 2008 15:58 GMT
On a large worksheet with approx 7000 rows which will be filled in as time
goes on, I have numerous formulae which refer to ranges; i.e. B7:B7000.
I would like to speed up calculations by having excel only calculate down to
the last cell which has data in it rather than all the way down to the end.
Is there a way to do this in a formula and also in vba code?
I.E.
=COUNTIF(Sheet1!B$7:B$7000,D2)

....If Not Intersect(Target, Me.Range("O7:O7000")) Is Nothing Then.....

tia

Signature

Traa Dy Liooar

Jock

Don Guillett - 19 Mar 2008 16:10 GMT
Use a defined name such as myrng defined as
insert>name>define>name it myrng>in the refers to box type
=offset($b$7,0,0,counta($b:$b)-6,1)
>enter>now use that in your formula
Signature

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

> On a large worksheet with approx 7000 rows which will be filled in as time
> goes on, I have numerous formulae which refer to ranges; i.e. B7:B7000.
[quoted text clipped - 9 lines]
>
> tia
Jock - 19 Mar 2008 17:30 GMT
Thanks Don, I have set up the named range but I am unsure how to apply your
formula into mine.  
Signature

Traa Dy Liooar

Jock

> Use a defined name such as myrng defined as
> insert>name>define>name it myrng>in the refers to box type
[quoted text clipped - 13 lines]
> >
> > tia
Don Guillett - 19 Mar 2008 17:36 GMT
=COUNTIF(Sheet1!B$7:B$7000,D2)
=COUNTIF(myrng,D2)

Signature

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

> Thanks Don, I have set up the named range but I am unsure how to apply
> your
[quoted text clipped - 19 lines]
>> >
>> > tia
 
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.