Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default how can I use preceeding zeros and data validation in Excel?

I am trying to do 2 things. (1) use preceeding zeros in a 3 digit format,
which I can do in either text or numeric format. (2) I want to use data
validation of 3 digits, which seems to be my downfall. e.g. If I enter 036
or 008 in a cell, I want it to show as 036 or 008 and pass validation.

I can achieve this by changing to text format, but wonder if anyone knows
how to do it in numeric format. Thanks
--
Tropical
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 301
Default how can I use preceeding zeros and data validation in Excel?

If it's already formatted as 000, then you can use Decimal value < 1000, no?

"Tropical" wrote in message
...
I am trying to do 2 things. (1) use preceeding zeros in a 3 digit format,
which I can do in either text or numeric format. (2) I want to use data
validation of 3 digits, which seems to be my downfall. e.g. If I enter

036
or 008 in a cell, I want it to show as 036 or 008 and pass validation.

I can achieve this by changing to text format, but wonder if anyone knows
how to do it in numeric format. Thanks
--
Tropical



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 527
Default how can I use preceeding zeros and data validation in Excel?

Hi, select the cell(s), choose Data, Validation. Select whole number, Min 1,
MAx 999 and click OK

with the cells still selected choose Format, Cells, Number, Custom. in the
custom box type 000 and click OK

Peter

"Tropical" wrote:

I am trying to do 2 things. (1) use preceeding zeros in a 3 digit format,
which I can do in either text or numeric format. (2) I want to use data
validation of 3 digits, which seems to be my downfall. e.g. If I enter 036
or 008 in a cell, I want it to show as 036 or 008 and pass validation.

I can achieve this by changing to text format, but wonder if anyone knows
how to do it in numeric format. Thanks
--
Tropical

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default how can I use preceeding zeros and data validation in Excel?

Numeric Formatting changes the appearance but not the underlying value.

So.........your entering as text is the answer.


Gord Dibben MS Excel MVP

On Wed, 21 Mar 2007 13:17:00 -0700, Tropical
wrote:

I am trying to do 2 things. (1) use preceeding zeros in a 3 digit format,
which I can do in either text or numeric format. (2) I want to use data
validation of 3 digits, which seems to be my downfall. e.g. If I enter 036
or 008 in a cell, I want it to show as 036 or 008 and pass validation.

I can achieve this by changing to text format, but wonder if anyone knows
how to do it in numeric format. Thanks


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
EXCEL DROPS OFF ALL ZEROS PRECEEDING A NUMBER ARTHURG Excel Discussion (Misc queries) 3 July 25th 06 06:10 AM
How to select preceeding cell in a formula? Dennis Excel Worksheet Functions 3 June 22nd 06 11:30 AM
how do i format cells with preceeding zeros & minus sign Homer Excel Worksheet Functions 2 May 31st 06 04:02 PM
Concatenate and keep preceeding zeros Wrkn4alivn Excel Worksheet Functions 2 February 16th 06 11:32 PM
how do I add preceeding zeros clarkld Excel Worksheet Functions 4 November 26th 04 09:49 PM


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