+ Reply to Thread
Results 1 to 5 of 5

Can you create self updating charts in macro enabled worksheets?

  1. #1
    Registered User
    Join Date
    02-12-2013
    Location
    UK
    MS-Off Ver
    Excel 1997
    Posts
    35

    Can you create self updating charts in macro enabled worksheets?

    Just a quick one,

    I've been trying to create a graph that self updates when you add new data to the range, however it does not seem to be working on my current macro enabled worksheet.

    I've tried using the same technique on another sheet and it works fine.

    The formula that I'm using are:

    Define the names

    =OFFSET(Sort!$C$7,0,0,COUNTA(Sort!$C$6:$C$600)-1)

    =OFFSET(Sort!$B$7,0,0,COUNTA(Sort!$B$6:$B$600)-1)

    Chart Formula

    =SERIES(Sort!$C$7,ChangeoverTimesUpdate.xlsm!Obs_No,ChangeoverTimesUpdate.xlsm!CO_1,1)

    I try to press enter and literally nothing happens.

    Cheers,
    Last edited by GarethT; 04-24-2013 at 10:44 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Can you create self updating charts in macro enabled worksheets?

    You're close but not quite there...
    1. Set up your dynamic named range.
    > Go to the ribbon -> Formulas and select the "Name Manager"
    > Select the "New" button
    > Give your range a name (No spaces or special characters)
    > In the "Refers To" box enter your offset formula ... (=OFFSET(Sort!$B$7,0,0,COUNTA(Sort!$B$6:$B$600)-1))
    > Click Ok
    > In the main Name manager form select the "Refers To" box and verify the data of interest is correctly highlighted.
    2. Assign Named range to the chart
    > Select your chart
    > Choose "Select Data"
    > Select the series
    > Select "Edit"
    > In the values box type the named range in the format : =Book1.xlsm!ExampleData......... i.e workbook name and range name.
    Elegant Simplicity............. Not Always

  3. #3
    Registered User
    Join Date
    02-12-2013
    Location
    UK
    MS-Off Ver
    Excel 1997
    Posts
    35

    Re: Can you create self updating charts in macro enabled worksheets?

    Thanks for the reply,

    I may have also found out why it wasn't working. I have an IF and a VLOOKUP formula in A7:A10000 and B7:B10000

    Those formula are;

    =IF(Data!$L3="1",Data!$A3,"")

    and


    =IFERROR((VLOOKUP(B8,Data!A3:L35,8,FALSE)/1440),"")

    Would it still be possible to have a self updating spreadsheet only showing "filled" cells?

  4. #4
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Can you create self updating charts in macro enabled worksheets?

    Change the counta in the offset formula to count.
    Change the chart properties ...
    > Right click on chart
    > Choose "Select Data"
    > Select the hidden and empty cells button to set how the chart deals with data gaps

  5. #5
    Registered User
    Join Date
    02-12-2013
    Location
    UK
    MS-Off Ver
    Excel 1997
    Posts
    35

    Re: Can you create self updating charts in macro enabled worksheets?

    Bloody Brilliant.

    Thank you very much.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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