+ Reply to Thread
Results 1 to 4 of 4

Conditionally importing Data from one of several different worksheets based on 1 factor

  1. #1
    Registered User
    Join Date
    09-11-2013
    Location
    Derby
    MS-Off Ver
    Excel 2007
    Posts
    8

    Conditionally importing Data from one of several different worksheets based on 1 factor

    Hello,

    I am currently working on a spreadsheet that records data from 11 different locations, with each location having it's own page within the workbook.
    All of the pages are identical in terms of how the data is stored, the only difference is literally the name of each page (i.e. the location).

    What I would like is to have a master page that then pulls through the relevant data, dependent on which location I choose from a drop down list on this page. As each individual page is identical in terms of lay-out, one formula will work for each page, with the only obvious exception is the page reference embedded in the formula. I know how to do a standard lookup for various figures, but I can't figure out a formula that would work with 11 different options... Is there any way to accomplish this?

    Thanks,
    D

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Conditionally importing Data from one of several different worksheets based on 1 facto

    If each worksheet is the same layout you could use =INDIRECT() formulas but you'd have to copy/paste the formula everywhere.
    Otherwise use VBA.

    Prob best post the workbook.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    09-11-2013
    Location
    Derby
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Conditionally importing Data from one of several different worksheets based on 1 facto

    I've made a mock up of the situation that I have in the attached sheet below. In the attachment there are only 5 locations, but in reality there are actually 11.

    What should happen is when you choose the city from the drop-down list on the master sheet, the relevant data from the appropriate worksheet should then automatically feed through and populate the currently blank table.

    I'm anticipating that VBA will provide a solution, but is there any way to accomplish this without VBA?? (I don't know how well the other people that I'm working with will be able to handle VBA, but all options are welcome, please!!)

    dummy data.xls

    Regards,
    D

  4. #4
    Registered User
    Join Date
    09-08-2014
    Location
    -
    MS-Off Ver
    -
    Posts
    68

    Re: Conditionally importing Data from one of several different worksheets based on 1 facto

    Hi limbago,
    Attached is what I put together quickly. Given that the cells are in the exact same location for all the worksheets, I made use of the ADDRESS function - but hopefully you can see how the indirect function works. If the worksheets were not named exactly as the drop-down list specifies them, you could've used a vlookup.,
    Really, once you get used to INDIRECT, how you apply it is only limited by your creativity in applying it.
    If that doesn't make sense get in touch.
    Thanks,
    Lady Marmalade
    Attached Files Attached Files

+ 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. Replies: 2
    Last Post: 03-29-2014, 03:58 AM
  2. CONDITIONALLY Moving Data Based On Duplicity Check
    By Parijaat in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-22-2013, 06:46 AM
  3. Replies: 4
    Last Post: 11-09-2012, 01:17 PM
  4. Importing data from other worksheets?
    By csongi12xme in forum Excel General
    Replies: 0
    Last Post: 10-28-2012, 01:52 PM
  5. Replies: 4
    Last Post: 04-06-2009, 10:16 AM

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