Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
What formula should I enter into Category "Custom" of Validatioan to force
user to begin character string with "PR-"? Desired result is "PR-001". I don't want user to have option to enter "001" or "002", etc., without the "PR-". Nor do I want them to be able to enter "DR-001". |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi
An example for column A, the formatting starts from A1 =(LEFT($A1,3)="PR-") Whe you also need all entries to be unique, then =AND(LEFT($A1,3)="PR-",COUNTIF($A:$A,$A1)<2) Arvi Laaneemts "ron" wrote in message ... What formula should I enter into Category "Custom" of Validatioan to force user to begin character string with "PR-"? Desired result is "PR-001". I don't want user to have option to enter "001" or "002", etc., without the "PR-". Nor do I want them to be able to enter "DR-001". |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You people are really really good. Thanks. I modified the formula to ensure a
6 digit entry: =AND(LEFT(E26,3)="Pr-",LEN(E26)=6) "Arvi Laanemets" wrote: Hi An example for column A, the formatting starts from A1 =(LEFT($A1,3)="PR-") Whe you also need all entries to be unique, then =AND(LEFT($A1,3)="PR-",COUNTIF($A:$A,$A1)<2) Arvi Laaneemts "ron" wrote in message ... What formula should I enter into Category "Custom" of Validatioan to force user to begin character string with "PR-"? Desired result is "PR-001". I don't want user to have option to enter "001" or "002", etc., without the "PR-". Nor do I want them to be able to enter "DR-001". |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=LEFT(A1,3)="Pr-"
or maybe... =EXACT("PR-",LEFT(A1,3)) (with A1 being validated.) ron wrote: What formula should I enter into Category "Custom" of Validatioan to force user to begin character string with "PR-"? Desired result is "PR-001". I don't want user to have option to enter "001" or "002", etc., without the "PR-". Nor do I want them to be able to enter "DR-001". -- Dave Peterson |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You people are really really good. Thanks. I modified the formula to ensure a
6 digit entry: =AND(LEFT(E26,3)="Pr-",LEN(E26)=6) "Dave Peterson" wrote: =LEFT(A1,3)="Pr-" or maybe... =EXACT("PR-",LEFT(A1,3)) (with A1 being validated.) ron wrote: What formula should I enter into Category "Custom" of Validatioan to force user to begin character string with "PR-"? Desired result is "PR-001". I don't want user to have option to enter "001" or "002", etc., without the "PR-". Nor do I want them to be able to enter "DR-001". -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to format only specific characters or numbers within each cellwithin a range of cells | Excel Discussion (Misc queries) | |||
trim a string by specific number of characters | Excel Discussion (Misc queries) | |||
how do I highlite text within a cell (specific characters) | Excel Discussion (Misc queries) | |||
Replacing specific characters with spaces | Excel Worksheet Functions | |||
Pulling out specific characters | Excel Discussion (Misc queries) |