+ Reply to Thread
Results 1 to 4 of 4

Querying part of a cell entry

  1. #1
    Forum Contributor
    Join Date
    01-25-2005
    Location
    Cardiff, Wales
    MS-Off Ver
    Mac 365 & M/S 365
    Posts
    107

    Querying part of a cell entry

    Hi, once again,

    I have another one,

    In column C, I have a number of ethnic groupings, can in ask for part entry in a cell, i.e. White instead of White British and the query return all entrys with the word White in them?

    many thanks

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Querying part of a cell entry

    Say your data is in column X.

    In Y2, enter =IF(ISNUMBER(Search(C1,X2)),Count(Y$1:Y1)+1,"") and copy down

    Then in Z2: = MAX(Y:Y)

    then to extract matches:

    =IF(ROWS($A$1:$A1)>$Z$2,"",INDEX(X:X,MATCH(ROWS($A$1:$A1),$Y:$Y,0))

    copied down and to next column(s) if necessary to grab adjacent data.

    Adjust all ranges/references to suit.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    01-25-2005
    Location
    Cardiff, Wales
    MS-Off Ver
    Mac 365 & M/S 365
    Posts
    107

    Re: Querying part of a cell entry

    Thanks NBVC, but it returns the all that is in cell i.e. White British and not just White, as i have 15 white catergories I was hoping to combine them as one and all others as another.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Querying part of a cell entry

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

+ 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