+ Reply to Thread
Results 1 to 4 of 4

auto updating chart using offset function - problem with blank cells

  1. #1
    Registered User
    Join Date
    04-14-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    3

    auto updating chart using offset function - problem with blank cells

    I am using this formula
    =OFFSET((General!$CY$5),COUNT(General!$CY$5:$CY$65536)-1,0,-MIN(Chartlength,COUNT(General!$CY:$CY)))
    chartlength is 12, column CY has formula and sometimes it may give blank cells. The values in CY column are plotted on Y axis.
    When column CY has any value, this dynamic function selects last 12 data point. But when any of the last 12 cells in CY column is blank (nul value due to calculations corresponding to other cells), the above function selects 12 cells but they are off by one cell.

    I tried
    =OFFSET((General!$CY$5),COUNTA(General!$CY$5:$CY$65536)-1,0,-MIN(Chartlength,COUNT(General!$CY:$CY))), but it select 12 datapoint from bottom of the column, and not the last 12.

    For X axis, values are in column B. for it I am using =OFFSET(General!$B$5,COUNT(General!$B$5:$B$65536)-1,0,-MIN(Chartlength,COUNT(General!$B:$B)),1), and it work perfect because I am entering the data as I get. But data in CY column is calculated from values in other column.

    What other function I should use in this case?

  2. #2
    Registered User
    Join Date
    04-14-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    3

    Re: auto updating chart using offset function - problem with blank cells

    To make my question more clear, attached is an excel with the data, now the equation is
    =OFFSET((General!$G$5),COUNT(General!$G$5:$G$65536)-1,0,-MIN(Chartlength,COUNT(General!$G:$G)),1)

    For example, if I delete value in C45, the value in G45 become null due to equation.

    This shifts the line chart for DeltaRate.
    The line chart shows 0 value in G45 even though it is blank.

    How can avoid this shift in data when column G has blank value?
    And leave gap/connect data point with line in the line chart when there are blank values in column G?

    I hope the question is little clear now.
    Attached Files Attached Files

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

    Re: auto updating chart using offset function - problem with blank cells

    You can change the DeltaRate named range to run off of the DateLength named ranged, assuming there are no missing dates.

    =OFFSET(Datelength,0,5)

    same principle can be applied to other named ranges.

    The missing data point will be treated as zero. you would need to change the formula in G to get an interpolated line.

    =IF(C45="",NA(),-C45+E45)
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    04-14-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    3

    Re: auto updating chart using offset function - problem with blank cells

    Thank you Andy, it works. Great help.

+ 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. Help with automatic chart updating/auto updating today function
    By Tux2424 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 09-26-2012, 04:45 PM
  2. Offset Function and Blank Cells
    By excel-help in forum Excel General
    Replies: 8
    Last Post: 08-23-2011, 08:08 PM
  3. trouble with OFFSET function for updating a graph
    By JeepGuy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-11-2011, 10:11 AM
  4. Chart w/Offset function not updating
    By NMullis in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-15-2010, 09:52 AM
  5. Chart ignoring blank cells with function
    By patphilly in forum Excel Charting & Pivots
    Replies: 9
    Last Post: 06-01-2010, 01:27 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