+ Reply to Thread
Results 1 to 4 of 4

Dynamically Graphing using Offset leading to odd behavior

  1. #1
    Registered User
    Join Date
    01-13-2016
    Location
    Columbus, Ohio
    MS-Off Ver
    2010
    Posts
    1

    Lightbulb Dynamically Graphing using Offset leading to odd behavior

    I am using OFFSET to Dynamically graph data based on Pivot Table Slicer Selections. When I graph the data where the returned value is not equal to "". I have one chart that will graph the 'in between' date ranges even though they are not in the charting area. This first graph uses the offset function.

    A second graph graphs uses the off set function as well except the difference is the second graph graphs one extra row. As you can see in the attached excel this changes the format of the graphs.

    One graph graphs the seemingly non existent months while the other graph skips over the missing months and adds a space at the end. Even though they are both graphing the same exact data.

    Can any explain why the first graph graphs the gaps and why graphing an extra row will remove these gaps?

    Also, any fixes to this so it works correctly? (no gaps at all)
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Dynamically Graphing using Offset leading to odd behavior

    I can't duplicate the issue in 2013. I would ask that you check the properties of the X-axis. A date type axis will try to fill in the blanks. A text type axis will only show what's selected.

  3. #3
    Registered User
    Join Date
    02-19-2011
    Location
    Cairo
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: Dynamically Graphing using Offset leading to odd behavior

    Hi,
    it's much better if you build graph based on pivot table directly without Offset formula,
    attached is a sample, hope it fits your needs,
    WellousGraphing Problem.xlsm

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Dynamically Graphing using Offset leading to odd behavior

    On the top chart, selecting an Axis type as text will solve the issue.

    For the bottom chart, the SUMPRODUCT was yielding one too many rows for FbAxis2. Drop the +1 so it reads:
    =OFFSET(Sheet1!$B$48,,,SUMPRODUCT(--(LEN(Sheet1!$B$48:$B$56)>Sheet1!$A$47)),1)

    For the other metrics, you do not have to do the calculations all over again. You can define these ranges relative to a predefined range, in this case, FbAxis2. For example for Likes2 =OFFSET(FbAxis2,0,1)
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ 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. Replies: 0
    Last Post: 06-22-2014, 04:18 PM
  2. [SOLVED] Behavior of Offset function in an array formula
    By mohd9876 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-05-2012, 07:40 AM
  3. Replies: 2
    Last Post: 08-09-2012, 09:16 AM
  4. function similar to offset to offset the offset
    By Jerseynjphillypa in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-03-2012, 03:07 PM
  5. Linking dynamically allocated row offset to stacked column chart data range variable
    By amanagarwal in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-05-2011, 02:25 PM
  6. Graphing dynamically using Excel
    By controlfreak in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 06-03-2009, 09:34 AM
  7. Using offset within a formula dynamically
    By S Davis in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-28-2006, 10:15 AM

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