+ Reply to Thread
Results 1 to 8 of 8

Creation of Dynamic Sparklines

  1. #1
    Registered User
    Join Date
    05-27-2016
    Location
    Zurich
    MS-Off Ver
    Office 2016
    Posts
    61

    Question Creation of Dynamic Sparklines

    Hi dearest Excel Wizards ,

    I am trying to create a report where I would like to have dynamic Sparklines and dynamic data in it.

    Essentially I would like to automate as much as possible so that when I enter new data and refresh the formulas (in case the file is too big with auto refresh) the report will essentially generate itself.

    For the sparklines I would like to have the last 12 weeks and for the data the last weeks. I have tried working with the offset formula but for some reason it constantly breaks

    Attached a sample set of my data & report.

    Can anyone help me how to set up the offset formula so that it works? Thanks a lot in advance!!!
    Attached Files Attached Files

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,480

    Re: Creation of Dynamic Sparklines

    create a named range, and use that as your data source.

    Not sure why there is empty rows at the top of your data so this goes from the start of the values.

    =OFFSET('Sourcedata total'!$D$15,COUNT('Sourcedata total'!$D$15:$D$54)-12,0,12,1)
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    05-27-2016
    Location
    Zurich
    MS-Off Ver
    Office 2016
    Posts
    61

    Re: Creation of Dynamic Sparklines

    Quote Originally Posted by Andy Pope View Post
    create a named range, and use that as your data source.

    Not sure why there is empty rows at the top of your data so this goes from the start of the values.

    =OFFSET('Sourcedata total'!$D$15,COUNT('Sourcedata total'!$D$15:$D$54)-12,0,12,1)

    Thanks andy! i had the empty rows at the top for titles. But changed that so it works now. I have two more questions for you though:

    - how do you automatically just pick the latest number in a column?
    - And secondly, how do can you do the weeks i.e. i'd like the Dashboard to take automatically the second last week with data so i can have the 'vs week XY' automated as well... any tips theere too?

    Cheers,
    Dlinen

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,480

    Re: Creation of Dynamic Sparklines

    The latest number would be offset by the count of the data and only 1 cell big. So use similar formula but remove the 12 references.

    Alter the 12 to be 2 or however many weeks you need.

  5. #5
    Registered User
    Join Date
    05-27-2016
    Location
    Zurich
    MS-Off Ver
    Office 2016
    Posts
    61

    Re: Creation of Dynamic Sparklines

    I created a name for each sparkline with a formula like this for example: =OFFSET('Sourcedata Total'!$W$2;COUNTA('Sourcedata Total'!$W2:$W53)-12;0;12)
    Now i have the issue that it randomly changes this formula when i continue to add data... i.e. to this: =OFFSET('Sourcedata Total'!$W$2;COUNTA('Sourcedata Total'!$W1048558:$W33)-12;0;12)

    there is no logic behind in my opinion... any idea what that is?

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,480

    Re: Creation of Dynamic Sparklines

    That is what happend when you use relative references in conditional formatting.

    You need to prefix the row numbers with $

  7. #7
    Registered User
    Join Date
    05-27-2016
    Location
    Zurich
    MS-Off Ver
    Office 2016
    Posts
    61

    Re: Creation of Dynamic Sparklines

    Thanks!!! got it!

  8. #8
    Registered User
    Join Date
    05-27-2016
    Location
    Zurich
    MS-Off Ver
    Office 2016
    Posts
    61

    Re: Creation of Dynamic Sparklines

    Andy, you are a lifesaver by the way... i was about to go mad

+ 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. [SOLVED] dynamic cell range for sparklines
    By coffee_man in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-10-2023, 05:28 AM
  2. [SOLVED] Dynamic Sparklines
    By Salvucio in forum Excel General
    Replies: 8
    Last Post: 01-14-2015, 10:15 AM
  3. Dynamic Box Creation
    By Tayjayt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-10-2013, 04:03 AM
  4. Dynamic URL creation
    By atheo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-23-2010, 11:50 PM
  5. dynamic list box creation
    By mpgutta in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-27-2008, 06:33 AM
  6. Dynamic Range Creation
    By dgtvr in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-30-2008, 08:43 AM
  7. Dynamic Row Creation
    By mwagon73 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-22-2007, 12:16 PM

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