Dynamic offset etc

OC2PS

New Member
Joined
Jan 18, 2018
Messages
11
I have 2 sets of data, for 2 indicators, over time. Format shown below (of course, the data sets are much bigger)

Data set 1 (indicator A)
City200920102011201220132014201520162017
Airdrie123456789
Brooks987842125
Calgary474348761
Duncan756128799
Edmonton352897994
Fernie128238794
Greenwood672967938
Hamilton256558744
Iqaluit635736412

<tbody>
</tbody>

Data set 2 (indicator B)
City200920102011201220132014201520162017
Airdrie193894589
Brooks5387954
Calgary163135875
Duncan814393957
Edmonton81525398
Fernie9161138
Greenwood558714993
Hamilton981585
Iqaluit898759167

<tbody>
</tbody>

I would like to run a few simple analyses on these:
  1. Scatter plot Indicator A v Indicator B (across countries and across years), just to see whether there is a correlation (or some relationship) between the 2 indicators.
  2. Scatter plot Indicator A v % change in Indicator B (across countries and across years), to see whether there is a correlation between indicator A and the speed of change in B.
  3. As you can see in the table above, Indicator B starts getting values for some cities after a few columns. I would like to plot the first x years of indicator B in a line chart or something, BUT with an offset when looking at years. So that rather than the plot starting in column 2 for every single city, the first value for each city should be the first cell for the city that has a number. And so on...

Is there a simple and direct way of doing this, short of manually manipulating data (e.g. copying columns for each year below each other in each data set for analysis #1 , etc)?

Greatly appreciate any help!

****** id="cke_pastebin" style="position: absolute; top: 0px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">
City200920102011201220132014201520162017
Airdrie123456789
Brooks987842125
Calgary
Duncan
Edmonton
Fernie
Greenwood
Hamilton
Iqaluit

<tbody>
</tbody>

</body>
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,213,556
Messages
6,114,284
Members
448,562
Latest member
Flashbond

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