Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Autoformat/Conditional Format of entered Number

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.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Autoformat/Conditional Format of entered Number

Hi,

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

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

"TheBusMan" wrote:

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.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Autoformat/Conditional Format of entered Number

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'.

"Mike H" wrote:

Hi,

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

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

"TheBusMan" wrote:

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.

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
Conditional Formatting - Number Format AdmiralAJ Excel Worksheet Functions 8 March 18th 09 09:13 PM
Format cell so number entered will show only one way Frustrated in AZ Excel Worksheet Functions 3 May 19th 08 05:26 PM
How to create a conditional format that changes the number format tmbo Excel Discussion (Misc queries) 1 August 23rd 06 06:20 AM
Cell Format Changes When Data Is Entered - Not Conditional Formatt SundanceKidLudwig Excel Worksheet Functions 2 September 30th 05 02:07 PM
Conditional format of minimum number MaggieMagill Excel Worksheet Functions 6 September 25th 05 11:36 PM


All times are GMT +1. The time now is 09:10 PM.

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"