Help!

Auto Lettering

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Worksheet Functions RSS
Next:  Send on Behalf & Send As - Outlook 2003  
Author Message
Mollycat
External


Since: Feb 12, 2009
Posts: 1



PostPosted: Thu Feb 12, 2009 6:01 am    Post subject: Auto Lettering
Archived from groups: microsoft>public>excel>worksheet>functions (more info?)

How can I set up the first column to automatically letter each row as I go ?
Back to top
Gary''s Student
External


Since: Oct 01, 2005
Posts: 3350



PostPosted: Thu Feb 12, 2009 6:35 am    Post subject: RE: Auto Lettering [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In A1, enter:

=MID(ADDRESS(1,ROW()),2,LEN(ADDRESS(1,ROW()))-3) and copy down
--
Gary''s Student - gsnu200833
Back to top
Pecoflyer
External


Since: Feb 12, 2009
Posts: 1



PostPosted: Thu Feb 12, 2009 10:10 am    Post subject: Re: Auto Lettering [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mollycat;227036 Wrote:
> How can I set up the first column to automatically letter each row as I
> go ?

Which letter group should be use after the "z" ?


--
Pecoflyer

Cheers -
*'Membership is free' (http://www.thecodecage.com)* & allows file
upload ->faster and better answers

*Adding your XL version* to your post helps finding solution faster
------------------------------------------------------------------------
Pecoflyer's Profile: http://www.thecodecage.com/forumz/member.php?userid=14
View this thread: http://www.thecodecage.com/forumz/showthread.php?t=63114
Back to top
Glenn
External


Since: Jan 12, 2009
Posts: 75



PostPosted: Thu Feb 12, 2009 11:50 am    Post subject: Re: Auto Lettering [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mollycat wrote:
> How can I set up the first column to automatically letter each row as I go ?


And to extend this beyond the capabilities of the solution provided by "Gary''s
Student"...

=MID(ADDRESS(1,ROW()),2,LEN(ADDRESS(1,ROW()))-3)

....which is limited to 256 rows:

=IF(ROW()>18277,CHAR(64+MOD(INT((ROW()-18279)/17576),26)+1),"")&
IF(ROW()>702,CHAR(64+MOD(INT((ROW()-703)/676),26)+1),"")&
IF(ROW()>26,CHAR(64+MOD(INT((ROW()-27)/26),26)+1),"")&
CHAR(64+MOD(ROW()-1,26)+1)


This should be good for close to 700,000 rows.
Back to top
Gary''s Student
External


Since: Oct 01, 2005
Posts: 3350



PostPosted: Thu Feb 12, 2009 12:22 pm    Post subject: Re: Auto Lettering [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Glenn your formula is great!
--
Gary''s Student - gsnu200832


"Glenn" wrote:

> Mollycat wrote:
> > How can I set up the first column to automatically letter each row as I go ?
>
>
> And to extend this beyond the capabilities of the solution provided by "Gary''s
> Student"...
>
> =MID(ADDRESS(1,ROW()),2,LEN(ADDRESS(1,ROW()))-3)
>
> ....which is limited to 256 rows:
>
> =IF(ROW()>18277,CHAR(64+MOD(INT((ROW()-18279)/17576),26)+1),"")&
> IF(ROW()>702,CHAR(64+MOD(INT((ROW()-703)/676),26)+1),"")&
> IF(ROW()>26,CHAR(64+MOD(INT((ROW()-27)/26),26)+1),"")&
> CHAR(64+MOD(ROW()-1,26)+1)
>
>
> This should be good for close to 700,000 rows.
>
Back to top
Glenn
External


Since: Jan 12, 2009
Posts: 75



PostPosted: Thu Feb 12, 2009 3:21 pm    Post subject: Re: Auto Lettering [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Gary''s Student wrote:
> Glenn your formula is great!


Thanks, but I may have overestimated it's effectiveness...probably closer to
475,000 rows. Which means in Excel 2007 you would need to add another layer to
cover the whole possible column:

=IF(ROW()>932230,"B",IF(ROW()>475254,"A",""))&
IF(ROW()>18277,CHAR(64+MOD(INT((ROW()-18279)/17576),26)+1),"")&
IF(ROW()>702,CHAR(64+MOD(INT((ROW()-703)/676),26)+1),"")&
IF(ROW()>26,CHAR(64+MOD(INT((ROW()-27)/26),26)+1),"")&
CHAR(64+MOD(ROW()-1,26)+1)
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Worksheet Functions All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum