Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Jim Jim is offline
external usenet poster
 
Posts: 615
Default How do I set up a cell format in Excel?

I have some rack locations in a warehouse but I need the format to show with
hyphens. 12-01-011A And I cannot seem to get any of the custom cell formats
to work for me. Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default How do I set up a cell format in Excel?

"Jim" wrote in message
...
I have some rack locations in a warehouse but I need the format to show
with
hyphens. 12-01-011A And I cannot seem to get any of the custom cell
formats
to work for me. Any ideas?


You can use custom formats for numerical data, but for a text string the
cell format will not affect the display. You may wish to derive a formula
for concatenation in a helper column, and display that.
--
David Biddulph


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default How do I set up a cell format in Excel?

won't work with custom formats, you need a helper column, if you interest
then post back we will provide you with the formula

"Jim" wrote:

I have some rack locations in a warehouse but I need the format to show with
hyphens. 12-01-011A And I cannot seem to get any of the custom cell formats
to work for me. Any ideas?

  #4   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default How do I set up a cell format in Excel?

are the numbers in text or are they numeric?
with the final A it apears they are text
do you build them from other cells or do you just type them in?
if you type them in, what do you want to type in to get the results you want?
Do all of the locations have exactly the same number of characters?

(Don't you hate it when you ask if something can be done, and the standard
response is "what do you want done?")

"Jim" wrote:

I have some rack locations in a warehouse but I need the format to show with
hyphens. 12-01-011A And I cannot seem to get any of the custom cell formats
to work for me. Any ideas?

  #5   Report Post  
Posted to microsoft.public.excel.misc
Jim Jim is offline
external usenet poster
 
Posts: 615
Default How do I set up a cell format in Excel?

Yes, all locations have exactly the same number of characters. And I was
given the list of locations without the hyphens. I am going to be using
another program with ODBC to create a specific barcoded label for each
location. The locations were given to me like: 1201011A I need it to display
as 12-01-011A I do not know much about excel. There are only 4 different
letter options at the end of my locations: A,B,C,T. Any help would be
appreciated.

"bj" wrote:

are the numbers in text or are they numeric?
with the final A it apears they are text
do you build them from other cells or do you just type them in?
if you type them in, what do you want to type in to get the results you want?
Do all of the locations have exactly the same number of characters?

(Don't you hate it when you ask if something can be done, and the standard
response is "what do you want done?")

"Jim" wrote:

I have some rack locations in a warehouse but I need the format to show with
hyphens. 12-01-011A And I cannot seem to get any of the custom cell formats
to work for me. Any ideas?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default How do I set up a cell format in Excel?

With data in B1 then in C1:

=TEXT(LEFT(B1,7),"00-00-000") & RIGHT(B1)

copy down

You can then copy/paste special-values (in column C) and then delete column
B (if required).

HTH

"Jim" wrote:

Yes, all locations have exactly the same number of characters. And I was
given the list of locations without the hyphens. I am going to be using
another program with ODBC to create a specific barcoded label for each
location. The locations were given to me like: 1201011A I need it to display
as 12-01-011A I do not know much about excel. There are only 4 different
letter options at the end of my locations: A,B,C,T. Any help would be
appreciated.

"bj" wrote:

are the numbers in text or are they numeric?
with the final A it apears they are text
do you build them from other cells or do you just type them in?
if you type them in, what do you want to type in to get the results you want?
Do all of the locations have exactly the same number of characters?

(Don't you hate it when you ask if something can be done, and the standard
response is "what do you want done?")

"Jim" wrote:

I have some rack locations in a warehouse but I need the format to show with
hyphens. 12-01-011A And I cannot seem to get any of the custom cell formats
to work for me. Any ideas?

  #7   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default How do I set up a cell format in Excel?

try =left(A1,2)&"-"&mid(A1,3,2)&"-"&Right(A1,4)

"Jim" wrote:

Yes, all locations have exactly the same number of characters. And I was
given the list of locations without the hyphens. I am going to be using
another program with ODBC to create a specific barcoded label for each
location. The locations were given to me like: 1201011A I need it to display
as 12-01-011A I do not know much about excel. There are only 4 different
letter options at the end of my locations: A,B,C,T. Any help would be
appreciated.

"bj" wrote:

are the numbers in text or are they numeric?
with the final A it apears they are text
do you build them from other cells or do you just type them in?
if you type them in, what do you want to type in to get the results you want?
Do all of the locations have exactly the same number of characters?

(Don't you hate it when you ask if something can be done, and the standard
response is "what do you want done?")

"Jim" wrote:

I have some rack locations in a warehouse but I need the format to show with
hyphens. 12-01-011A And I cannot seem to get any of the custom cell formats
to work for me. Any ideas?

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
Does Excel have a cell format for lat/long in ° min sec format? usudragon Excel Discussion (Misc queries) 1 August 1st 06 06:53 PM
Can Excel 2003 cell link carry with it the source cell format? tom Excel Discussion (Misc queries) 2 July 14th 06 06:14 AM
Excel Auto-Format cell to email format Please Help Me Excel Discussion (Misc queries) 1 March 23rd 06 05:15 PM
cell format for date/time in same cell excel 2003 Sandy Excel Worksheet Functions 1 January 18th 06 03:46 AM
How do I copy data in single cell format to a merged cell format Paul Excel Discussion (Misc queries) 1 June 27th 05 11:00 AM


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