+ Reply to Thread
Results 1 to 8 of 8

Assistance Required for multi loops selecting data and outputting based on selection.

  1. #1
    Registered User
    Join Date
    08-26-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    5

    Assistance Required for multi loops selecting data and outputting based on selection.

    Hi All,

    I am trying to create a workbook which loops through some data and selects all rows based on a user defined field.

    I understand I need to to multiple loops of the back of the selection but not sure about the syntax.

    Loop 1 Selecting User Defined Field
    Loop 2 Selecting Store related to loop 1
    Loop 3 Selecting Department related to loop 2
    Loop 4 Selecting Product related to loop 3
    Loop 5 Selecting Time Period related to loop 4

    I want this data to output into the Output sheet. I have included a template of what I am hoping to see.

    Any help/advice would be greatly appreciated.

    I have attached the data for your review.

    Thanks again.
    Attached Files Attached Files

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Assistance Required for multi loops selecting data and outputting based on selection.

    Have you considered using a filter?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    08-26-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Assistance Required for multi loops selecting data and outputting based on selection.

    I'm not sure how a filter works.

    I need to automate this process and run it weekly.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Assistance Required for multi loops selecting data and outputting based on selection.

    What is it you actually want to find?

    You've mentioned a user-defined field and another 4 fields.

    I can't quite see how that sits with the workbook.

  5. #5
    Registered User
    Join Date
    08-26-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Assistance Required for multi loops selecting data and outputting based on selection.

    Hi Norie,

    The user defined field is on the selection worksheet. The user selects the region they require.

    Based on the region selection I want all data output by time period in the output worksheet.

    The output should relate to the user defined field and all combination of the store, department and product. Taking the total amount as the measure.

    I hope I explained the example clearly but I really doubt it.

    Thanks for your help :-)

  6. #6
    Registered User
    Join Date
    08-26-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Assistance Required for multi loops selecting data and outputting based on selection.

    The other fields are in the second worksheet, Raw_data.

  7. #7
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Assistance Required for multi loops selecting data and outputting based on selection.

    So would you want all the rows with VIC in the first Region column, Chadstone in the Store column, Mens in the Department column and 1 in the Product column?

    Is that anywhere near?

    Actually, scrap all of that.

    I think maybe a pivot table, see the attached.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    08-26-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Assistance Required for multi loops selecting data and outputting based on selection.

    That looks perfect ....my only issue is that I need to updated the data and have a couple of tables linking together.

    Is that also possible with a pivot table?

+ 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. Selecting data from multiple tabs based on drop down selection
    By ramakrishnavbms in forum Excel General
    Replies: 2
    Last Post: 04-10-2013, 01:47 PM
  2. [SOLVED] Formula Based on Multi-Level Data Validation Selection
    By warrior2411 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-07-2013, 08:34 PM
  3. [SOLVED] Help required on calculating formulas based on a drop down selection
    By cassyleighnz in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-06-2012, 02:37 AM
  4. Multi select Listbox Items selection based on other Listbox item selection.
    By srinivassathi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-20-2011, 05:53 AM
  5. Assistance required for Automatically moving data to another worksheet
    By j.vaughan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-19-2008, 07:40 AM

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