Autoformat/Conditional Format of entered Number

T

TheBusMan

I am trying to conditional format a cell based on the total digits entered.

If I was to enter a single digit, say a '4', I would want the cell to show
'004'
If I was to enter a double digit, say a '12', I would want the cell to show
'012'
If I was to enter a triple digit, say a '351', I would want the cell to show
just '351'

I know how to do it manually, but am at a loss about autoformat/conditional
formating.
 
M

Mike H

Hi,

You would use cell formatting for that. Select your cell(s) and then

Format|Cells - Custom
Apply a custom format of 000
Mike
 
T

TheBusMan

I forgot to include that that there is some additional information that is
displayed. Once I enter '4', it reformats to show the following:

'2009-#' I want it to show '2009-###' It will eventually result in 3 digit
numbers, but I don't want to be going in to alter the formatting all the time
if I don't have to.

Also, if I enter '004' regardless of the formatting, it kicks out the '00'
and leaves the '4'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top