+ Reply to Thread
Results 1 to 9 of 9

Retrieve Data from other sheets using dropdown list.

  1. #1
    Registered User
    Join Date
    04-09-2009
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2010
    Posts
    25

    Retrieve Data from other sheets using dropdown list.

    Hi everyone,

    I am looking a solution for retrieving data from other sheet using the dropdown list.
    I had attached sample worksheet.

    Selector tab needs the solution.

    For Cell A1 need to have dropdown menu - and the data must be the tabs name
    for example: Offer1, Offer 2, Offer 3...

    when selecting offer 1 need to display at Column C the data located at tab Offer 1. Same also when selecting the offer 2 and offer 3 (dropdown list.)

    thanks for the help.
    Attached Files Attached Files
    Last edited by lemuel; 06-15-2011 at 10:12 AM.

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

    Re: Retrieve Data from other sheets using dropdown list.

    First make a list of all your sheetnames in one column, then select the column and type the work TabNames in the Name Box which is to the left of the Formula Bar at the top.

    Then go to cell A1, then to Data|Validation and choose List... then enter in the source field: =TabNames

    Then in B4 enter formula:

    =INDIRECT("'"&$A$2&"'!B"&ROW(B2))

    copied down.
    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.

  3. #3
    Registered User
    Join Date
    04-09-2009
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Retrieve Data from other sheets using dropdown list.

    i can't get how to implement this =INDIRECT("'"&$A$2&"'!B"&ROW(B2)) -- the data to be retrieve is on the other tab?

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

    Re: Retrieve Data from other sheets using dropdown list.

    Did you follow the first part of the instructions?

    See attached.


    Note: I add an error trap to the formula in case A2 is blank.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-09-2009
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Retrieve Data from other sheets using dropdown list.

    Quote Originally Posted by NBVC View Post
    Did you follow the first part of the instructions?

    See attached.


    Note: I add an error trap to the formula in case A2 is blank.
    yes i follow the first instruction but I need to retrieve all data in the row not just the running avg.

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

    Re: Retrieve Data from other sheets using dropdown list.

    Try in B3:

    =IF($A$2="","",INDIRECT("'"&$A$2&"'!"&ADDRESS(ROW(B1),COLUMN(B1))))

    copied down and across,

    you can hide the 0's by formatting cells as custom: 0;-0;;@

  7. #7
    Registered User
    Join Date
    04-09-2009
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Retrieve Data from other sheets using dropdown list.

    thanks, I successfully made it. I'd like to have macro script equivalent for this. how to build it.

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

    Re: Retrieve Data from other sheets using dropdown list.

    Post the question in the Programming forum, specify that you have a formula, but you want a macro... maybe add link to this thread.

    And mark this thread as SOLVED. (see FAQ link in my signature)

  9. #9
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Retrieve Data from other sheets using dropdown list.

    The sheet works very weel is there a way to add a second drop down box so that then 2 conditions return a set of data, IE i have changed the initial drop down box to Period to indicate a period of 4 weeks I then need a second list to say Week so I can select each individual week and display the 7 days of that week.

+ 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