Ducati Sporting Club UK
General Motorcycles only
General motorcycle issues, including non-Ducati, but keep it motorcycles!
 
 
Thread Tools Search this Thread Display Modes
Old 10-May-2006, 09:54   #1
DSC Member Paul James Paul James is offline
Founder Member
Ducati Meccanica
Paul James's Avatar
 
Posts: 2,994
Join Date: May 2001
Location: Northants
Microsoft Excel help needed
Not Ducati related but I'm trying to put a number into an Excel database with a "leading zero" I can do this as text but then cant use a numeric function on it. I'm trying to show 03050601 which is a date code with up 01 to 99 additional identifiers. I want to type in 03050601 into a cell then beneath that cell put =thatcell+1 then copy that down the list adding one at a time to the sequence.

Trouble is that if I select "number" as the format the leading zero dissapears when the number is typed in.

I'm sure I've done this successfully before but can't remember how.

HEEELLLPPPP !!
Reply
Old 10-May-2006, 10:07   #2
Wylie1 Wylie1 is offline
Registered Forum User
500SD
Wylie1's Avatar
 
Posts: 719
Join Date: Feb 2005
Location: South East
Mood: Out with the grey....in with the satin black
Put a ' before the zero to display the leading zero, then hover over the lower RH corner of the cell click & drag down with the LH mouse button for sequential numbers in the cells below

[Edited on 10-5-2006 by Wylie1]
Reply
Old 10-May-2006, 10:13   #3
DSC Member Paul James Paul James is offline
Founder Member
Ducati Meccanica
Paul James's Avatar
 
Posts: 2,994
Join Date: May 2001
Location: Northants
Quote:
Originally posted by Wylie1
Put a ' before the zero

That seems to work for the individual cell but then if I put the equation in the cell beneath the zero dissapears again.

Thanks for the reply Wylie
Reply
Old 10-May-2006, 10:15   #4
Wylie1 Wylie1 is offline
Registered Forum User
500SD
Wylie1's Avatar
 
Posts: 719
Join Date: Feb 2005
Location: South East
Mood: Out with the grey....in with the satin black
Oops, sorry... I was editing my reply after reading the rest of your post! See above
Reply
Old 10-May-2006, 10:19   #5
DSC Member antonye antonye is offline
Administrator
Webteam
MotoGP God
Bikes: 748S, HM1100S, V4SP, Was: DD-A #111
antonye's Avatar
 
Posts: 13,054
Join Date: Feb 2002
Location: Back in Essex
Mood: Passion Killer
Right-Click the cell then pick "Custom" from the Category for the cell format.

In there it should automatically pick the format of "00000000" but you can type it in if needed.

In formatting, 0 is a forced digit (inc. leading zeros) and # is an optional number, so wouldn't include leading zeros.

Eg:

01234 as 00000 = 01234
01234 as ##### = 1234
Reply
Old 10-May-2006, 10:21   #6
DSC Member Paul James Paul James is offline
Founder Member
Ducati Meccanica
Paul James's Avatar
 
Posts: 2,994
Join Date: May 2001
Location: Northants
Still seems to lose the leading zero ;-(((
Reply
Old 10-May-2006, 10:23   #7
andyb andyb is offline
Registered Forum User
BSB Star
andyb's Avatar
 
Posts: 6,720
Join Date: Feb 2002
Location: northampton
Mood: Has change happened...must of missed it!
God it must be exciting at work...................
Reply
Old 10-May-2006, 10:24   #8
DSC Member antonye antonye is offline
Administrator
Webteam
MotoGP God
Bikes: 748S, HM1100S, V4SP, Was: DD-A #111
antonye's Avatar
 
Posts: 13,054
Join Date: Feb 2002
Location: Back in Essex
Mood: Passion Killer
You may need to set the cell formatting on the range once you've copied the formulas over. Excel can be funny like this sometimes as it constantly tries to do a "best guess" about the formatting of a cell when the contents change. It's a right pita for us developers!
Reply
Old 10-May-2006, 10:25   #9
DSC Member antonye antonye is offline
Administrator
Webteam
MotoGP God
Bikes: 748S, HM1100S, V4SP, Was: DD-A #111
antonye's Avatar
 
Posts: 13,054
Join Date: Feb 2002
Location: Back in Essex
Mood: Passion Killer
Quote:
Originally posted by andyb
God it must be exciting at work...................

Haven't you got some paperwork to fill out?
Reply
Old 10-May-2006, 10:30   #10
DSC Member Paul James Paul James is offline
Founder Member
Ducati Meccanica
Paul James's Avatar
 
Posts: 2,994
Join Date: May 2001
Location: Northants
Quote:
Originally posted by antonye
Right-Click the cell then pick "Custom" from the Category for the cell format.

In there it should automatically pick the format of "00000000" but you can type it in if needed.

In formatting, 0 is a forced digit (inc. leading zeros) and # is an optional number, so wouldn't include leading zeros.

Eg:

01234 as 00000 = 01234
01234 as ##### = 1234

Yeeehaaaa, that works just fine. Many thanks guys, great info and very quick as usual. Almost tempted to chuck my slide rule and four figure tables away now
Reply
Reply
  
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Recent Posts - Contact Us - DSC Home - Archive - Top
Powered by vBulletin 3.5.4 - Copyright © 2000 - 2024, Jelsoft Enterprises Ltd. - © Ducati Sporting Club UK - All times are GMT +1. The time now is 09:16.