+ Reply to Thread
Results 1 to 5 of 5

Search for text

  1. #1
    Registered User
    Join Date
    02-24-2010
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2007
    Posts
    6

    Search for text

    Hello !

    I have to do a search on a dataset (about 3000 entries) and part of the exercise is to look in some project titles if there is a country or other key words included.

    I have look on the web and unable to find a formula that works. Basically what I want to do is to have a formula a looks in the column of titles for a list of keywords on another sheet in the same book.

    Does anyone knows a formula that could help me?

    Thanks,

    Milo
    Last edited by NBVC; 02-25-2010 at 11:46 AM.

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

    Re: Search for text

    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!
    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
    Registered User
    Join Date
    02-24-2010
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Search for text

    Great thank you, Here I am attaching the spread sheet.

    Thanks

    Milo
    Attached Files Attached Files

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

    Re: Search for text

    See attached...

    First I created a Named Range to hold all the keywords that you might list in column B of Hoja3 sheet.

    The Named Range is created via: Formulas tab, Define Name

    Enter Name: keywords

    Refers to: =OFFSET(Hoja3!$B$1,1,0,COUNTA(Hoja3!$B:$B)-1,1)

    Then in the Projects Sheet, in C2:

    =MAX($C$1:C1)+OR(ISNUMBER(SEARCH(keywords,B2)))

    confirmed with CTRL+SHIFT+ENTER not just ENTER to get the { } brackets..

    and copied down... this to count number of projects with keyword found within...

    then in D2: =Max(C:C) to give total matched entries...

    then in Hoja sheet: D2:

    =IF(ROWS($A$2:$A2)>Projects!$D$2,"",INDEX(Projects!$B:$B,MATCH(ROWS($A$2:$A2),Projects!$C:$C,0)))

    copied down as far as you want...

    Now add/remove keywords and this list will expand/collapse appropriately.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-24-2010
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Search for text

    Great, I am using it.... if I have another problem I will let you know.


    Thanks a lot!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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