Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Can Excel "Autonumber" using the Alphabet?

I am using Excel 2003 on Windows XP Professional.
I have a spreadsheet that has a vertical list of values.
I would like to place the letter "A" in the cell immediately to the left of
the first value, then fill the cell below that with "B" and so forth all the
way down to "DA".
I know how to do this with numbers, but can this be done with letters?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 329
Default Can Excel "Autonumber" using the Alphabet?

Hi,

I don't think you can do that with autofill. However, here's a formula to do it for you:
=IF(INT((ROW()-1)/26)=0,"",CHAR(64 + INT((ROW() -1)/ 26))) & CHAR(64 + MOD(ROW()-1,26)+1)
Simply put it in row 1 & copy down as far as needed. It'll cope with up to 702 rows (ie to 'ZZ').

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"jgraves" wrote in message ...
I am using Excel 2003 on Windows XP Professional.
I have a spreadsheet that has a vertical list of values.
I would like to place the letter "A" in the cell immediately to the left of
the first value, then fill the cell below that with "B" and so forth all the
way down to "DA".
I know how to do this with numbers, but can this be done with letters?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Can Excel "Autonumber" using the Alphabet?

Thank you so much! It works wonderfully.
After I have all the letters I want, I just copied them, and did a "paste
special" with "values" selected, so I can remove the formula.
Someday I will analyze the formula and see if I can understand it, but for
now - I am happy!

"macropod" wrote:

Hi,

I don't think you can do that with autofill. However, here's a formula to do it for you:
=IF(INT((ROW()-1)/26)=0,"",CHAR(64 + INT((ROW() -1)/ 26))) & CHAR(64 + MOD(ROW()-1,26)+1)
Simply put it in row 1 & copy down as far as needed. It'll cope with up to 702 rows (ie to 'ZZ').

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"jgraves" wrote in message ...
I am using Excel 2003 on Windows XP Professional.
I have a spreadsheet that has a vertical list of values.
I would like to place the letter "A" in the cell immediately to the left of
the first value, then fill the cell below that with "B" and so forth all the
way down to "DA".
I know how to do this with numbers, but can this be done with letters?


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 329
Default Can Excel "Autonumber" using the Alphabet?

Glad to be of help. Your next challenge (once you've figured out how the formula works) is to extend it to cope with anything up to
'ZZZ' - which is 18,954 rows' worth. Quite easy once you know how it works.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"jgraves" wrote in message ...
Thank you so much! It works wonderfully.
After I have all the letters I want, I just copied them, and did a "paste
special" with "values" selected, so I can remove the formula.
Someday I will analyze the formula and see if I can understand it, but for
now - I am happy!

"macropod" wrote:

Hi,

I don't think you can do that with autofill. However, here's a formula to do it for you:
=IF(INT((ROW()-1)/26)=0,"",CHAR(64 + INT((ROW() -1)/ 26))) & CHAR(64 + MOD(ROW()-1,26)+1)
Simply put it in row 1 & copy down as far as needed. It'll cope with up to 702 rows (ie to 'ZZ').

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"jgraves" wrote in message ...
I am using Excel 2003 on Windows XP Professional.
I have a spreadsheet that has a vertical list of values.
I would like to place the letter "A" in the cell immediately to the left of
the first value, then fill the cell below that with "B" and so forth all the
way down to "DA".
I know how to do this with numbers, but can this be done with letters?



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Can Excel "Autonumber" using the Alphabet?

On Mar 21, 2:08 am, jgraves wrote:
I am using Excel 2003 on Windows XP Professional.
I have a spreadsheet that has a vertical list of values.
I would like to place the letter "A" in the cell immediately to the left of
the first value, then fill the cell below that with "B" and so forth all the
way down to "DA".
I know how to do this with numbers, but can this be done with letters?


Not out of box, but you can create custom list. First you must enter
all list elements in cells, than select range with list and go to
Tools- Options - Custom lists. Select range with your list, and next
time you can use this list as autonumber feature.

Alternative way, you can use ADDRESS function which produce cell
reference as text, and extract alphabetic part, which is column header
actually:

=LEFT(ADDRESS(1;ROW();4);FIND(1;ADDRESS(1;ROW();4) )-1)

--
Regards,
Mladen
http://excelancije.bloger.hr



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Can Excel "Autonumber" using the Alphabet?

And one more..........

=SUBSTITUTE(ADDRESS(1,ROW(A1),4),"1","")

Copied down to A256


Gord Dibben MS Excel MVP

On 20 Mar 2007 18:31:22 -0700, "Mladen_Dj" wrote:

On Mar 21, 2:08 am, jgraves wrote:
I am using Excel 2003 on Windows XP Professional.
I have a spreadsheet that has a vertical list of values.
I would like to place the letter "A" in the cell immediately to the left of
the first value, then fill the cell below that with "B" and so forth all the
way down to "DA".
I know how to do this with numbers, but can this be done with letters?


Not out of box, but you can create custom list. First you must enter
all list elements in cells, than select range with list and go to
Tools- Options - Custom lists. Select range with your list, and next
time you can use this list as autonumber feature.

Alternative way, you can use ADDRESS function which produce cell
reference as text, and extract alphabetic part, which is column header
actually:

=LEFT(ADDRESS(1;ROW();4);FIND(1;ADDRESS(1;ROW();4 ))-1)


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help!!! Enter "7" in a cell and Excel changes the "7" to "11" immediately!!! [email protected] Excel Discussion (Misc queries) 3 January 5th 07 02:18 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
Is there any "autonumber" in Excel? Tech Excel Worksheet Functions 1 November 3rd 05 09:24 PM
Insert "-" in text "1234567890" to have a output like this"123-456-7890" Alwyn Excel Discussion (Misc queries) 3 October 25th 05 11:36 PM


All times are GMT +1. The time now is 05:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"