+ Reply to Thread
Results 1 to 3 of 3

Searching a text string in a range of cells.

  1. #1
    heenanmc
    Guest

    Searching a text string in a range of cells.

    How do i search for something within a text string in a cell which is in a
    range of cells.

    so if a cell contains the names "jim, bob, tom" what formula can i use to
    just search for "bob"
    I am currently using a SUMIF function which is only picking up cells that
    only contain "bob" on its own.

  2. #2
    Toppers
    Guest

    RE: Searching a text string in a range of cells.

    =SUMIF(A1:A8,"*bob*",C1:C8)

    will sum values in C1:C8 where A1:A8 contain "bob"

    =COUNTIF(A1:A8,"*bob*")

    will count occurences of "bob" in A1:A8 BUT only one occurence per cell i.e.
    "bob,tom,jim,bob" in a cell will count as 1

    HTH

    "heenanmc" wrote:

    > How do i search for something within a text string in a cell which is in a
    > range of cells.
    >
    > so if a cell contains the names "jim, bob, tom" what formula can i use to
    > just search for "bob"
    > I am currently using a SUMIF function which is only picking up cells that
    > only contain "bob" on its own.


  3. #3
    heenanmc
    Guest

    RE: Searching a text string in a range of cells.

    Thank you very much! That worked perfectly!

    "Toppers" wrote:

    > =SUMIF(A1:A8,"*bob*",C1:C8)
    >
    > will sum values in C1:C8 where A1:A8 contain "bob"
    >
    > =COUNTIF(A1:A8,"*bob*")
    >
    > will count occurences of "bob" in A1:A8 BUT only one occurence per cell i.e.
    > "bob,tom,jim,bob" in a cell will count as 1
    >
    > HTH
    >
    > "heenanmc" wrote:
    >
    > > How do i search for something within a text string in a cell which is in a
    > > range of cells.
    > >
    > > so if a cell contains the names "jim, bob, tom" what formula can i use to
    > > just search for "bob"
    > > I am currently using a SUMIF function which is only picking up cells that
    > > only contain "bob" on its own.


+ 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