Graph Plotting Question

JamieP89

Board Regular
Joined
Mar 8, 2022
Messages
64
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I'm facing an issue that I've not been able to resolve by looking online myself (I suspect because the cell in question has a formula in it!)

The below set of data I am trying to plot including all months (even where blank) for ease and to not have to change the chart every time...

The only issue is want the plot to not drop dramatically when there is "0" data in the range.

I've tried and failed to use IF and IFS and also the method that includes trying to change the cell to NA through =IF(A1=0,NA()) (apologies if not exactly right.

In summary all I would like to do is take column C and ensure that when plotted with other data from elsewhere (which is where the formula is pulling the data) that the graph doesnt dip.

Hope this makes sense?

THANKS IN ADVANCE :)

Training Database.xlsx
ABCDEFGHIJ
1Column 0Column 1Column 2Column 3
2RM 26869199
3RN 12012
4NN13013
5MSW73271
6Total36671295
7
8
9Completed Full TrainingFill in this table
10
11MonthRMRN NNMSWSum
12Nov-21310812
13Dec-211201215
14Jan-2200123
15Feb-2212249
16Mar-22216413
17Apr-22700512
18May-221100314
19Jun-226111523
20Jul-2241038
21Aug-2200000
22Sep-221210316
23Oct-221021518
24Nov-2260039
25Dec-22 
26Jan-23 
27Feb-23 
28Mar-23 
29Apr-23 
30May-23 
31Jun-23 
32Jul-23 
33Aug-23 
34Sep-23 
35Oct-23 
36Nov-23 
37Dec-23 
38
39
40
41
42
43MonthTotal RM + RNTrained RM + RN %Total NN + MSW Trained NN + MSW %2Total Trained %3
44Nov-212807326%861012%3668323%
45Dec-212807627%862226%3669827%
46Jan-222807627%862529%36610128%
47Feb-222807928%863136%36611030%
48Mar-222808229%864148%36612334%
49Apr-222808932%864653%36613537%
50May-2228010036%864957%36614941%
51Jun-2228010738%866576%36617247%
52Jul-2228011240%866879%36618049%
53Aug-2228011240%866879%36618049%
54Sep-2228012545%867183%36619654%
55Oct-2228013749%867790%36621458%
56Nov-2228014351%868093%36622361%
57Dec-22280  86  366  
2022
Cell Formulas
RangeFormula
D2:D5D2=SUM([@[Column 1]]-[@[Column 2]])
B6B6=SUBTOTAL(109,[Column 1])
C6C6=SUBTOTAL(109,[Column 2])
D6D6=SUBTOTAL(109,[Column 3])
F12:F37F12=IF(COUNT(Table8[@[RM]:[MSW]])=0,"",SUM(Table8[@[RM]:[MSW]]))
B44:B57B44=SUM($B$2:$B$3)
C44C44=IF(COUNT(B12:C12)=0,"",SUM($C$2:$C$3,B12:$C$12))
D44:D57D44=IFERROR([@[Trained RM + RN ]]/[@[Total RM + RN]],"")
E44:E57E44=SUM($B$4:$B$5)
F44:F57F44=IF(COUNT(D12:E12)=0,"",SUM($C$4:$C$5,$D$12:E12))
G44:G57G44=IFERROR([@[Trained NN + MSW ]]/[@[Total NN + MSW ]],"")
H44:H57H44=SUM(Table1[Column 1])
I44:I57I44=IF(COUNT(B12:E12)=0,"",SUM(Table1[Column 2],$B$12:E12))
J44:J57J44=IFERROR([@[Trained ]]/[@[Total ]],"")
C45:C57C45=IF(COUNT(B13:C13)=0,"",SUM($C$2:$C$3,B$12:$C13))
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
You haven't shown your graph so not sure what type of graph it is but normally if you click on your column or line within your graph, right click and select 'select data' there's an option for 'hidden and empty cells' - from here you can play around with the different option to get it to work - you might want to set your zero to an empty cell using a formula and use the 'connect data points with line' option
1669124587542.png
 
Upvote 0
You haven't shown your graph so not sure what type of graph it is but normally if you click on your column or line within your graph, right click and select 'select data' there's an option for 'hidden and empty cells' - from here you can play around with the different option to get it to work - you might want to set your zero to an empty cell using a formula and use the 'connect data points with line' option
View attachment 79239

Thanks for coming back to me - I ended up figuring out the solution was to change my =IF(COUNT) function needed to have the if true changed from "" to #N/A so that it doesn't count it as a number and it fixed the chart :)
 
Upvote 0

Forum statistics

Threads
1,215,028
Messages
6,122,749
Members
449,094
Latest member
dsharae57

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