+ Reply to Thread
Results 1 to 9 of 9

Find Value Anywhere in another worksheet

  1. #1
    Registered User
    Join Date
    02-21-2014
    Location
    Trinidad
    MS-Off Ver
    Excel 2003
    Posts
    13

    Find Value Anywhere in another worksheet

    Hello,

    I am looking to find a value from one column e.g. 'Jim Horton' in Column A in worksheet 1 and look to see if that value 'Jim Horton' exists anywhere in several columns say Column A,B,C,D,E,F etc in worksheet 2. Where a value exist i want the values highlighted or placed in another column in Worksheet 1.

    Can you please assist?

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Find Value Anywhere in another worksheet

    What version of Excel does this have to work in?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    02-21-2014
    Location
    Trinidad
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Find Value Anywhere in another worksheet

    Either Excel 2007 or Excel 2016

  4. #4
    Registered User
    Join Date
    02-21-2014
    Location
    Trinidad
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Find Value Anywhere in another worksheet

    Quote Originally Posted by Tony Valko View Post
    What version of Excel does this have to work in?
    Either Excel 2007 or Excel 2016

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Find Value Anywhere in another worksheet

    Try this...

    Sheet2
    A
    B
    C
    D
    1
    2
    Data
    Data
    Data
    Data
    3
    Data
    Data
    Data
    Data
    4
    Data
    Data
    Data
    Data
    5
    Data
    Data
    Data
    Data
    6
    Data
    Name1
    Data
    Data
    7
    Data
    Data
    Data
    Data
    8
    Data
    Data
    Data
    Data
    9
    Data
    Data
    Data
    Name5
    10
    Name7
    Data
    Data
    Data


    Sheet1
    A
    B
    1
    2
    Name1
    Name1
    3
    Name2
    Name5
    4
    Name3
    Name7
    5
    Name4
    6
    Name5
    7
    Name6
    8
    Name7
    9
    Name8
    10
    Name9


    This array formula** entered in B2:

    =IFERROR(INDEX(A:A,SMALL(IF(COUNTIF(Sheet2!A:D,A$2:A$10),ROW(A$2:A$10)),ROWS(B$2:B2))),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down until you get blanks.

  6. #6
    Registered User
    Join Date
    02-21-2014
    Location
    Trinidad
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Find Value Anywhere in another worksheet

    Quote Originally Posted by Tony Valko View Post
    Try this...

    Sheet2
    A
    B
    C
    D
    1
    2
    Data
    Data
    Data
    Data
    3
    Data
    Data
    Data
    Data
    4
    Data
    Data
    Data
    Data
    5
    Data
    Data
    Data
    Data
    6
    Data
    Name1
    Data
    Data
    7
    Data
    Data
    Data
    Data
    8
    Data
    Data
    Data
    Data
    9
    Data
    Data
    Data
    Name5
    10
    Name7
    Data
    Data
    Data


    Sheet1
    A
    B
    1
    2
    Name1
    Name1
    3
    Name2
    Name5
    4
    Name3
    Name7
    5
    Name4
    6
    Name5
    7
    Name6
    8
    Name7
    9
    Name8
    10
    Name9


    This array formula** entered in B2:

    =IFERROR(INDEX(A:A,SMALL(IF(COUNTIF(Sheet2!A:D,A$2:A$10),ROW(A$2:A$10)),ROWS(B$2:B2))),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down until you get blanks.
    Thank You very much it worked....i am trying to understand it though...will do some research as well...but can u explain also...
    This was the initial thing so i may need to do some modifications.

    There may be modifications of how the data may appear in the sheets...eg. sheet1 may have the whole name but sheet2 may have the whole name split into separate columns e.G. first, second, last which may increase according to the number of names (the only option i see though is doing a concatenation in sheet 2 to aid with this...but do u suggest any other method that may seem more 'automatic' and can be included in the existing function...

    It would be great if u can also direct me to great links to help me in understanding and mastering excel formulas...

    Thanks so much for your speedy response

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Find Value Anywhere in another worksheet

    Quote Originally Posted by roxsingh View Post
    There may be modifications of how the data may appear in the sheets...eg. sheet1 may have the whole name but sheet2 may have the whole name split into separate columns e.G. first, second, last which may increase according to the number of names (the only option i see though is doing a concatenation in sheet 2 to aid with this
    Yes, that sounds like your best option.

    It would be great if u can also direct me to great links to help me in understanding and mastering excel formulas...
    I think your best opportunity to learn more about Excel is to "hangout" in forums like this one. Read the posts and study the solutions. Do lots of experimentation. You'll learn a lot by trial and error.

  8. #8
    Registered User
    Join Date
    02-21-2014
    Location
    Trinidad
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Find Value Anywhere in another worksheet

    Quote Originally Posted by Tony Valko View Post
    Yes, that sounds like your best option.


    I think your best opportunity to learn more about Excel is to "hangout" in forums like this one. Read the posts and study the solutions. Do lots of experimentation. You'll learn a lot by trial and error.
    Thanks much 'Tony Valco'

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Find Value Anywhere in another worksheet

    You're welcome!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro to Find/Replace from one worksheet to another worksheet
    By kingsdime29x in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-21-2015, 12:38 PM
  2. Import worksheet and remove old worksheet references with find and replace
    By shawnvon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-11-2015, 12:25 PM
  3. [SOLVED] Loop to find data in a worksheet and copy into a different worksheet.
    By emily_k8_lewis in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-29-2013, 06:44 AM
  4. how to find data from other worksheet and display on other worksheet.....
    By krunal.pa in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 10-13-2013, 02:49 PM
  5. [SOLVED] Find and copy to other worksheet if not find something else.
    By jnh0 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-13-2013, 12:25 AM
  6. Excel VBA find newest worksheet based on date/time stamp in worksheet name?
    By takchin.tc in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-27-2012, 03:56 PM
  7. Find worksheet by worksheet number
    By iekielinea in forum Excel General
    Replies: 3
    Last Post: 07-28-2011, 05:03 PM

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