Results 1 to 4 of 4

Sparklines with dynamic (named) range not working

Threaded View

  1. #1
    Registered User
    Join Date
    03-20-2022
    Location
    Florida
    MS-Off Ver
    365
    Posts
    3

    Unhappy Sparklines with dynamic (named) range not working

    Hello,

    I'm trying to create a sparkline that references a single column of about 50 rows. Ideally, I'd like the x-axis to scale based on new data that are entered vertically.

    The data are going to be in B3:B52 (50 cells in all). Right now, there are only 20 datapoints entered as an example (B3:B26) and there are some blanks within that range, intentionally.

    -

    I've used the below formula in the name manager and set the sparkline's source to that named range, but it still produces a sparkline that is sourcing all the empty cells (B3:B52 instead of B3:B26) that don't have data in them just yet.
    =OFFSET($S$2,1,0,COUNTIF($S$3:$S$52,"<>"""))
    -

    Then, I tried the below formula, expecting that it would increase in height as more data were added. Instead, the offset range is still static (D3:D52 instead of D3:D26) and there's no sparkline shown in the target cell.
    =IF(OFFSET($D$2,1,0,COUNTIF($D$3:$D$52,"<>0"))=0,"",OFFSET($D$2,1,0,COUNTIF($D$3:$D$52,"<>0")))
    -

    Maybe the sparkline isn't showing because the named range is producing an error?

    The example workbook is attached. The first dataset is the more complex formula and the second dataset is the one that kind of works but doesn't scale the x-axis.
    Attached Files Attached Files
    Last edited by fexofenadine; 03-20-2022 at 01:30 AM.

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 Named Range Not Working Quite Right
    By Tamarissa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-20-2020, 05:44 PM
  3. [SOLVED] Dynamic Named Range for Graph Not Working
    By tylercruz in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 10-06-2017, 12:11 PM
  4. Replies: 0
    Last Post: 03-08-2016, 02:25 PM
  5. [SOLVED] Dynamic Named Range not working as expected
    By Leonthefixer in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 06-03-2015, 07:42 AM
  6. [SOLVED] Dynamic Sparklines
    By Salvucio in forum Excel General
    Replies: 8
    Last Post: 01-14-2015, 10:15 AM
  7. Named ranges-Should I use a dynamic named range
    By foseco in forum Excel General
    Replies: 4
    Last Post: 06-11-2009, 03:56 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