I have multiple sheets with three columns each: Date, Invested Amt, and Return Amt. I am trying to merge the values and get a Result dataset to create a single stacked line chart of Invested vs Return against Date.
Sheet 1
| Date | Invested Amt | Return Amt |
|---|---|---|
| 01 Jan 2020 | 100 | 100 |
| 01 Feb 2020 | 200 | 210 |
| 01 Mar 2020 | 300 | 330 |
| 01 Apr 2020 | 400 | 420 |
| 01 May 2020 | 500 | 490 |
| 01 Jun 2020 | 600 | 620 |
On 01 Jun 2020, Return Amt from Sheet 1 is transferred to Invested Amt of Sheet 2. No further values in Sheet 1.
Sheet 2
| Date | Invested Amt | Return Amt |
|---|---|---|
| 01 Jun 2020 | 620 | 620 |
| 01 Jul 2020 | 720 | 730 |
| 01 Aug 2020 | 830 | 800 |
| 01 Sep 2020 | 930 | 950 |
| 01 Oct 2020 | 1030 | 1100 |
| 01 Nov 2020 | 1130 | 1210 |
| 01 Dec 2020 | 1130 | 1220 |
| 01 Jan 2021 | 1130 | 1230 |
| 01 Feb 2021 | 1130 | 1200 |
| 01 Mar 2021 | 1130 | 1210 |
| 01 Apr 2021 | 1130 | 1240 |
| 01 May 2021 | 1130 | 1250 |
| 01 Jun 2021 | 1130 | 1260 |
Sheet 3
| Date | Invested Amt | Return Amt |
|---|---|---|
| 15 Dec 2020 | 200 | 200 |
| 15 Jan 2021 | 400 | 410 |
| 15 Feb 2021 | 600 | 620 |
| 15 Mar 2021 | 800 | 830 |
| 15 Apr 2021 | 1000 | 1100 |
| 15 May 2021 | 1200 | 1230 |
Resultdata to be used for Stacked Line Chart.
| Date | Invested Amt | Return Amt |
|---|---|---|
| 01 Jan 2020 | 100 | 100 |
| 01 Feb 2020 | 200 | 210 |
| 01 Mar 2020 | 300 | 330 |
| 01 Apr 2020 | 400 | 420 |
| 01 May 2020 | 500 | 490 |
| 01 Jun 2020 | 600 | 620 |
| 01 Jul 2020 | 720 | 730 |
| 01 Aug 2020 | 830 | 800 |
| 01 Sep 2020 | 930 | 950 |
| 01 Oct 2020 | 1030 | 1100 |
| 01 Nov 2020 | 1130 | 1210 |
| 01 Dec 2020 | 1130 | 1220 |
| 15 Dec 2020 | 1130+200=1330 | 1220+200=1420 |
| 01 Jan 2021 | 1130+200=1330 | 1230+200=1430 |
| 15 Jan 2021 | 1130+400=1530 | 1230+410=1640 |
| 01 Feb 2021 | 1130+400=1530 | 1200+410=1610 |
| 15 Feb 2021 | 1130+600=1730 | 1200+620=1820 |
| 01 Mar 2021 | 1130+600=1730 | 1210+620=1830 |
| 15 Mar 2021 | 1130+800=1930 | 1210+830=2040 |
| 01 Apr 2021 | 1130+800=1930 | 1240+830=2070 |
| 15 Apr 2021 | 1130+1000=2130 | 1240+1100=2340 |
| 01 May 2021 | 1130+1000=2130 | 1250+1100=2350 |
| 15 May 2021 | 1130+1200=2330 | 1250+1230=2480 |
| 01 Jun 2021 | 1130+1200=2330 | 1260+1230=2490 |
So my questions are,
- How to combine these values from multiple sheets to create a stacked line chart while taking care of the missing data?
- How to keep the final chart updated automatically when new rows are added the sheets?