Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default Format custom number: C-0000-L

Hi, I need to format a few cells in Excel to look like C-0000-L where "0000"
represents four numbers and "L" represents a letter.
I tried to do it in format - custom with C-0000-@ but it gives me an error
message.
I also tried to do it using the concatenate function but it doesn`t work.
Can anyone please help me?
Thanks!
--
Sonia
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Format custom number: C-0000-L

Custom format "C-"0000"-L"
--
David Biddulph


"Sonia" wrote in message
...
Hi, I need to format a few cells in Excel to look like C-0000-L where
"0000"
represents four numbers and "L" represents a letter.
I tried to do it in format - custom with C-0000-@ but it gives me an error
message.
I also tried to do it using the concatenate function but it doesn`t work.
Can anyone please help me?
Thanks!
--
Sonia



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default Format custom number: C-0000-L

Thanks David but the problem is that the second letter is not the same in
every cell, it can bem C-1234-L or C-5678-R, ...
How can i make the formula accept a variable letter in the end?
Thanks!
--
Sonia


"David Biddulph" wrote:

Custom format "C-"0000"-L"
--
David Biddulph


"Sonia" wrote in message
...
Hi, I need to format a few cells in Excel to look like C-0000-L where
"0000"
represents four numbers and "L" represents a letter.
I tried to do it in format - custom with C-0000-@ but it gives me an error
message.
I also tried to do it using the concatenate function but it doesn`t work.
Can anyone please help me?
Thanks!
--
Sonia



.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 342
Default Format custom number: C-0000-L

Assuming the number is in cell A1 and the letter is in cell A2 then use this
formula:

="C-"&A1&"-"&A2

Not custom formatting.

Tom
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
Need to Format Currency without changing values - over 16,0000 row Barbara Excel Discussion (Misc queries) 14 October 13th 08 05:50 PM
trying to change 000-000-0000 phone format to (000)000-0000 ???? Labtyda Excel Worksheet Functions 5 March 10th 08 08:19 PM
how to put dashes in a number 13000000000 to 1300-000-0000 Jimbo Excel Discussion (Misc queries) 2 May 22nd 07 10:26 PM
Phone number format from 000.000.0000 to (000)000-0000 Janice Excel Discussion (Misc queries) 4 June 24th 05 12:46 AM
(social security number) 000-00-0000 to 000000000 Cucuaq Excel Discussion (Misc queries) 1 January 29th 05 01:35 AM


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