Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Robin Krupp
 
Posts: n/a
Default alphanumeric formating

This question is relating to book ISBN's. I want to find a way to create a
formatting so that when i enter "31062356x" , the excel will format it like
"03106256x"

"234" = "0000000234"
"1256b" = 000001256B"

basically a ten digit format tthat allows for a alpha char at the end

Thanks for any input
  #2   Report Post  
Posted to microsoft.public.excel.misc
CLR
 
Posts: n/a
Default alphanumeric formating

One crude way would be to enter your numbers (without leading zeros) in
column A, and your suffix letter in column B........then in column C put this
formula and copy down...

=TEXT(A1,"0000000000")&B1

Then do Copy PasteSpecial Values on column C and delete columns A and B

Vaya con Dios,
Chuck, CABGx3



"Robin Krupp" wrote:

This question is relating to book ISBN's. I want to find a way to create a
formatting so that when i enter "31062356x" , the excel will format it like
"03106256x"

"234" = "0000000234"
"1256b" = 000001256B"

basically a ten digit format tthat allows for a alpha char at the end

Thanks for any input

  #3   Report Post  
Posted to microsoft.public.excel.misc
Sloth
 
Posts: n/a
Default alphanumeric formating

Excel doesn't really allow for the mixing of text and numbers, as far as
formatting goes. A cell contains either a number or a text string. Also,
the formatting for text is extremely limited, when compared to numbers. I
believe, your only options are to use VBA or use a formula in a different
cell like this...

=IF(ISNUMBER(--RIGHT(A1,1)),TEXT(A1,"0000000000"),TEXT(--LEFT(A1,LEN(A1)-1),"000000000")&RIGHT(A1,1))

NOTE: this formula gives an error if the cell contains no numbers, or any
letters other than one at the end.

"Robin Krupp" wrote:

This question is relating to book ISBN's. I want to find a way to create a
formatting so that when i enter "31062356x" , the excel will format it like
"03106256x"

"234" = "0000000234"
"1256b" = 000001256B"

basically a ten digit format tthat allows for a alpha char at the end

Thanks for any input

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
Multiple Conditional Formating Mandeep Dhami Excel Discussion (Misc queries) 8 June 16th 06 06:24 PM
Install dates formating using conditional formating? Jerry Eggleston Excel Discussion (Misc queries) 2 November 9th 05 05:49 PM
Conditional formating using formulas arifnj Excel Worksheet Functions 4 October 27th 05 01:56 PM
can i freeze conditional formating to copy to another worksheet Chris Lane Excel Discussion (Misc queries) 1 October 12th 05 06:53 PM
Cell to follow content AND/OR formating of another cell 0-0 Wai Wai ^-^ Excel Discussion (Misc queries) 1 September 8th 05 02:00 PM


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