PC Review


Reply
Thread Tools Rate Thread

2 Part Formula

 
 
=?Utf-8?B?YXNobGV5?=
Guest
Posts: n/a
 
      10th Jul 2007
I need a formula that, once locked, the cells in Column A will only accept
uppercase B's or S's and nothing else (no other letters, numbers, characters,
etc.). HELP!?
 
Reply With Quote
 
 
 
 
David Biddulph
Guest
Posts: n/a
 
      10th Jul 2007
Try Data Validation.
--
David Biddulph

"ashley" <(E-Mail Removed)> wrote in message
news:E40C4452-8DD5-4C3E-938E-(E-Mail Removed)...
>I need a formula that, once locked, the cells in Column A will only accept
> uppercase B's or S's and nothing else (no other letters, numbers,
> characters,
> etc.). HELP!?



 
Reply With Quote
 
=?Utf-8?B?VG9wcGVycw==?=
Guest
Posts: n/a
 
      10th Jul 2007
Data =>Validation

Allow: List

Source: S,B

"ashley" wrote:

> I need a formula that, once locked, the cells in Column A will only accept
> uppercase B's or S's and nothing else (no other letters, numbers, characters,
> etc.). HELP!?

 
Reply With Quote
 
PCLIVE
Guest
Posts: n/a
 
      10th Jul 2007
You could use Data-Validation.
Allow:
List
Source:
B,S

That should do what you want.

HTH,
Paul



"ashley" <(E-Mail Removed)> wrote in message
news:E40C4452-8DD5-4C3E-938E-(E-Mail Removed)...
>I need a formula that, once locked, the cells in Column A will only accept
> uppercase B's or S's and nothing else (no other letters, numbers,
> characters,
> etc.). HELP!?



 
Reply With Quote
 
=?Utf-8?B?VGVldGhsZXNzIG1hbWE=?=
Guest
Posts: n/a
 
      10th Jul 2007
Data Validation > Allow: Custom > Formula:
=AND(OR(CODE(A1)=66,CODE(A1)=83),LEN(A1)=1)


"ashley" wrote:

> I need a formula that, once locked, the cells in Column A will only accept
> uppercase B's or S's and nothing else (no other letters, numbers, characters,
> etc.). HELP!?

 
Reply With Quote
 
Peo Sjoblom
Guest
Posts: n/a
 
      10th Jul 2007
You are using B's and S's does that mean you can allow for instance BS or
BBBB or SSSS etc?


--
Regards,

Peo Sjoblom



"ashley" <(E-Mail Removed)> wrote in message
news:E40C4452-8DD5-4C3E-938E-(E-Mail Removed)...
>I need a formula that, once locked, the cells in Column A will only accept
> uppercase B's or S's and nothing else (no other letters, numbers,
> characters,
> etc.). HELP!?



 
Reply With Quote
 
=?Utf-8?B?TWlrZSBI?=
Guest
Posts: n/a
 
      10th Jul 2007
Ashley,

For multiple Bs & Ss I had to resort to a macro:-

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("A:A")) Is Nothing Then
For x = 1 To Len(Target.Value)
If Mid(Target.Value, x, 1) = "B" Or Mid(Target.Value, x, 1) =
"S" Then
Else
MsgBox ("Illegal entry, Capital B or S only")
Target.Value = ""
End If
Next
End If
End Sub

Mike

"ashley" wrote:

> I need a formula that, once locked, the cells in Column A will only accept
> uppercase B's or S's and nothing else (no other letters, numbers, characters,
> etc.). HELP!?

 
Reply With Quote
 
=?Utf-8?B?RWxrYXI=?=
Guest
Posts: n/a
 
      10th Jul 2007
Here's a Custom Data Validation Formula that can allow for multiple B's and
S's.

=LEN(SUBSTITUTE(SUBSTITUTE(A1,"B",""),"S",""))=0

HTH,
Elkar


"Mike H" wrote:

> Ashley,
>
> For multiple Bs & Ss I had to resort to a macro:-
>
> Private Sub Worksheet_Change(ByVal Target As Range)
> If Not Intersect(Target, Range("A:A")) Is Nothing Then
> For x = 1 To Len(Target.Value)
> If Mid(Target.Value, x, 1) = "B" Or Mid(Target.Value, x, 1) =
> "S" Then
> Else
> MsgBox ("Illegal entry, Capital B or S only")
> Target.Value = ""
> End If
> Next
> End If
> End Sub
>
> Mike
>
> "ashley" wrote:
>
> > I need a formula that, once locked, the cells in Column A will only accept
> > uppercase B's or S's and nothing else (no other letters, numbers, characters,
> > etc.). HELP!?

 
Reply With Quote
 
Peo Sjoblom
Guest
Posts: n/a
 
      10th Jul 2007
Nice


Peo


"Elkar" <(E-Mail Removed)> wrote in message
news:68779B2C-2668-497E-9890-(E-Mail Removed)...
> Here's a Custom Data Validation Formula that can allow for multiple B's
> and
> S's.
>
> =LEN(SUBSTITUTE(SUBSTITUTE(A1,"B",""),"S",""))=0
>
> HTH,
> Elkar
>
>
> "Mike H" wrote:
>
>> Ashley,
>>
>> For multiple Bs & Ss I had to resort to a macro:-
>>
>> Private Sub Worksheet_Change(ByVal Target As Range)
>> If Not Intersect(Target, Range("A:A")) Is Nothing Then
>> For x = 1 To Len(Target.Value)
>> If Mid(Target.Value, x, 1) = "B" Or Mid(Target.Value, x, 1) =
>> "S" Then
>> Else
>> MsgBox ("Illegal entry, Capital B or S only")
>> Target.Value = ""
>> End If
>> Next
>> End If
>> End Sub
>>
>> Mike
>>
>> "ashley" wrote:
>>
>> > I need a formula that, once locked, the cells in Column A will only
>> > accept
>> > uppercase B's or S's and nothing else (no other letters, numbers,
>> > characters,
>> > etc.). HELP!?



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set the formula - part 2? Eric Microsoft Excel Worksheet Functions 17 14th Nov 2008 09:08 PM
IF formula help part two IF function incompetent Microsoft Excel Worksheet Functions 2 12th Feb 2008 06:01 PM
change color of all cells with formula or are part of a formula everythingautomotive@gmail.com Microsoft Excel Misc 19 28th Jan 2008 01:21 AM
Formula expected end of statement error, typing formula into cell as part of VBA macro DavidGMullins@gmail.com Microsoft Excel Programming 1 20th Jul 2006 07:58 PM
IF/AND Formula seems to only be reading 1st part of formula =?Utf-8?B?R3JlZyBCb2Jhaw==?= Microsoft Excel Worksheet Functions 2 3rd Mar 2005 01:53 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:03 PM.