The Code Cage - Microsoft Office help Free Microsoft Office Help for all Applications!  

To stop seeing these ads and get other benefits check This page!

Go Back   The Code Cage Forums > Newsgroups - Microsoft Topics > Newsgroup - Excel Forum > Worksheet Functions


Worksheet Functions Post questions in this forum if they are related to using Microsoft Excel Worksheet Functions, e.g Forumale or built in functionality etc.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12th February 2009, 03:02 PM
Mollycat
Newsgroup Contributor


My Top Tip Count:

 
Posts: n/a
Default Auto Lettering

------ Register to get rid of these "In Post" ads! ------


How can I set up the first column to automatically letter each row as I go ?
Reply to this post


Did you find this post helpful? Yes | No
The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!
  #2 (permalink)  
Old 12th February 2009, 03:04 PM
Pecoflyer's Avatar
The Code Cage Staff
Spam Assasin
MS Office Version: MS Office 2003
MS Office Skill Level: Can use Formulae


My Top Tip Count: 0

 
Join Date: Nov 2008
Location: Brussels Belgium
Posts: 542
Thanks to others: 4
Thanked 4 Times in 4 Posts
Rep Power: 7
Pecoflyer will become famous soon enough
Belgium
Default Re: Auto Lettering

------ Register to get rid of these "In Post" ads! ------


Quote:
Originally Posted by Mollycat View Post
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" ?
__________________
Cheers -
Reply to this post


Did you find this post helpful? Yes | No
  #3 (permalink)  
Old 12th February 2009, 03:38 PM
Gary''s Student
Newsgroup Contributor


My Top Tip Count:

 
Posts: n/a
Default RE: Auto Lettering

------ Register to get rid of these "In Post" ads! ------


In A1, enter:

=MID(ADDRESS(1,ROW()),2,LEN(ADDRESS(1,ROW()))-3) and copy down
--
Gary''s Student - gsnu200833
Reply to this post


Did you find this post helpful? Yes | No
The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!
  #4 (permalink)  
Old 12th February 2009, 06:53 PM
Glenn
Newsgroup Contributor


My Top Tip Count:

 
Posts: n/a
Default Re: Auto Lettering

------ Register to get rid of these "In Post" ads! ------


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.
Reply to this post


Did you find this post helpful? Yes | No
  #5 (permalink)  
Old 12th February 2009, 09:34 PM
Gary''s Student
Newsgroup Contributor


My Top Tip Count:

 
Posts: n/a
Default Re: Auto Lettering

------ Register to get rid of these "In Post" ads! ------


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.
>

Reply to this post


Did you find this post helpful? Yes | No
  #6 (permalink)  
Old 12th February 2009, 10:24 PM
Glenn
Newsgroup Contributor


My Top Tip Count:

 
Posts: n/a
Default Re: Auto Lettering

------ Register to get rid of these "In Post" ads! ------


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)
Reply to this post


Did you find this post helpful? Yes | No
The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!
Reply

Bookmarks

Tags
auto, lettering

New topics in Worksheet Functions


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

The Code Cage Affilliates


To stop seeing these ads and get other benefits check This page!



All times are GMT +1. The time now is 12:31 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2
No part of this board may be copied or reproduced either in part or full without the express permission of The Code Cage Team.
We are not associated with nor employed by Microsoft in any way, we simply provide resources!
All MS office icons are registered trademarks of the application the represent