Keep cell reference constant in chart with google sheets? - google-sheets

I've tried to use the '$' in the data range for a chart, but when I add an additional column, it changes the cells the chart is referring to to the original column.
Everyday I add a column of data to a sheet. I just want the chart to keep referring to that newest column of data instead of referring to the previous day's column of data.

try this formula and create chart from there:
={INDIRECT("DF!D39:D41"), INDIRECT("DF!"&
ADDRESS(39, MATCH(MAX(DF!1:1), DF!1:1, 0))&":"&
ADDRESS(41, MATCH(MAX(DF!1:1), DF!1:1, 0)))}

Do not ad $ Mark and keep adding the columns to the left no to the Right or in between.
I tried on a chart and it works.

Related

How do you create charts using different sets of data of the same table?

I've never used google sheets in my life and I'm trying to make different charts from different sets of data from the same table. For example I have the following table:
and i would like to make a chart using this set of data:
and then make another chart from this set of data:
but as you can see, doing it in this way it also gives me the data of the previous days.
Selecting only the numbers without the first row it doesn't give me the correct legend. How can I make charts using the same header but different sets of data?
In the Chart editor, set the data range to A1:D1,A4:D and choose Combine ranges vertically.
Alternatively, Insert > Sheet and use a filter() or query() formula in the new sheet to pick the rows you want to plot. Then insert a chart based on the data in the new sheet.

Sum range with dynamic row on google sheet column

I'm trying to sum a trying column,
I need the row in the range to be dynamic
I have tried
=sum($B$9:CONCAT("B", ROW()))
and then drag it but I'm getting an error,
I also tried with the address and it didn't work
Spreadsheets have a simple way to express this sort of thing: absolute and relative references. Try this in cell C9:
=sum(B$9:B9)
Then drag down the formula cell to extend it to additional rows.

How do I dynamically expand the range of rows/columns to which a chart takes the data from?

I have the below pivot table, and i created the chart only with the data inside the table, excluding the bottom line with the totals and the right column with the grand total. If new rows automatically appear, how can I make sure they autimatically get added to the chart without having to add the bottom line as well?
best option would be to use FILTER or QUERY formula on separate sheet or hidden columns to trim down your pivoted output and feed it to chart because charts do not support advanced formulae as an input

Increment row, not column of spreadsheet

I am working on a spreadsheet that tracks my running mileage. I've got all my miles in one column, but I want to be able to create a "Calendar View" of sorts, so I can track my miles on Mondays, Tuesdays, etc.
To do this, I am using: =Mileage!C13 for cell b2.
For cell B3, I want: =Mileage!C14.
Obviously, I will be using 7 columns for the calendar, but when I try to create a series in the row, it increases the column (instead of C14, it gives D13).
Also, I tried doing a series in the column instead, and increasing by 7 with no luck.
B2: =Mileage!C13. B3=Mileage!C20. If I select both cells and try to create a series, it gives me =Mileage!C14 instead of =Mileage!C27.
I hope this makes sense... any tips, or am I going about this completely wrong? Thanks!
You can reproduce the first 7 cells in a row fairly easily with the TRANSPOSE function:
=TRANSPOSE(Mileage!C13:C19)
However this still doesn't address the issue of being able to easily fill the formula down. Using OFFSET, we can rewrite the above formula to:
=TRANSPOSE(OFFSET(Mileage!C$13,0,0,7,1))
and then use the ROW function and a bit of maths in the second argument:
=TRANSPOSE(OFFSET(Mileage!C$13,(ROW(A1)-1)*7,0,7,1))
This formula you should now be able to fill/drag down successfully.

Charts in spreadsheet gear

I have created a chart that references table as a source .I need to delete some rows in a table after chart is plotted and leaving the chart unchanged. Is it possible to do that?
-Raghu
While actually deleting data that a chart depends on isn’t really possible, you could probably go about this a number of other ways.
You could place the cell data that your chart depends on in another
worksheet separate from the chart, then hide this "data sheet" by
setting its ISheet.Visible property to SheetVisibility.Hidden or
SheetVisibility.VeryHidden.
If you require your chart and data to reside on the same sheet, you
could hide the rows or columns that your data resides on by setting
IRange.Hidden to true for those rows or columns. By default, a
newly-created chart will not plot points that are in hidden rows or
columns, so you would also need to set IChart.PlotVisibleOnly to
false for the chart to take these hidden cell values into account.

Resources