[mso] Re: VERY bottom most used cell?

I have an article whoich discusses the wholelast used cell business
here:

        http://www.grbps.com/Excel7.pdf

That shows how to do it with formulae, but there is a pretty
straightforward VBA method, too:

            Range("A65536").End(xlUp).Select

Andyour MAX/LEN formula shouldn't work at all, since you would need to
apply the LEN to each cell individually before you could apply MAX to
the outputs of those; MAX works on a range argument but LEN doesn't.

Ray

------------------------------------
GR Business Process Solutions
Ray Blake
Head of Software Design
ray@xxxxxxxxx
Braedon
Newell Road
Hemel Hempstead
Herts HP3 9PD
tel: 01442 396518
fax: 01442 389353
mobile: 07834 226601
www.grbps.com
------------------------------------


-----Original Message-----
From: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx] On
Behalf Of Robert Carneal
Sent: 20 June 2005 22:17
To: mso@xxxxxxxxxxxxx
Subject: [mso] VERY bottom most used cell?


Two problems.
Hello. In my formula, to find the largest width of text in a column of
cells used in a column I use =COUNTA(A:A), which I have typed as
=MAX(LEN(A2:A50000)) which works. If I extend that the bottom,
=MAX(LEN(A2:A65536)), it gives me an error. How can I go that deep? Some
cells are blank, would that cause an error?

I am not succeeding in my formulas to find the *LAST* used cell in a
column. That is, using ActiveSheet.UsedRange will return 2 instead of
the desired 5. I do want the blanks in between non-blanks counted, but
do not want to count blanks after the last used cell in a column.
        A       B       C
1       Smith   Joe     23
2       Anders  Jan     43
3               Frank   32
4               Deb     54
5       Brown   Ann     32
6               John    32

I am looking for the formula to return 5, not 2 for column A, 6 for
column B. Robert


*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in 
the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also allow 
you to change your email settings to digest or vacation (no mail).
http://www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a 
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with 
instructions.  Once you are a member of the files group, you can go here to 
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************

Other related posts: