+ Reply to Thread
Results 1 to 4 of 4

if a cell = a particular letter or even contains that letter

  1. #1
    Brian
    Guest

    if a cell = a particular letter or even contains that letter

    =IF(M22="all","a",IF(M22="e","r","a"))

    Notice the "e", how can I insert the following:

    ....If m22 contains "e" anywhere,"r","a"))

    Thanks

    Brian

  2. #2
    Ron Rosenfeld
    Guest

    Re: if a cell = a particular letter or even contains that letter

    On Sun, 27 Feb 2005 16:31:03 -0800, "Brian" <[email protected]>
    wrote:

    >=IF(M22="all","a",IF(M22="e","r","a"))
    >
    >Notice the "e", how can I insert the following:
    >
    >...If m22 contains "e" anywhere,"r","a"))
    >
    >Thanks
    >
    >Brian


    .... =IF(COUNTIF(m22,"*e*")>0,"r","a")


    --ron

  3. #3
    Ragdyer
    Guest

    Re: if a cell = a particular letter or even contains that letter

    Try this:

    =IF(M22="all","a",IF(ISNUMBER(SEARCH("e",M22)),"r","a"))
    --
    HTH,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------

    "Brian" <[email protected]> wrote in message
    news:[email protected]...
    > =IF(M22="all","a",IF(M22="e","r","a"))
    >
    > Notice the "e", how can I insert the following:
    >
    > ...If m22 contains "e" anywhere,"r","a"))
    >
    > Thanks
    >
    > Brian



  4. #4
    Rob van Gelder
    Guest

    Re: if a cell = a particular letter or even contains that letter

    =IF(LEN(A1)>LEN(SUBSTITUTE(A1, "e","")), "r", "a")

    --
    Rob van Gelder - http://www.vangelder.co.nz/excel


    "Brian" <[email protected]> wrote in message
    news:[email protected]...
    > =IF(M22="all","a",IF(M22="e","r","a"))
    >
    > Notice the "e", how can I insert the following:
    >
    > ...If m22 contains "e" anywhere,"r","a"))
    >
    > Thanks
    >
    > Brian




+ 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