+ Reply to Thread
Results 1 to 6 of 6

Sparklines - Creating Summary and want to source sparkline data from another table

  1. #1
    Registered User
    Join Date
    04-24-2008
    Posts
    85

    Sparklines - Creating Summary and want to source sparkline data from another table

    Hi -
    I am creating a summary table that has "top ten accounts" and I'd like to include a sparkline. I have a pivot table in another worksheet that has the data for 1000 accounts and it's formatted for use in the sparkline.
    When I do this manually for one-off situations, this works fine, but I'd like to expand this and it'd be a hassle to do manually.

    Question is:
    - How can I embed a vlookup in my sparkline data formula so that it knows which row to get from the data table - I can't seem to get formulas to be accepted in the sparkline data entry field.


    One thing I tried that didn't work - created sparklines on the pivot data tab for all accounts, and then vlookup on my top10 to bring back the sparkline... however, this returned a value of 0.
    Any help is appreciated.

    Thanks
    Last edited by AdamParker; 09-08-2016 at 08:47 AM. Reason: Solved

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2006
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 2016
    Posts
    1,075

    Re: Sparklines - Creating Summary and want to source sparkline data from another table

    Please attach a sample of your workbook. This will make is much easier to find a solution without having to re-create your data. Remember to remove/replace sensitive data before uploading the file.
    Trish in Oz
    -------------
    A problem well defined is a puzzle half solved


    If you attach a sample of your workbook it will be easier to find a solution. Remember to remove/replace sensitive data before uploading the file. Look here if you need help with attachments:
    http://www.excelforum.com/faq.php?fa...b3_attachments

  3. #3
    Registered User
    Join Date
    04-24-2008
    Posts
    85

    Re: Sparklines - Creating Summary and want to source sparkline data from another table

    Thanks tuph, example is now attached.
    Attached Files Attached Files

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Sparklines - Creating Summary and want to source sparkline data from another table

    Hi,

    Although it is true that you cannot use formulas for the sparkline data, you can use a defined name and that defined name can use a formula as long as it returns a range.

    The required steps would be:
    • select cell E8 on the Summary sheet
    • define a new name called SparkData using the following formula: =INDEX(PIVOT!$B:$F,MATCH(SUMMARY!$B8,PIVOT!$A:$A,0),0)
    • create a sparkline for cell E8 using =SparkData as the source data.
    • Copy E8 down your list. (You cannot unfortunately apply the sparklines to multiple cells directly)
    Attached Files Attached Files
    Last edited by xlnitwit; 09-08-2016 at 03:18 AM.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  5. #5
    Registered User
    Join Date
    04-24-2008
    Posts
    85

    Re: Sparklines - Creating Summary and want to source sparkline data from another table

    Worked like a charm. Thanks for your help!

  6. #6
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Sparklines - Creating Summary and want to source sparkline data from another table

    You're welcome. Thank you for the reputation.

+ 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. Sparklines source data updation
    By forquaidian in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-11-2016, 07:22 AM
  2. Replies: 3
    Last Post: 07-17-2014, 07:43 PM
  3. creating a sparkline using VBA
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-18-2014, 05:10 AM
  4. [SOLVED] Summary table updated from source table. Source table held in a different workbook
    By dma1976 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 11-22-2013, 11:36 AM
  5. Efficient way of creating summary table from input data file
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-28-2013, 06:40 AM
  6. [SOLVED] Modify Sparkline to Change Source Data
    By daffodil11 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-25-2013, 04:20 PM
  7. [SOLVED] Creating a summary list from source data - can you??
    By Marty in forum Excel General
    Replies: 1
    Last Post: 09-16-2005, 12:05 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