Sparkline

L

Legacy 299145

Guest
Afternoon,

I have the below data which operates on a rolling month.

Fixed Base Line
month 1
month 2
month 3
month 4
month 5
month 6
10
15
26
50
35
80
15

<tbody>
</tbody>

I am trying to put in a sparkline that automatically updates when the data changes. So I am deleting the month 1 column and adding a month 7 column onto the end however excel changes the references when I do this (useful normally). Is there a way I can keep the cell references for the data range the same when I delete the column.

Any help greatly appreciated.

Rich
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
If your data is in A1:G2, insert 6 columns before column A so that your sample data is now in G1:M2. Now enter this formula in A2 and copy across to F2.
Code:
=INDIRECT(ADDRESS(ROW(),COLUMN()+7))
Now base your sparklines off of Cols A-F.
You can also copy the formula down.
You'll probably want to hide Cols A-F.
 
Upvote 0

Forum statistics

Threads
1,213,483
Messages
6,113,919
Members
448,533
Latest member
thietbibeboiwasaco

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top