+ Reply to Thread
Results 1 to 4 of 4

Search cell value in all worksheets & return the name of the worksheet where it was found

  1. #1
    Forum Contributor
    Join Date
    08-24-2012
    Location
    Hollidaysburg, Pa
    MS-Off Ver
    Excel 2010
    Posts
    398

    Search cell value in all worksheets & return the name of the worksheet where it was found

    Hello Everyone ,

    I need help with some VBA programming.

    Attached is excel sheet.

    What I have
    1. worksheet "mastersheet" has names of all the people working in a site
    2. individual worksheets are names of project where engineers from mastersheet are working . "project 1" ; "project 2" ; 'company 3" and "project 3" has names from "mastersheet" indicating who is working where


    What I want
    1. To have a code that looks for each engineers name in Range A5:A15 from Mastersheet in each worksheet
    2. retrn the worksheet name onto corresponding cell (range B5 thru B15 in Mastersheet)


    Example...
    • code looks for Adam and returns project 1
    • code looks for hazenstab and returns "not in any project"
    • code looks for ireson and return project 2


    What I am trying (skeleton wise)

    https://stackoverflow.com/questions/...orksheet-excel
    Attached Files Attached Files
    Last edited by subbby; 08-22-2018 at 03:55 PM. Reason: SOLVED

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Search cell value in all worksheets & return the name of the worksheet where it was fo

    Try this:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Search cell value in all worksheets & return the name of the worksheet where it was fo

    You're welcome and thanks for the rep!


    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  4. #4
    Forum Contributor
    Join Date
    08-24-2012
    Location
    Hollidaysburg, Pa
    MS-Off Ver
    Excel 2010
    Posts
    398

    Re: Search cell value in all worksheets & return the name of the worksheet where it was fo

    Quote Originally Posted by xladept View Post
    Try this:
    Thank you very much. it worked . Changed "sheet1" to my worksheets name "mastersheet" and it worked like a charm.

    Thanks for your help.

    added a reputation

+ 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. [SOLVED] Search for multiple words in row and return searched value if found in first cell
    By whomewhy in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 08-02-2018, 05:21 PM
  2. [SOLVED] Search multiple phrases in a cell and return the first phrase found
    By pmeltzers in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-26-2017, 04:07 PM
  3. Search and If found return adjacent cell [Solved]
    By jpullen88 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-29-2016, 03:49 PM
  4. vba code to search all worksheets for a word - if found, return value from A1
    By kday98 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-28-2015, 06:52 PM
  5. [SOLVED] Search for a string within a cell, if found, return value of 1
    By brookenovak in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-07-2013, 07:39 PM
  6. Replies: 4
    Last Post: 05-07-2012, 10:53 PM
  7. Replies: 4
    Last Post: 05-12-2011, 02:25 PM

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