+ Reply to Thread
Results 1 to 3 of 3

If Statments containing letters

  1. #1
    Rick Wiley
    Guest

    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. #2
    Dave Peterson
    Guest

    Re: 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. #3
    Nikki
    Guest

    RE: 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1