+ Reply to Thread
Results 1 to 9 of 9

Collate data from other sheets by list selection

  1. #1
    Registered User
    Join Date
    11-12-2017
    Location
    Stafford, England
    MS-Off Ver
    365
    Posts
    184

    Collate data from other sheets by list selection

    Hi,

    Attached is a thinned out version of the actually document I am working with, names of sheets have been changed so I will need to change them back later. My knowledge around this query is limited so please be patient as I may have further questions later and I'm not sure this is even possible.

    VBA CAN'T be used as this will be a shared doc using the web version of Excel

    This is what I'm looking to achieve:

    Users will manually enter data on their specific sheets relative to store number, they will fill out just 6 columns;
    Hours Actual; Hours Target; Contract Actual; Contract Actual; Outs Training; Outs Others. No calculations nor collation on these sheets

    On the Master(first) sheet I need to be able to select a week number from a drop down list in say B3 which will correspond with the week number on each store sheet and return the corresponding data, so;

    If on (Master:B3) selected was week 1 this would return data on Master sheet as follows.
    Sheet (Store 1) D11:I11 would fill in C7:F7 & M7:N7
    Sheet (Store 2) D11:I11 would fill in C8:F8 & M8:N8
    etc...

    If on (Master:B3) selected was week 7 this would return data on Master sheet as follows.
    Sheet (Store 1) D17:I17 would fill in C7:F7 & M7:N7
    Sheet (Store 2) D17:I17 would fill in C8:F8 & M8:N8
    etc...

    Does that make sense?
    I just would like to collate the data from sheets Store 1:Store 17 on the Master sheets relative to week selected

    There is no data in the store sheets so just fill in with anything to show a working version if this is at all possible.

    As I say it can't be done with VBA which I know could fix this but I think maybe INDEX; MATCH; VLOOKUP or something could get this working, maybe I need a unique list for data validation or something?

    Hopefully someone can help and this is workable.

    Thanks in advance
    Tez
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,366

    Re: Collate data from other sheets by list selection

    Thing is, YOU need to fill in some sample data AND expected results in your file. Don't expect us to generate data and then hope that we've transcribed it correctly. That just leads to a lot of guesswork and a very long thread.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Collate data from other sheets by list selection

    Maybe try at

    C7:C23
    =SUM(INDIRECT("'"&$B7&"'!R7C[1]:R58C[1]",))

    M7:N23
    =SUM(INDIRECT("'"&$B7&"'!R7C[-5]:R58C[-5]",))
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-12-2017
    Location
    Stafford, England
    MS-Off Ver
    365
    Posts
    184

    Re: Collate data from other sheets by list selection

    Thanks guys,

    Bo_Ry, not sure how that works with selecting a week number on Master sheet B3

    I have attached another example, looking at just stores 1&2, if in list Master B3 week number 7 is selected then:

    Master sheet would show for store 1
    C7:F7 210 220 230 240 M7:N7 60 55

    If week 20 selected then
    C7:F7 340 350 360 370 M7:N7 125 120

    For store 2
    C8:F8 220 230 240 250 M8:N8 65 60

    If week 20 selected then
    C8:F8 350 360 370 380 M8:N8 130 125

    And so on if that makes sense. But this needs to be for all stores
    Attached Files Attached Files

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,366

    Re: Collate data from other sheets by list selection

    And so it begins …

    Looks like Bo_Ry has given you a formula that sums all the weeks for a given store.

    I'm looking at this on an iPad and, when I try to click on B3, I’m told there's an ActiveX control there (and that's not supported on this version of Excel.

    I suspect you just need to make Bo_Ry's formula into a SUMIF or maybe just an INDEX/MATCH.

    Like I said, if you fill in your expected results, we know what we're aiming for … not guessing.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,148

    Re: Collate data from other sheets by list selection

    In C7

    =SUMIF(INDIRECT("'" &$B7& "'!C7:C58"),$B$3,INDIRECT("'" &$B7& "'!D7:D58"))

    Change bold to appropriate columns E,F,G,H,i)

    Foe B3: use Data Vallidation >> LIst
    Attached Files Attached Files
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  7. #7
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Collate data from other sheets by list selection

    Try

    C7:C23
    =INDIRECT("'"&$B7&"'!R"&MOD(RIGHT($B$3,2)-49,52)+7&"C[1]",)

    M7:N23
    =INDIRECT("'"&$B7&"'!R"&MOD(RIGHT($B$3,2)-49,52)+7&"C[-5]",)
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    11-12-2017
    Location
    Stafford, England
    MS-Off Ver
    365
    Posts
    184

    Re: Collate data from other sheets by list selection

    @JohnTopley & @Bo_Ry

    Both seem to work exactly as I needed but I'm at work right now so will check properly later

    And no "guessing" needed.

    As my OP said, I have limited knowledge so you have been very helpful.

    Once checked later I will mark as solved if all is good

    Again thanks

  9. #9
    Registered User
    Join Date
    11-12-2017
    Location
    Stafford, England
    MS-Off Ver
    365
    Posts
    184

    Re: Collate data from other sheets by list selection

    Now live on working document and works as needed. Managed to work out how to amend slightly as document changed in design.

    @JohnTopley @Bo_Ry thanks so much for your help

    For future users looking back, this is all about collating data from multiple sheets to one master sheet based on list selection on master sheet. Works on desktop version and web version

    [SOLVED]

+ 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. Collate data from table into one list - GOOGLE SHEETS
    By slock92 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 01-29-2019, 06:35 AM
  2. How to collate data from three sheets
    By Sanjibghosh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-07-2017, 08:07 AM
  3. [SOLVED] Returning data across multiple sheets based on drop down list selection
    By rooboyz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-29-2014, 02:41 AM
  4. Collate a list of unique items only from multiple sheets into specific categories
    By Boyler_Room in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-28-2013, 08:05 PM
  5. [SOLVED] How do I collate data from 36 sheets into a summary sheet?
    By sindora in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-01-2012, 08:21 AM
  6. Collate data from multiple sheets
    By garyi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-03-2011, 10:46 AM
  7. Exclamation Collate data from varying number of sheets to one sheet
    By munkee in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-28-2009, 06:07 PM

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