Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Format cells with numbers and text


i'm trying to make a spreadsheet for work and i'm having trouble. mos
of the data is pretty standardized, but there are some cases where
can't figure out how to program the "Format Cells - Custom" to displa
both numbers and text.

most of the data looks like 1234-12-123-1234, and i hit the "Forma
Cells" to where i can type in the data without the dashes and the cel
would display it with dashes. Here's the kicker...some of our dat
needs two letters after the numbers, ie, 1234-12-123-1234AB How do
program the cells to where all i have to type is the 13 or 1
alphanumeric without dashes and get it to display properly in th
cell?

Codes i've tried under the custom cell format a
####-##-###-####??
####-##-###-####**
####-##-###-####;"";""
####-##-###-####;"@"
####-##-###-####"@"

I guess i need to find out what symbol to use as a variable for text.

Thank

--
oboe_jo
-----------------------------------------------------------------------
oboe_joe's Profile: http://www.excelforum.com/member.php...fo&userid=1607
View this thread: http://www.excelforum.com/showthread.php?threadid=27532

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default Format cells with numbers and text

As soon as you enter text it is no longer a number and custom formatting no
longer applies. Assuming that you don't need to do any calcualations with
this feild you could try changing the number to Hexadecimal wihch would allow
you Alpha charachters up to "F" but if you need characters after F then you
are hooped...

Hope this helps...

"oboe_joe" wrote:


i'm trying to make a spreadsheet for work and i'm having trouble. most
of the data is pretty standardized, but there are some cases where i
can't figure out how to program the "Format Cells - Custom" to display
both numbers and text.

most of the data looks like 1234-12-123-1234, and i hit the "Format
Cells" to where i can type in the data without the dashes and the cell
would display it with dashes. Here's the kicker...some of our data
needs two letters after the numbers, ie, 1234-12-123-1234AB How do i
program the cells to where all i have to type is the 13 or 15
alphanumeric without dashes and get it to display properly in the
cell?

Codes i've tried under the custom cell format a
####-##-###-####??
####-##-###-####**
####-##-###-####;"";""
####-##-###-####;"@"
####-##-###-####"@"

I guess i need to find out what symbol to use as a variable for text.

Thanks


--
oboe_joe
------------------------------------------------------------------------
oboe_joe's Profile: http://www.excelforum.com/member.php...o&userid=16076
View this thread: http://www.excelforum.com/showthread...hreadid=275321


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
how do I format numbers as text Brenda Excel Worksheet Functions 2 January 19th 10 01:54 AM
format text to numbers Davidm Excel Discussion (Misc queries) 1 June 23rd 09 12:23 PM
Convert numbers from text format to number format merlin68 Excel Discussion (Misc queries) 7 June 20th 07 07:03 PM
Format text to numbers Jamesy Excel Discussion (Misc queries) 3 January 10th 06 07:06 PM
How do i change numbers in text format to number format? Greg New Users to Excel 1 December 14th 04 05:22 PM


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