+ Reply to Thread
Results 1 to 6 of 6

Search for Text and Return Cell Location

  1. #1
    Registered User
    Join Date
    02-10-2013
    Location
    PR
    MS-Off Ver
    Excel 2003
    Posts
    93

    Search for Text and Return Cell Location

    I've got a huge spreadsheet full of names that appear in various cells throughout a spreadsheet.

    Is there an Excel function that could return the cell location(s) of a particular last name?

    Say I had the last name 'DOE' - and just (!) the last name 'DOE' - in A1. Is there a function which if I use it to look at A1 will tell me what other cells in the spreadsheet contain 'DOE' as text within them? Thanks!

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Search for Text and Return Cell Location

    to find which cells contains DOE you could use CTRL + H (find and replace) and typ DOE.

    in this case you will only use find (and not replace).
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Search for Text and Return Cell Location

    Olives,
    It could be done by a code. Please attach a sample.

  4. #4
    Registered User
    Join Date
    02-10-2013
    Location
    PR
    MS-Off Ver
    Excel 2003
    Posts
    93

    Re: Search for Text and Return Cell Location

    Quote Originally Posted by oeldere View Post
    ... you could use CTRL + H ...
    Thanks!


    Quote Originally Posted by AB33 View Post
    ... Please attach a sample....
    Thanks, AB33... I have attached a simple spreadsheet with an example. Let me know if you need me to clarify anything! Appreciate it!

    example - names.xls

  5. #5
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Search for Text and Return Cell Location

    write at M1 (array formula)
    {=ADDRESS(MOD(SMALL(IF(RIGHT($A$1:$K$33,LEN($L1))=$L1,COLUMN(A$1:K$33)*10000+(ROW((A$1:K$33)))),COLUMNS($A:A)),10000),TRUNC(SMALL(IF(RIGHT($A$1:$J$33,LEN($L1))=$L1,COLUMN($A$1:$J$33)*10000+(ROW(($A$1:$J$33)))),COLUMNS($A:A))/10000),4)}

    copy to right

  6. #6
    Registered User
    Join Date
    02-10-2013
    Location
    PR
    MS-Off Ver
    Excel 2003
    Posts
    93

    Re: Search for Text and Return Cell Location

    Quote Originally Posted by Ghozi Alkatiri View Post
    write at M1...
    That is so cool! It works beautifully! So I just paste it untiL I get an error message meaning there are no more occurences, right? And the range I'm looking at is $A$1:$J$33, so if I expand the range, I just have to replace $A$1:$J$33 with the appropriate range, right? Thanks!
    Last edited by olives; 06-18-2013 at 01:28 AM.

+ 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