Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
tadpgk835
 
Posts: n/a
Default Can I use AutoFill or a formula to fill a series of letters?

I am looking to fill a series of increasing letters for example:

aaa
aab
aac
...
...
aaz
aba
abb

  #2   Report Post  
zackb
 
Posts: n/a
Default

Hi there,

You can do this with some formulas. I'll assume you have this in A1 "aaa".
Enter this formula in A2 and copy down as needed ...

=IF(LEFT(A1,1)=122,CHAR(B1+1),CHAR(B1))&IF(MID(A1, 2,1)=97,CHAR(C1+1),CHAR(C1))&IF(RIGHT(A1,1)=122,CH AR(97),CHAR(D1+1))

--
Regards,
Zack Barresse, aka firefytr



"tadpgk835" wrote in message
...
I am looking to fill a series of increasing letters for example:

aaa
aab
aac
..
..
aaz
aba
abb



  #3   Report Post  
zackb
 
Posts: n/a
Default

Sorry, formula is wrong. :( Gives skewed results.

With three blank columns to your data's right, in B1:D1 enter 97 in each
cell. Then in A2 enter:

=CHAR(B2)&CHAR(C2)&CHAR(D2)

In B2 enter:

=IF(C2=122,B1+1,B1)

In C2 enter:

=IF(D2=97,C1+1,C1)

In D2 enter:

=IF(D1=122,97,D1+1)

Copy all down as needed. Hide columns B:D if desired. Sorry for any
confusion again. :(

--
Regards,
Zack Barresse, aka firefytr


"zackb" wrote in message
...
Hi there,

You can do this with some formulas. I'll assume you have this in A1
"aaa".
Enter this formula in A2 and copy down as needed ...

=IF(LEFT(A1,1)=122,CHAR(B1+1),CHAR(B1))&IF(MID(A1, 2,1)=97,CHAR(C1+1),CHAR(C1))&IF(RIGHT(A1,1)=122,CH AR(97),CHAR(D1+1))

--
Regards,
Zack Barresse, aka firefytr



"tadpgk835" wrote in message
...
I am looking to fill a series of increasing letters for example:

aaa
aab
aac
..
..
aaz
aba
abb





  #4   Report Post  
tadpgk835
 
Posts: n/a
Default

Thanks for your help, however the formula eventually starts to return symbols
as well as letters. I need to just see letters and also the ability to
choose the number of letters to start with is also important. (3 a's or 6
a's, etc...)

"zackb" wrote:

Sorry, formula is wrong. :( Gives skewed results.

With three blank columns to your data's right, in B1:D1 enter 97 in each
cell. Then in A2 enter:

=CHAR(B2)&CHAR(C2)&CHAR(D2)

In B2 enter:

=IF(C2=122,B1+1,B1)

In C2 enter:

=IF(D2=97,C1+1,C1)

In D2 enter:

=IF(D1=122,97,D1+1)

Copy all down as needed. Hide columns B:D if desired. Sorry for any
confusion again. :(

--
Regards,
Zack Barresse, aka firefytr


"zackb" wrote in message
...
Hi there,

You can do this with some formulas. I'll assume you have this in A1
"aaa".
Enter this formula in A2 and copy down as needed ...

=IF(LEFT(A1,1)=122,CHAR(B1+1),CHAR(B1))&IF(MID(A1, 2,1)=97,CHAR(C1+1),CHAR(C1))&IF(RIGHT(A1,1)=122,CH AR(97),CHAR(D1+1))

--
Regards,
Zack Barresse, aka firefytr



"tadpgk835" wrote in message
...
I am looking to fill a series of increasing letters for example:

aaa
aab
aac
..
..
aaz
aba
abb






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
Auto fill of formula ksr Excel Worksheet Functions 7 June 6th 06 05:46 PM
Named SUM Formula with relative refernce(s) Werner Rohrmoser Excel Worksheet Functions 2 April 20th 05 04:56 PM
series graph -- one series being added to another series rich zielinski via OfficeKB.com Charts and Charting in Excel 3 March 30th 05 06:23 PM
Formula to count the cells in a range that have a fill color. Slainteva Excel Discussion (Misc queries) 2 January 19th 05 08:25 PM
Formula to count the cells in a range that have a fill color. Molly F Excel Discussion (Misc queries) 2 January 19th 05 06:15 PM


All times are GMT +1. The time now is 08:29 AM.

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

About Us

"It's about Microsoft Excel"