+ Reply to Thread
Results 1 to 2 of 2

Referenced cell changes if new line added to the source

  1. #1
    Registered User
    Join Date
    07-25-2023
    Location
    England
    MS-Off Ver
    365
    Posts
    1

    Angry Referenced cell changes if new line added to the source

    HI,
    This uesd to work fine but recently wont

    Using data for a chart - there is a new line added each week between the top line and last week.

    There is a chart generated by this data for the first 11 rows (eg - this to 10 weeks ago)
    =Payments!$A$1:$C$11

    it has the $ in so it always looks at the same cells - This is the bit thats not working

    What has started to happen is that when a new line is added on source page, the chart referance changes too so it will referance the same data as before
    =Payments!$A$1:$C$1,Payments!$A$3:$C$12

    How do i stop it from changing?
    Attached Files Attached Files
    Last edited by PacmanByNamco; 07-25-2023 at 08:18 AM. Reason: added sampl file

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

    Re: Referenced cell changes if new line added to the source

    What is happening is that you are changing the "anchor point."

    However, I suggest another approach. You obviously want to see the tabular data with newest on top and display the last 11 points on the chart in chronological order. To do this under your current system, you first have to insert a row and then type in the data.

    I suggest a setup as shown on sheet 2. The data are entered in an Excel Table and the chart is built off a pivot table based on the Excel Table.

    The table contains a formula: =ROW()>COUNTA([Week End Date])-10 this is TRUE is the date is within 11 weeks. as you add data to the bottom of the chart, the topmost true turns to false. This is used as a filter on the pivot table. Since the data is in an Excel table, adding a line after the table makes that line become part of the table also formulas and formats are copied down automatically.

    The pivot table contains the dates in the order you want them. The chart is built on the pivot table and the X axis is reversed.

    The only issue with this is that when you add new data, you have to right click on the pivot table and refresh data. With a tiny bit of VB code, the pivot table can be made to refresh whenever data are added to the table.
    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: 5
    Last Post: 10-31-2017, 08:16 PM
  2. Replies: 5
    Last Post: 04-03-2013, 04:15 PM
  3. Replies: 1
    Last Post: 01-03-2013, 08:21 PM
  4. Replies: 1
    Last Post: 08-28-2012, 02:36 AM
  5. Replies: 3
    Last Post: 06-11-2010, 06:40 AM
  6. Moving sum cell-when the total line is added,
    By mrlevcik in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-21-2008, 12:52 PM
  7. [SOLVED] The absolute referenced cell does not move when source cell moves
    By johnc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-08-2006, 01:40 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