+ Reply to Thread
Results 1 to 2 of 2

How to import data from another worksheet

  1. #1
    Registered User
    Join Date
    04-28-2010
    Location
    Endicott, NY
    MS-Off Ver
    Excel 2003
    Posts
    1

    Smile How to import data from another worksheet

    I have a workbook that has many sheets that are the same format but with differing data. I'm trying to have one worksheet where I bring various pieces of data (single cells) from the other worksheets and sum like data for ease of use and viewing.
    What I'm trying to do is develop a way to get to a cell in another worksheet and import it to a cell in my active worksheet using a variable that is contained in another cell in the active worksheet as part of the formula. This sounds like it would be easy but as of now I haven't been able to figure out a way to do it.. Basically what I would like to do 'if it worked' is take the formula mysheet2!$b$5 and replace mysheet with the value in a cell. Say the cell a1 in my active worksheet contained 'mysheet2'. In effect what I would like to do is a1!$b$2 but obviously this doesn't work. Any suggestions??
    Last edited by dsutherland; 04-28-2010 at 05:34 PM.

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

    Re: Would like to use a variable in a formula

    Try indirect function,

    =Indirect("'"&A1&"'!B2")
    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.

+ 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