Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 98
Default Simple? Formatting Question

Hi:

I have a numeric cell, which I wish to always show as three digits (001 for example). I
find that I don't know how to do that, and there is no simple "Format" command as there is
in Access! Can someone give me a pointer? The problem is that the cell has to be
incremented in the processing, since it represents a sub sequence number which ultimately
becomes unique key.

Thanks in advance

John Baker
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 98
Default Simple? Formatting Question

Hi Again:

I should have added that the field in question is being concatenated with other fields to
produce the unique key. Hence I need something that will LOCK the format TO THREE DIGITS
when I concatenate.

John


John Baker wrote:

Hi:

I have a numeric cell, which I wish to always show as three digits (001 for example). I
find that I don't know how to do that, and there is no simple "Format" command as there is
in Access! Can someone give me a pointer? The problem is that the cell has to be
incremented in the processing, since it represents a sub sequence number which ultimately
becomes unique key.

Thanks in advance

John Baker


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Simple? Formatting Question

=Right(A1&B1&C1,3)*1

or use Left.

then format as posted.

--
Regards,
Tom Ogilvy



"John Baker" wrote in message
...
Hi Again:

I should have added that the field in question is being concatenated with

other fields to
produce the unique key. Hence I need something that will LOCK the format

TO THREE DIGITS
when I concatenate.

John


John Baker wrote:

Hi:

I have a numeric cell, which I wish to always show as three digits (001

for example). I
find that I don't know how to do that, and there is no simple "Format"

command as there is
in Access! Can someone give me a pointer? The problem is that the cell

has to be
incremented in the processing, since it represents a sub sequence number

which ultimately
becomes unique key.

Thanks in advance

John Baker




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Simple? Formatting Question

Hi John,

Use a custom format of 000


---
Regards,
Norman



"John Baker" wrote in message
...
Hi:

I have a numeric cell, which I wish to always show as three digits (001
for example). I
find that I don't know how to do that, and there is no simple "Format"
command as there is
in Access! Can someone give me a pointer? The problem is that the cell has
to be
incremented in the processing, since it represents a sub sequence number
which ultimately
becomes unique key.

Thanks in advance

John Baker



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Simple? Formatting Question

select the cell

format=Cells=Number Tab,
Go to Custom
Enter
000

--
Regards,
Tom Ogilvy

"John Baker" wrote in message
...
Hi:

I have a numeric cell, which I wish to always show as three digits (001

for example). I
find that I don't know how to do that, and there is no simple "Format"

command as there is
in Access! Can someone give me a pointer? The problem is that the cell has

to be
incremented in the processing, since it represents a sub sequence number

which ultimately
becomes unique key.

Thanks in advance

John Baker





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 98
Default Simple? Formatting Question

Thank you Tom

"Tom Ogilvy" wrote:

select the cell

format=Cells=Number Tab,
Go to Custom
Enter
000


  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 593
Default Simple? Formatting Question


John Baker wrote:

there is no simple "Format" command as there is
in Access!


Are you sure MS Access has a Format command? VBA has Format and Format$
functions but then Excel shares the same VBA library as MS Access. Jet
has Format and Format$ functions, basically a re-implementation of the
equivalent VBA5 functions, but then Excel is a Jet data source too.
Some of the MS Access Forms controls have a Format property, is *this*
what you mean?

Jamie.

--

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
A very simple conditional formatting question Mel[_4_] Excel Discussion (Misc queries) 6 February 17th 09 02:28 AM
Very Simple formatting Question Quin Excel Discussion (Misc queries) 4 December 7th 08 03:41 PM
Simple formatting question.... huruta Excel Discussion (Misc queries) 1 April 26th 06 08:18 PM
Conditional formatting, simple question... Kelly Excel Worksheet Functions 2 March 1st 06 07:31 PM
Conditional formatting--simple question John Wirt Excel Worksheet Functions 4 February 5th 06 07:13 PM


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