+ Reply to Thread
Results 1 to 3 of 3

Grab a value from a cell in another worksheet based on that worksheet name

  1. #1
    Registered User
    Join Date
    02-28-2012
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2010
    Posts
    4

    Question Grab a value from a cell in another worksheet based on that worksheet name

    I have a table in worksheet 'Units' which has a list of values in a column. I also have a number of worksheets who's names correspond with the values in the table in worksheet 'Units' i mentioned previously. In-fact these worksheets tabs are created and named with me running a macro that reference that table in worksheet 'Units'.

    What I need is to grab a value from a cell in each of those newly created worksheets and populate second column in my worksheet 'Units' next to its corresponding name/value.

    ex:

    In my worksheet 'Units' I have a table in column A, starting on A5. The values are: A1, B1, B1A, B1B, etc. I also have worksheets with the names: A1, B1, B1A, B1B, etc. I need to grab a value from a cell in each of those tabs, same cell in each, and place that value in worksheet 'Units'. The command needs to reference table in worksheet 'Units' and find the matching name worksheet and grab the value from the cell in that worksheet, then place it in worksheet 'Units' next to the appropriate cell.

    Hope this make seance.
    Last edited by Misha322; 02-28-2012 at 07:05 PM.

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Grab a value from a cell in another worksheet based on that worksheet name

    you can use the indirect formula for example if A5 is yoru sheet name and the cell you want on that sheet is A1 use:

    =INDIRECT("'"&A5&"'!A1")
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    Registered User
    Join Date
    02-28-2012
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Grab a value from a cell in another worksheet based on that worksheet name

    Worked great. Thank you!

+ 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