+ Reply to Thread
Results 1 to 14 of 14

Creating a dashboard which aggregates data from separate worksheets using dropdown list

  1. #1
    Registered User
    Join Date
    09-20-2016
    Location
    Worcester, UK
    MS-Off Ver
    2010
    Posts
    49

    Creating a dashboard which aggregates data from separate worksheets using dropdown list

    Hello,

    Please see the attached example.

    As you can see I will have a worksheet for suppliers data for each FY.

    I would like for the dashboard (Tab 1) to draw the information from the four separate worksheets in the same workbook.

    For example I would like there to be a dropdown list in the dashboard where I can select the supplier and it will aggregate the information from the separate FY worksheets and create a table which looks like the table in the dashboard worksheet.

    Thank you in advance for any help!
    Alex
    Last edited by AlexNorman100; 01-02-2017 at 01:53 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Creating a dashboard which aggregates data from separate worksheets using dropdown lis

    It would help if you put some (made-up) data in those sheets, which is representative of the type of values that you have in your real file.

    Pete

  3. #3
    Registered User
    Join Date
    09-20-2016
    Location
    Worcester, UK
    MS-Off Ver
    2010
    Posts
    49

    Re: Creating a dashboard which aggregates data from separate worksheets using dropdown lis

    No problem Pete will add those now and edit the post with a new attachment. It will be within the 100,000s and 1,000,000s

    Alex

    New Attachment attached Pete
    Last edited by AlexNorman100; 01-02-2017 at 01:50 PM.

  4. #4
    Registered User
    Join Date
    09-20-2016
    Location
    Worcester, UK
    MS-Off Ver
    2010
    Posts
    49

    Re: Creating a dashboard which aggregates data from separate worksheets using dropdown lis

    Hi Pete = I have edited to excel file and added it to my previous comment

    Thanks,
    Alex

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Creating a dashboard which aggregates data from separate worksheets using dropdown lis

    Maybe this will help you out.
    Enter this formula on the Dashboard C4 and copy across and down. Format the cells according to the values.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Change the / in Dashboard!C3:F3 to a - to match the worksheet names.
    I added a worksheet with the list of providers, and defined a name for the list using this formula in the defined names.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I added an error trap that would return a blank if the provider is not on a worksheet. The order of the data columns and rows on any of the worksheets is not important.
    Last edited by newdoverman; 01-02-2017 at 04:53 PM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Creating a dashboard which aggregates data from separate worksheets using dropdown lis

    I have set this up in the attached file for you.

    I have listed the providers in column M of the Dashboard sheet, and this drives the drop-down in cell B2. I've also changed the order of the providers in each of the subsidiary sheets, to show you that the data does not need to be in the same sequence (though it might be useful for you if it is). I've changed the headings in cells C3:F3 to match the names of the sheets.

    Then I put this formula in C4:

    =IFERROR(INDEX(INDIRECT("'"&C$3&"'!B:K"),MATCH($B$2,INDIRECT("'"&C$3&"'!a:a"),0),ROWS($1:1)),"")

    and this can be copied across and down as required. Note that you need to apply a percentage format to rows 8 to 12, and a number format to row 13. Then you can just change the provider in cell B2 and the display will change accordingly. Note that I removed Provider D from the 12/13 sheet (for a bit more variety).

    Hope this helps.

    Pete

  7. #7
    Registered User
    Join Date
    09-20-2016
    Location
    Worcester, UK
    MS-Off Ver
    2010
    Posts
    49

    Re: Creating a dashboard which aggregates data from separate worksheets using dropdown lis

    Hi Both, many thanks for your replies, works perfectly, i'll add some rep.

    Now I'm a little confused by the formula, I've edited the spreadsheet with additional columns in each FY so more information needs to be pulled to the dashboard.

    When selecting the Provider on the dashboard I would like for the Vendor number, the Type, the Spend with that provider and the percentage that spend is of revenue (I've highlighted these yellow on both the dashboard and FY worksheets.

    Can you please explain to me how I will edit the formula so that this data will show when selecting a provider from the dropdown? I've been trying to work this out by looking at the formula and manipulating through trial and error but can't work it out! Adding these columns has messed up the previous formula so I would love to know how to edit the formula so I can add columns as and when I like

    Big thanks!!
    Alex
    Attached Files Attached Files

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Creating a dashboard which aggregates data from separate worksheets using dropdown lis

    Maybe this will help you. I put the vendor number and type in the row under the titles. I understood B16 and 17 to be separate entries and the formulae are different. Note the Array Formula in B16.
    Attached Files Attached Files

  9. #9
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Creating a dashboard which aggregates data from separate worksheets using dropdown lis

    As you may have some providers missing from some of the sheets, it would make sense to record the Vendor_Number and Type in the table in the Dashboard sheet, so put the vendor numbers in column N and the Type in column O and then you can use this formula in cell C2:

    =IFERROR(VLOOKUP($B2,$M:$O,COLUMNS($B:C),0),"")

    You can copy this into D2 to get the appropriate Type. You can, of course, put this vendor table in a separate sheet as newdoverman (Ron) had done.

    I've moved the categories down one row in column B so that you have room to record the Revenue, and then put this formula in C5:

    =IFERROR(INDEX(INDIRECT("'"&C$4&"'!E:N"),MATCH($B$2,INDIRECT("'"&C$4&"'!a:a"),0),ROWS($1:1)),"")

    I've coloured the following terms which have changed slightly from the previous formula:

    C$4 - this is the sheet name, which is now in row 4 rather than row 3

    E:N - this is the range of columns in the individual sheets where you want to get the data from

    This formula can be copied across and down as before, making appropriate changes to the formatting for percentages and numbers.

    Finally, you can use this formula in cell C16:

    =IFERROR(INDEX(INDIRECT("'"&C$4&"'!D:D"),MATCH($B$2,INDIRECT("'"&C$4&"'!a:a"),0)),"")

    Note that you want to get the data from column D (green), and because it is only one column you don't need the ROWS(...) term. You can use this formula in C17:

    =IFERROR(C16/C5,"")

    to get the percentage, and then copy these two formulae across.

    Hope this helps.

    Pete

  10. #10
    Registered User
    Join Date
    09-20-2016
    Location
    Worcester, UK
    MS-Off Ver
    2010
    Posts
    49

    Re: Creating a dashboard which aggregates data from separate worksheets using dropdown lis

    Thank you both - very well explained and achieves what I want.

    I will need to add providers so what do I do if I want to add another provider, say provider H to the drop down list which does the same and looks for the data in the other worksheets?

    Alex

  11. #11
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Creating a dashboard which aggregates data from separate worksheets using dropdown lis

    The new worksheet that I uploaded has a worksheet for Providers. This listing is dynamic in the Data Validation. All you have to do is to add entries to the listing and they will appear in the dropdown list. No further amendment is necessary to have the data for the new providers show in the dashboard.

  12. #12
    Registered User
    Join Date
    09-20-2016
    Location
    Worcester, UK
    MS-Off Ver
    2010
    Posts
    49

    Re: Creating a dashboard which aggregates data from separate worksheets using dropdown lis

    LEGENDS! Thanks for the help guys - going to work through this from start to finish so I can learn it.

  13. #13
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Creating a dashboard which aggregates data from separate worksheets using dropdown lis

    I haven't used a dynamic range for Providers, so you would need to amend the "Refers To" box for that name using Name Manager if you add any new providers to the table.

    Thanks for the rep - if that takes care of your original question, please take a moment to select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Pete

    EDIT: Ah, I see that you have done now.

  14. #14
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Creating a dashboard which aggregates data from separate worksheets using dropdown lis

    Thank you for the feedback and for the rep. As you can see, there are similarities and differences between what Pete and I gave you. The two methods have the same results through slightly different methods. This is typical of Excel in that there is more than one way of doing things.

    I misinformed you about the dynamic providers listing. It isn't accomplished in the Data Validation, it is done through using OFFSET in the defined name. The formula used for the defined name is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Creating Multiple Worksheets from a Template and Separate Data Set
    By Quenlil in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-04-2014, 04:49 PM
  2. [SOLVED] Dropdown box in dashboard to sort and pull certain cell data from another worksheet
    By junijl in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-11-2013, 09:22 AM
  3. Replies: 7
    Last Post: 06-12-2013, 07:09 PM
  4. Creating a Dashboard using multiple worksheets
    By Sweetsting in forum Excel General
    Replies: 4
    Last Post: 02-07-2013, 03:56 PM
  5. creating separate worksheets
    By tariq1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-23-2010, 11:14 AM
  6. Replies: 2
    Last Post: 06-14-2010, 03:34 PM
  7. Creating List of Data from Multiple Worksheets
    By narrowgate88 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-18-2009, 09:37 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