Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Custom Cell format

Is it possible to create a custom cell format so that all entries are
force to look as follows?

JI-1234567

The (JI-) are constant followed by a combination of seven digits.

Can I do this in excel or is a macro needed?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 638
Default Custom Cell format

Right click on the cell and select Format Cells. Select Custom under
the Category list box of the Number tab. In the Type field, enter
"JI-"####### and leave the quotes intact. Now, any 7 digit number
entered in that cell will be preceded by JI-.

HTH
-Jeff-

Little Penny wrote:
Is it possible to create a custom cell format so that all entries are
force to look as follows?

JI-1234567

The (JI-) are constant followed by a combination of seven digits.

Can I do this in excel or is a macro needed?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Custom Cell format

Thanks

Is there a way to make sure they put in the seven digits. I'm mean can
I have excel reject if it not in this format




On Aug 27, 1:15 pm, JW wrote:
Right click on the cell and select Format Cells. Select Custom under
the Category list box of the Number tab. In the Type field, enter
"JI-"####### and leave the quotes intact. Now, any 7 digit number
entered in that cell will be preceded by JI-.

HTH
-Jeff-



Little Penny wrote:
Is it possible to create a custom cell format so that all entries are
force to look as follows?


JI-1234567


The (JI-) are constant followed by a combination of seven digits.


Can I do this in excel or is a macro needed?- Hide quoted text -


- Show quoted text -



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 638
Default Custom Cell format

You can use Data Validation. Go to Data--Validation. In the
Settings tab, set the Allow field to Whole Number, the Data field to
Between, the Minimum to 1000000, and the Maximum to 9999999. This
will force them to enter a number between those two numbers. Now, if
they need to enter something that begins in 0, we will have to do a
bit more tweaking.

HTH
-Jeff-

Little Penny wrote:
Thanks

Is there a way to make sure they put in the seven digits. I'm mean can
I have excel reject if it not in this format




On Aug 27, 1:15 pm, JW wrote:
Right click on the cell and select Format Cells. Select Custom under
the Category list box of the Number tab. In the Type field, enter
"JI-"####### and leave the quotes intact. Now, any 7 digit number
entered in that cell will be preceded by JI-.

HTH
-Jeff-



Little Penny wrote:
Is it possible to create a custom cell format so that all entries are
force to look as follows?


JI-1234567


The (JI-) are constant followed by a combination of seven digits.


Can I do this in excel or is a macro needed?- Hide quoted text -


- Show quoted text -


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Custom Cell format

Look at Data=Validation

--
Regards,
Tom Ogilvy


"Little Penny" wrote:

Thanks

Is there a way to make sure they put in the seven digits. I'm mean can
I have excel reject if it not in this format




On Aug 27, 1:15 pm, JW wrote:
Right click on the cell and select Format Cells. Select Custom under
the Category list box of the Number tab. In the Type field, enter
"JI-"####### and leave the quotes intact. Now, any 7 digit number
entered in that cell will be preceded by JI-.

HTH
-Jeff-



Little Penny wrote:
Is it possible to create a custom cell format so that all entries are
force to look as follows?


JI-1234567


The (JI-) are constant followed by a combination of seven digits.


Can I do this in excel or is a macro needed?- Hide quoted text -


- Show quoted text -






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Custom Cell format


The first numerical digits does starts with a zero.

Example

JI-0457895

I guess this opens up a whole new can of worms...













On Aug 27, 1:40 pm, Tom Ogilvy
wrote:
Look at Data=Validation

--
Regards,
Tom Ogilvy



"Little Penny" wrote:
Thanks


Is there a way to make sure they put in the seven digits. I'm mean can
I have excel reject if it not in this format


On Aug 27, 1:15 pm, JW wrote:
Right click on the cell and select Format Cells. Select Custom under
the Category list box of the Number tab. In the Type field, enter
"JI-"####### and leave the quotes intact. Now, any 7 digit number
entered in that cell will be preceded by JI-.


HTH
-Jeff-


Little Penny wrote:
Is it possible to create a custom cell format so that all entries are
force to look as follows?


JI-1234567


The (JI-) are constant followed by a combination of seven digits.


Can I do this in excel or is a macro needed?- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -



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
format cell custom Number format Dan Excel Worksheet Functions 2 January 26th 10 05:29 PM
Format Cell as custom type but data doesn't display like I custom. ToMMie Excel Discussion (Misc queries) 6 September 11th 08 08:31 AM
Custom Cell format to mimic time format [email protected] Excel Discussion (Misc queries) 6 November 7th 06 09:17 PM
Format a cell with a custom number format Armor Excel Worksheet Functions 4 January 29th 06 11:25 PM
Custom format that shows blank cell if another cell is empty Zdenek Moravec Excel Discussion (Misc queries) 1 March 25th 05 11:45 AM


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