Ducati Sporting Club UK
General Motorcycles only
General motorcycle issues, including non-Ducati, but keep it motorcycles!
 
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-May-2006, 09:54
Paul James's Avatar
DSC Member Paul James Paul James is offline
Founder Member
Ducati Meccanica
 
Posts: 2,994
Join Date: May 2001
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 !!
Quote+Reply
  #2  
Old 10-May-2006, 10:07
Wylie1's Avatar
Wylie1 Wylie1 is offline
Registered Forum User
500SD
 
Posts: 719
Join Date: Feb 2005
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]
Quote+Reply
  #3  
Old 10-May-2006, 10:13
Paul James's Avatar
DSC Member Paul James Paul James is offline
Founder Member
Ducati Meccanica
 
Posts: 2,994
Join Date: May 2001
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
Quote+Reply
  #4  
Old 10-May-2006, 10:15
Wylie1's Avatar
Wylie1 Wylie1 is offline
Registered Forum User
500SD
 
Posts: 719
Join Date: Feb 2005
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
Quote+Reply
  #5  
Old 10-May-2006, 10:19
antonye's Avatar
DSC Member antonye antonye is offline
Administrator
Webteam
MotoGP God
Bikes: 748S, HM1100S, V4SP, Was: DD-A #111
 
Posts: 13,054
Join Date: Feb 2002
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
Quote+Reply
  #6  
Old 10-May-2006, 10:21
Paul James's Avatar
DSC Member Paul James Paul James is offline
Founder Member
Ducati Meccanica
 
Posts: 2,994
Join Date: May 2001
Still seems to lose the leading zero ;-(((
Quote+Reply
  #7  
Old 10-May-2006, 10:23
andyb's Avatar
andyb andyb is offline
Registered Forum User
BSB Star
 
Posts: 6,720
Join Date: Feb 2002
Mood: Has change happened...must of missed it!
God it must be exciting at work...................
Quote+Reply
  #8  
Old 10-May-2006, 10:24
antonye's Avatar
DSC Member antonye antonye is offline
Administrator
Webteam
MotoGP God
Bikes: 748S, HM1100S, V4SP, Was: DD-A #111
 
Posts: 13,054
Join Date: Feb 2002
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!
Quote+Reply
  #9  
Old 10-May-2006, 10:25
antonye's Avatar
DSC Member antonye antonye is offline
Administrator
Webteam
MotoGP God
Bikes: 748S, HM1100S, V4SP, Was: DD-A #111
 
Posts: 13,054
Join Date: Feb 2002
Mood: Passion Killer
Quote:
Originally posted by andyb
God it must be exciting at work...................

Haven't you got some paperwork to fill out?
Quote+Reply
  #10  
Old 10-May-2006, 10:30
Paul James's Avatar
DSC Member Paul James Paul James is offline
Founder Member
Ducati Meccanica
 
Posts: 2,994
Join Date: May 2001
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
Quote+Reply
Reply
  
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector
Switch to Vertical postbit Use Vertical Postbit

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 22:04.