Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How do I auto format data so that the middle letter changes. EG 2.

I am trying to set up an exel spread sheet so that I can change the data by
dragging down instead of re-typing each one, so for example I want accross
the top to be: 21A01 21A02 21A03 etc which I can just drag and it will
automatically change the number digit but I am trying to change the down
collum to read
21A01
21B01
21C01 etc etc

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default How do I auto format data so that the middle letter changes. EG 2.

If your data starts in row 1, you could use a formula like:

="21"&char(row()+64)&"01"
(it'll be good for about 26 cells <vbg.)

=char(65) is the A character.

So if you're starting on row 32, you could use:
="21"&char(row()+64-32+1)&"01"

I'd convert it to values right after I filled the range.

pc.. wrote:

I am trying to set up an exel spread sheet so that I can change the data by
dragging down instead of re-typing each one, so for example I want accross
the top to be: 21A01 21A02 21A03 etc which I can just drag and it will
automatically change the number digit but I am trying to change the down
collum to read
21A01
21B01
21C01 etc etc


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 506
Default How do I auto format data so that the middle letter changes. EG 2.

Paste this formula and drag it for the remaining cells.

="21"&CHAR(CODE("A")+ROW(Z1))&"01"

Remember to Click Yes, if this post helps!

--------------------
(Ms-Exl-Learner)
--------------------


"pc.." wrote:

I am trying to set up an exel spread sheet so that I can change the data by
dragging down instead of re-typing each one, so for example I want accross
the top to be: 21A01 21A02 21A03 etc which I can just drag and it will
automatically change the number digit but I am trying to change the down
collum to read
21A01
21B01
21C01 etc etc

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default How do I auto format data so that the middle letter changes. EG 2.

If you want more than 26 letters drag this down column A

="21"&SUBSTITUTE(ADDRESS(1,ROW(A1),4),"1","")&" 01"

Will return 256 letters in 2003


Gord Dibben MS Excel MVP

On Wed, 13 Jan 2010 17:37:01 -0800, pc..
wrote:

I am trying to set up an exel spread sheet so that I can change the data by
dragging down instead of re-typing each one, so for example I want accross
the top to be: 21A01 21A02 21A03 etc which I can just drag and it will
automatically change the number digit but I am trying to change the down
collum to read
21A01
21B01
21C01 etc etc


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 Capital Letter in a cell Montu Excel Worksheet Functions 3 January 8th 08 02:12 PM
Auto capital letter in a cell Montu Excel Worksheet Functions 3 December 22nd 07 11:21 PM
How do I set a drop-down to auto-pop. by typing first letter? Jeniam Setting up and Configuration of Excel 2 November 12th 07 09:34 PM
New Validation option to format 1st letter as Capital letter Jeff Excel Discussion (Misc queries) 5 July 13th 06 05:11 AM
Auto format rows according to field data crossbyname Excel Discussion (Misc queries) 1 March 30th 06 01:23 PM


All times are GMT +1. The time now is 06:15 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"