Creating a Line Graph

jcountry22

New Member
Joined
Aug 15, 2014
Messages
36
I need assistance with creating a trending line graph.
Example below.
The Totals are rollforward totals.
Project 1 had $13k cost for Jan, Then $0 additional cost for Feb so cost remainded the same. March it incurred additional cost of $21k, etc.

I'm trying to create a trend graph to show the increase Month over Month on each project.
Project #MonthTotal
1
Jan-24​
13,347.90
2
Jan-24​
41,170.00
3
Jan-24​
-
1
Feb-24​
13,347.90
2
Feb-24​
74,002.50
3
Feb-24​
-
1
Mar-24​
34,410.40
2
Mar-24​
86,050.00
3
Mar-24​
-
1
Apr-24​
43,667.90
2
Apr-24​
86,050.00
3
Apr-24​
10,138.14
1
May-24​
43,667.90
2
May-24​
86,050.00
3
May-24​
10,138.14
1
Jun-24​
43,667.90
2
Jun-24​
86,050.00
3
Jun-24​
10,138.14
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Try this:
Book1
ABCDEFGHIJKLM
1Project #MonthTotalJan-24Feb-24Mar-24Apr-24May-24Jun-24Monthly Accumulating Project Totals
21Jan-2413347.90113,347.9026,695.8061,106.20104,774.10148,442.00192,109.90
32Jan-2441170.00241,170.00115,172.50201,222.50287,272.50373,322.50459,372.50
43Jan-240.0030.000.000.0010,138.1420,276.2830,414.42
51Feb-2413347.90
62Feb-2474002.50
73Feb-240.00
81Mar-2434410.40
92Mar-2486050.00
103Mar-240.00
111Apr-2443667.90
122Apr-2486050.00
133Apr-2410138.14
141May-2443667.90
152May-2486050.00
163May-2410138.14
171Jun-2443667.90
182Jun-2486050.00
193Jun-2410138.14
Sheet4
Cell Formulas
RangeFormula
F1:K1F1=TRANSPOSE(UNIQUE(SORT(B2:B19,1,1)))
E2:E4E2=UNIQUE(SORT(A2:A19,1,1))
F2:K4F2=SUMIFS($C$2:$C$19,$B$2:$B$19,"<="&F$1,$A$2:$A$19,$E2)
Dynamic array formulas.



1720659891637.png


Hope this helps.
 
Upvote 0
It does, but on a larger scale. I have 50 projects..


How do you get Projects to show on the Y axis on the Far left (where numbers currently are)
Keep Months at the bottom.
Have values incorporated from the other Y-axis on the right?
 
Upvote 0
Do you mean having the LEGEND shown on the left?

Not sure Line Graphs would be the best to show for such a large number of series to map. It will look like spaghetti.

Here is where the legend is moved:

1720734494652.png


(this is in Excel 365, so unsure how your chart tools appear, but you can select the chart and press CNTL-1 and open the chart formatting dialog.
Click the 'arrow' beside "Chart Options" and select LEGEND. (Please update your profile so the forum knows the excel version you use).
1720734635517.png
 
Upvote 0
Sorry, I could not add this before the post editing time expired. But here is how you can add BAR charts with the months as series added to give you totals.
This would be expandable to show all the projects without spaghetti like lines.
Please note the custom number format so the X axis is not so busy (but this would be your prerogative).


1720735423499.png

The downside to this chart is that the time perspective the line chart gives is severely affected.

But with spaghetti lines you may not have a clear idea of what line goes with which project.

You'll have to weigh the options.
 
Upvote 0

Forum statistics

Threads
1,221,418
Messages
6,159,791
Members
451,589
Latest member
Harold14

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