Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9786

Combine data from multiple sheets to create a stacked line chart

$
0
0

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

DateInvested AmtReturn Amt
01 Jan 2020100100
01 Feb 2020200210
01 Mar 2020300330
01 Apr 2020400420
01 May 2020500490
01 Jun 2020600620

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

DateInvested AmtReturn Amt
01 Jun 2020620620
01 Jul 2020720730
01 Aug 2020830800
01 Sep 2020930950
01 Oct 202010301100
01 Nov 202011301210
01 Dec 202011301220
01 Jan 202111301230
01 Feb 202111301200
01 Mar 202111301210
01 Apr 202111301240
01 May 202111301250
01 Jun 202111301260

Sheet 3

DateInvested AmtReturn Amt
15 Dec 2020200200
15 Jan 2021400410
15 Feb 2021600620
15 Mar 2021800830
15 Apr 202110001100
15 May 202112001230

Resultdata to be used for Stacked Line Chart.

DateInvested AmtReturn Amt
01 Jan 2020100100
01 Feb 2020200210
01 Mar 2020300330
01 Apr 2020400420
01 May 2020500490
01 Jun 2020600620
01 Jul 2020720730
01 Aug 2020830800
01 Sep 2020930950
01 Oct 202010301100
01 Nov 202011301210
01 Dec 202011301220
15 Dec 20201130+200=13301220+200=1420
01 Jan 20211130+200=13301230+200=1430
15 Jan 20211130+400=15301230+410=1640
01 Feb 20211130+400=15301200+410=1610
15 Feb 20211130+600=17301200+620=1820
01 Mar 20211130+600=17301210+620=1830
15 Mar 20211130+800=19301210+830=2040
01 Apr 20211130+800=19301240+830=2070
15 Apr 20211130+1000=21301240+1100=2340
01 May 20211130+1000=21301250+1100=2350
15 May 20211130+1200=23301250+1230=2480
01 Jun 20211130+1200=23301260+1230=2490

So my questions are,

  1. How to combine these values from multiple sheets to create a stacked line chart while taking care of the missing data?
  2. How to keep the final chart updated automatically when new rows are added the sheets?

Viewing all articles
Browse latest Browse all 9786

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>