#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Custom Number Format

I need to make some labels in the following format:

001-1 to 216-1

I tried ###"-1" but this does not increment the 1st 3 digits but does
increment the -1. I also need to display the leading zero's

These need to be in one cell each

TIA
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default Custom Number Format

You have at least a couple options:

Examples:
B3: =TEXT(ROW()-2,"000-1")
Copy down as far as you need

OR....
A1:A216 contains the series 1 through 216
Select that range...
Then...From the Excel main menu:
<format<cells<number tab
Categor: Custom
Type: 000-1
Click [OK]

Is that something you can work with?

***********
Regards,
Ron

XL2002, WinXP


"jollynicechap" wrote:

I need to make some labels in the following format:

001-1 to 216-1

I tried ###"-1" but this does not increment the 1st 3 digits but does
increment the -1. I also need to display the leading zero's

These need to be in one cell each

TIA

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 80
Default Custom Number Format

Not sure how you want the numbers to increment, but try custom format of
000-0. If you then start by entering 11, it will display as 001-1. 12 will
display as 001-2. 20 will display as 002-0, 21 = 002-1
--
Hth

Kassie Kasselman


"jollynicechap" wrote:

I need to make some labels in the following format:

001-1 to 216-1

I tried ###"-1" but this does not increment the 1st 3 digits but does
increment the -1. I also need to display the leading zero's

These need to be in one cell each

TIA

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Custom Number Format

Thanks Ron

Both options work a treat. But I changed =TEXT(ROW()-2,"000-1") to
=TEXT(ROW()-3,"000-1") to start from 001. Why? I don't know. I thought it
would be =TEXT(ROW()-1,"000-1"), but this starts at 003??

Paul


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,726
Default Custom Number Format

Try

=TEXT(ROW(A1)-3,"000-1")

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"jollynicechap" wrote in message
...
Thanks Ron

Both options work a treat. But I changed =TEXT(ROW()-2,"000-1") to
=TEXT(ROW()-3,"000-1") to start from 001. Why? I don't know. I thought it
would be =TEXT(ROW()-1,"000-1"), but this starts at 003??

Paul






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Custom Number Format

=TEXT(ROW()-3,"000-1") works for a column but not for a Row. Each row
contains six numbers, one number per cell

Example of label:

001-1 001-1 001-1 001-1 001-1 001-1
Passive Floor Distributor 1
007-1 008-1 009-1 010-1 011-1 012-1


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default Custom Number Format

Use the ROW function to copy down a column
=TEXT(ROW()-3,"000-1")

Use the COLUMN function to copy across a row
=TEXT(COLUMN()-3,"000-1")

Notes: The ROW or COLUMN functions, when used with no parameters, return the
row number or column number of the cell containing the function. You can
increment/decrement those values to achieve the number you want.

Example:
B1: =TEXT(COLUMN()+5,"000-1")
returns 006-1

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"jollynicechap" wrote:

=TEXT(ROW()-3,"000-1") works for a column but not for a Row. Each row
contains six numbers, one number per cell

Example of label:

001-1 001-1 001-1 001-1 001-1 001-1
Passive Floor Distributor 1
007-1 008-1 009-1 010-1 011-1 012-1


  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Custom Number Format

Thanks Ron for the explanation. I can work it now.
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 create a custom number format in Excel using a symbol? mbuckrell Excel Discussion (Misc queries) 2 July 26th 06 12:49 AM
Custom Number Format Olly Excel Discussion (Misc queries) 1 December 15th 05 04:02 PM
Custom Number format question Joh Excel Discussion (Misc queries) 5 October 25th 05 02:31 PM
Custom number format always defaults last number to 0. scubadave Excel Discussion (Misc queries) 2 June 15th 05 10:20 PM
How do I format a cell for a custom part number? PJ Excel Discussion (Misc queries) 4 March 3rd 05 03:57 AM


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