Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Rick Wiley
 
Posts: n/a
Default If Statments containing letters

How do I create an IF statement that contains letters.

eg. Cell A1 "COTTONELLE 24 ROLL".
IF(A1="COTT*",1,0).

The ultimate goal is to create Conditional Formatting for specific brands.
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default If Statments containing letters

One way:

=IF(COUNTIF(A1,"cott*"),1,0)

or
=--countif(a1,"cott*")

The -- converts true to 1 and False to 0.



Rick Wiley wrote:

How do I create an IF statement that contains letters.

eg. Cell A1 "COTTONELLE 24 ROLL".
IF(A1="COTT*",1,0).

The ultimate goal is to create Conditional Formatting for specific brands.


--

Dave Peterson
  #3   Report Post  
Nikki
 
Posts: n/a
Default If Statments containing letters

how about if you use:

=IF(LEFT(A26,4)="COTT",1,0)

"Rick Wiley" wrote:

How do I create an IF statement that contains letters.

eg. Cell A1 "COTTONELLE 24 ROLL".
IF(A1="COTT*",1,0).

The ultimate goal is to create Conditional Formatting for specific brands.

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
How to change column letters to correct ones in many formulas automatically? Dmitry Kopnichev Links and Linking in Excel 7 October 13th 05 09:52 PM
How to change column letters to correct ones in many formulas automatically? Dmitry Kopnichev Excel Worksheet Functions 7 October 13th 05 09:52 PM
random combination of letters rp Excel Worksheet Functions 1 September 16th 05 02:40 PM
Counting the number of letters in a cell beefycj5 Excel Discussion (Misc queries) 2 June 1st 05 08:28 PM
How do I sort letters before numbers in Excel? RiverGirl Excel Discussion (Misc queries) 4 May 27th 05 04:09 PM


All times are GMT +1. The time now is 12:47 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"