Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 217
Default number formatting

Hi all

I need to enter numbers into a column with the following format 1-21 (a
number, then a dash, then another number).

When I do this, Excel changes the numbers into dates. I have tried creating
a custom number but this still doesn't work. The only method I have found
which works is to create a custom number format for every single cell,
entering the exact number in the 'type' box.

Is there a quicker way???

Thank you
Louise
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default number formatting

Maybe just select the range to fill
format|cells|Number tab|Custom category
0-00

And then just enter your 3 digits (no dashes).

If you do this, the values will still be numeric (121), but will show 1-21.

If you want the values to include the dash, you can format the cells as Text and
then type exactly what you want or just precede your entry with an apostrophe:
'1-21



Louise wrote:

Hi all

I need to enter numbers into a column with the following format 1-21 (a
number, then a dash, then another number).

When I do this, Excel changes the numbers into dates. I have tried creating
a custom number but this still doesn't work. The only method I have found
which works is to create a custom number format for every single cell,
entering the exact number in the 'type' box.

Is there a quicker way???

Thank you
Louise


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 217
Default number formatting

That worked a treat, thank you!!

(Just out of curiosity, if some of the figures were 5 digits rather than 3,
is there a way around this), ie. some are 1-22 but some could be 12-434.

Thanks again.
Louise

"Dave Peterson" wrote:

Maybe just select the range to fill
format|cells|Number tab|Custom category
0-00

And then just enter your 3 digits (no dashes).

If you do this, the values will still be numeric (121), but will show 1-21.

If you want the values to include the dash, you can format the cells as Text and
then type exactly what you want or just precede your entry with an apostrophe:
'1-21



Louise wrote:

Hi all

I need to enter numbers into a column with the following format 1-21 (a
number, then a dash, then another number).

When I do this, Excel changes the numbers into dates. I have tried creating
a custom number but this still doesn't work. The only method I have found
which works is to create a custom number format for every single cell,
entering the exact number in the 'type' box.

Is there a quicker way???

Thank you
Louise


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default number formatting

You can still use the text stuff or you could use a custom format of:

[<1000]0-00;00-000



Louise wrote:

That worked a treat, thank you!!

(Just out of curiosity, if some of the figures were 5 digits rather than 3,
is there a way around this), ie. some are 1-22 but some could be 12-434.

Thanks again.
Louise

"Dave Peterson" wrote:

Maybe just select the range to fill
format|cells|Number tab|Custom category
0-00

And then just enter your 3 digits (no dashes).

If you do this, the values will still be numeric (121), but will show 1-21.

If you want the values to include the dash, you can format the cells as Text and
then type exactly what you want or just precede your entry with an apostrophe:
'1-21



Louise wrote:

Hi all

I need to enter numbers into a column with the following format 1-21 (a
number, then a dash, then another number).

When I do this, Excel changes the numbers into dates. I have tried creating
a custom number but this still doesn't work. The only method I have found
which works is to create a custom number format for every single cell,
entering the exact number in the 'type' box.

Is there a quicker way???

Thank you
Louise


--

Dave Peterson


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 605
Default number formatting

Dave,

I have a question from this thread. If you have time would you mind helping me? It is in the Newusers forum. Subject: custom format. 11/22/2006

Appreciate clarification. Thanks.

Epinn

"Dave Peterson" wrote in message ...
You can still use the text stuff or you could use a custom format of:

[<1000]0-00;00-000



Louise wrote:

That worked a treat, thank you!!

(Just out of curiosity, if some of the figures were 5 digits rather than 3,
is there a way around this), ie. some are 1-22 but some could be 12-434.

Thanks again.
Louise

"Dave Peterson" wrote:

Maybe just select the range to fill
format|cells|Number tab|Custom category
0-00

And then just enter your 3 digits (no dashes).

If you do this, the values will still be numeric (121), but will show 1-21.

If you want the values to include the dash, you can format the cells as Text and
then type exactly what you want or just precede your entry with an apostrophe:
'1-21



Louise wrote:

Hi all

I need to enter numbers into a column with the following format 1-21 (a
number, then a dash, then another number).

When I do this, Excel changes the numbers into dates. I have tried creating
a custom number but this still doesn't work. The only method I have found
which works is to create a custom number format for every single cell,
entering the exact number in the 'type' box.

Is there a quicker way???

Thank you
Louise


--

Dave Peterson


--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default number formatting

Mr.Louise
i am new person for this forum. anyway i think my answer is useful for u
your number for ex. 1-21 is the result but u use this number for 2
columsn like

A B RESULT
1 21 = CONCATENATE (A1,"-",B1)

21 141 = " ( SAME FORMULA USE) U will get 21-141
very easy mathod after finish you work result colum just copy and paste
special there only in values you will get result easy , there is no
restriction for digits.

colulmn A and column B filling is depend upon ur s request number "-"
symbol automatic generated n formulae. ( )
check and send a mail how it is working ok

"Louise" wrote:

Hi all

I need to enter numbers into a column with the following format 1-21 (a
number, then a dash, then another number).

When I do this, Excel changes the numbers into dates. I have tried creating
a custom number but this still doesn't work. The only method I have found
which works is to create a custom number format for every single cell,
entering the exact number in the 'type' box.

Is there a quicker way???

Thank you
Louise

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 Formatting Custom Number CSBUG Excel Discussion (Misc queries) 4 November 17th 05 07:57 PM
Text Function with Different Formatting for Number MKenworthy Excel Discussion (Misc queries) 1 September 1st 05 11:34 PM
concatenating and formatting area code and phone number columns sherri Excel Worksheet Functions 4 September 1st 05 09:59 PM
Pivot Table Drill Down Number Formatting Gregg Riemer Excel Discussion (Misc queries) 1 January 4th 05 10:53 PM
Conditional Formatting (Date vs Number) [email protected] Excel Discussion (Misc queries) 7 December 20th 04 10:23 PM


All times are GMT +1. The time now is 05:51 AM.

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"