PC Review


Reply
Thread Tools Rate Thread

How do I use an If= statement with an apostrophe (IF(s4="jack's",.

 
 
=?Utf-8?B?RGVudmVyIFRpZmZhbnk=?=
Guest
Posts: n/a
 
      29th Jun 2007
I need to set a new cell's value to a numeric digit by saying :
If(s4="Jack's", 1, ""). But it won't work b/c of the apostrophe inside of
"Jack's".

Is there a way around this without altering the data?
 
Reply With Quote
 
 
 
 
Vasant Nanavati
Guest
Posts: n/a
 
      29th Jun 2007
It works for me.
________________________________________________________________________

"Denver Tiffany" <Denver (E-Mail Removed)> wrote in message
news:235AA3C4-0FF9-4935-AA92-(E-Mail Removed)...
>I need to set a new cell's value to a numeric digit by saying :
> If(s4="Jack's", 1, ""). But it won't work b/c of the apostrophe inside of
> "Jack's".
>
> Is there a way around this without altering the data?



 
Reply With Quote
 
=?Utf-8?B?cGV0ZXI=?=
Guest
Posts: n/a
 
      29th Jun 2007
Make sure there are not extra spaces before or after Jack's. In Excel 2007,
I typed Jack's in one cell and added =IF(D4="Jack's",1,"") and I am getting a
1. If I add one empty space after 's I then get blank.
--
Peter


"Denver Tiffany" wrote:

> I need to set a new cell's value to a numeric digit by saying :
> If(s4="Jack's", 1, ""). But it won't work b/c of the apostrophe inside of
> "Jack's".
>
> Is there a way around this without altering the data?

 
Reply With Quote
 
Bernie Deitrick
Guest
Posts: n/a
 
      29th Jun 2007
Tiffany,

=IF(S4="Jack's",1,"")

worked fine for me.

Try

=IF(TRIM(S4)="Jack's",1,"")

You may have extra spaces.... Otherwise, try retyping Jack's into cell S4

HTH,
Bernie
MS Excel MVP


"Denver Tiffany" <Denver (E-Mail Removed)> wrote in message
news:235AA3C4-0FF9-4935-AA92-(E-Mail Removed)...
>I need to set a new cell's value to a numeric digit by saying :
> If(s4="Jack's", 1, ""). But it won't work b/c of the apostrophe inside of
> "Jack's".
>
> Is there a way around this without altering the data?



 
Reply With Quote
 
=?Utf-8?B?RWxrYXI=?=
Guest
Posts: n/a
 
      29th Jun 2007
The apostrophe does not cause a problem in this formula. Since it is in
between the two double-quotes, it will be read as part of the text string.

Does your data in S4 include the quotes? If so, that is where the problem
lies. Try writing your formula like this instead:

=IF(S4="""Jack's""",1,"")

HTH,
Elkar


"Denver Tiffany" wrote:

> I need to set a new cell's value to a numeric digit by saying :
> If(s4="Jack's", 1, ""). But it won't work b/c of the apostrophe inside of
> "Jack's".
>
> Is there a way around this without altering the data?

 
Reply With Quote
 
=?Utf-8?B?VGVldGhsZXNzIG1hbWE=?=
Guest
Posts: n/a
 
      30th Jun 2007
The formulas below are much flexible. They will work with a word name Jack.
Example: "Jack ", " jack ", "Jack's", "Hello Jack", and so on....

=IF(ISNUMBER(SEARCH("Jack",A1)),1,"")
or
=IF(COUNTIF(A1,"*Jack*"),1,"")


"Denver Tiffany" wrote:

> I need to set a new cell's value to a numeric digit by saying :
> If(s4="Jack's", 1, ""). But it won't work b/c of the apostrophe inside of
> "Jack's".
>
> Is there a way around this without altering the data?

 
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
speakers "hiss" when plugging in headphones in headphone jack =?Utf-8?B?Z3VzMTAyMw==?= Windows Vista Hardware 0 18th Nov 2007 09:34 PM
IIF statement in query criteria to have "Like "*" or Is Null" as the result if true bdt513@yahoo.com Microsoft Access Queries 5 19th Jul 2006 07:38 PM
"?" appearing instead of apostrophe " ' " in replies =?Utf-8?B?aXR6IG5pbg==?= Microsoft Outlook Discussion 2 22nd Jun 2005 09:24 PM
Syntax error in UPDATE statement - field name "Upper", or "Lower" =?Utf-8?B?SWdvciBHZWd1c2lu?= Microsoft ADO .NET 2 19th Oct 2004 04:17 PM
"Shift" + "apostrophe" not working right =?Utf-8?B?Q2xhaXJlaW5veg==?= Microsoft Word Document Management 2 21st May 2004 08:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:51 PM.