Home > Software engineering >  How to create column and lines charts from this simple spreadsheet?
How to create column and lines charts from this simple spreadsheet?

Time:12-04

I'm trying to create two charts from a local cycling club's account spreadsheet. These will provide "at-a-glance" overviews of the state of the current finances.

The spreadsheet has a columns with incoming monies (receipts) and the date received, with similar columns for outgoing money (payments).

enter image description here

The first chart will sum up the incoming outgoing columns and display these in a simple column chart. A quick glance should show that the incoming column is taller than the outgoing (hopefully!). This is where I hit my first problem - I don't seem to be able to use SUM in the chart:

enter image description here

I have ended up having to reference a cell containing the sum of the column, but this sum takes into account a cell (C3) which contains balance brought forward from a previous year which I want to ignore for this chart:

enter image description here

The other chart I want is a line chart showing amount of money on the y-axis and time on the x-axis. The receipts line should go up over the year (again, hopefully) and the payments should go down. I'm not even close to getting this correct:

enter image description here

It should be something like this, so as the year passes (x-axis) the amount (y-axis) of receipts and payments increases:

enter image description here

How can I create these charts?

Spreadsheet is here - enter image description here

For Payments, insert this in H3:

 =ArrayFormula(If(len(G3:G7),(SUMIF(ROW(G3:G7),"<="&ROW(G3:G7),G3:G7)),))

enter image description here

  1. The dates from Receipts and Payments are different, if you only use the dates of Receipt, the data for Payments will be inaccurate. You need to create another table that will combine the dates and data of those two categories.

Try this:

J2: ={A4:A8;E3:E8} K2: =ARRAYFORMULA(IFERROR(VLOOKUP(J2:J11, A4:D8, 4, false))) L2: =ARRAYFORMULA(IFERROR(VLOOKUP(J2:J11, E3:H7, 4, false))) Make sure to add Labels on K1 and L1.

It should look like this:

enter image description here

Once you have the data, just highlight J1:L11 and Go to Insert -> Chart -> Convert it to Smooth line chart -> Check Aggregate

The graph should look like this:

enter image description here

References:

  • Related