Date: 15/07/2022 14:14:32
From: diddly-squat
ID: 1909053
Subject: Excel Question

I have a combination bar/line graph where operational data are inputted each week and it calculates a utilisation factor. This utilisation factor is a ling on the graph *the only plotted against the secondary axis). Because this value is calculated by a formula it returns a value of 0 for all weeks where data is yet to be inputted. On the graph this manifests as a line that sits on the x-axis for all future weeks.

instead of the line doing the above, I want the line to not exist on the graph at all until a value has been entered. I’ve tried having the formula return a blank value (that is the formula returns “”) and I’ve also tried an autoformatting but I can’t seem to make it plot as if it is blank.

Any ideas? and no I don’t want to have to copy the formula over every week

Reply Quote

Date: 15/07/2022 14:17:58
From: dv
ID: 1909055
Subject: re: Excel Question

diddly-squat said:

I have a combination bar/line graph where operational data are inputted each week and it calculates a utilisation factor. This utilisation factor is a ling on the graph *the only plotted against the secondary axis). Because this value is calculated by a formula it returns a value of 0 for all weeks where data is yet to be inputted. On the graph this manifests as a line that sits on the x-axis for all future weeks.

instead of the line doing the above, I want the line to not exist on the graph at all until a value has been entered. I’ve tried having the formula return a blank value (that is the formula returns “”) and I’ve also tried an autoformatting but I can’t seem to make it plot as if it is blank.

Any ideas? and no I don’t want to have to copy the formula over every week

So I guess you need both the x and y values to be blank so you need a separate column of dates that is blank when the y value is blank? Or have I misunderstood?

Reply Quote

Date: 15/07/2022 14:19:51
From: SCIENCE
ID: 1909058
Subject: re: Excel Question

https://stackoverflow.com/questions/1119614/return-empty-cell-from-formula-in-excel/39351425#39351425

Laugh Out Loud

Reply Quote

Date: 15/07/2022 14:20:20
From: diddly-squat
ID: 1909060
Subject: re: Excel Question

dv said:


diddly-squat said:

I have a combination bar/line graph where operational data are inputted each week and it calculates a utilisation factor. This utilisation factor is a ling on the graph *the only plotted against the secondary axis). Because this value is calculated by a formula it returns a value of 0 for all weeks where data is yet to be inputted. On the graph this manifests as a line that sits on the x-axis for all future weeks.

instead of the line doing the above, I want the line to not exist on the graph at all until a value has been entered. I’ve tried having the formula return a blank value (that is the formula returns “”) and I’ve also tried an autoformatting but I can’t seem to make it plot as if it is blank.

Any ideas? and no I don’t want to have to copy the formula over every week

So I guess you need both the x and y values to be blank so you need a separate column of dates that is blank when the y value is blank? Or have I misunderstood?

I think you’ve misunderstood essentially what I want is a value of 0 to plot as if it’s an empty cell

Reply Quote

Date: 15/07/2022 14:24:12
From: dv
ID: 1909062
Subject: re: Excel Question

diddly-squat said:


dv said:

diddly-squat said:

I have a combination bar/line graph where operational data are inputted each week and it calculates a utilisation factor. This utilisation factor is a ling on the graph *the only plotted against the secondary axis). Because this value is calculated by a formula it returns a value of 0 for all weeks where data is yet to be inputted. On the graph this manifests as a line that sits on the x-axis for all future weeks.

instead of the line doing the above, I want the line to not exist on the graph at all until a value has been entered. I’ve tried having the formula return a blank value (that is the formula returns “”) and I’ve also tried an autoformatting but I can’t seem to make it plot as if it is blank.

Any ideas? and no I don’t want to have to copy the formula over every week

So I guess you need both the x and y values to be blank so you need a separate column of dates that is blank when the y value is blank? Or have I misunderstood?

I think you’ve misunderstood essentially what I want is a value of 0 to plot as if it’s an empty cell

Right so you have a separate pair of columns that are are used for the graph. Use a formula to blank both of these, the X and the Y, when the value is 0.

Use the right pair of columns to make the graph.

Reply Quote

Date: 15/07/2022 14:29:17
From: diddly-squat
ID: 1909069
Subject: re: Excel Question

dv said:


diddly-squat said:

dv said:

So I guess you need both the x and y values to be blank so you need a separate column of dates that is blank when the y value is blank? Or have I misunderstood?

I think you’ve misunderstood essentially what I want is a value of 0 to plot as if it’s an empty cell

Right so you have a separate pair of columns that are are used for the graph. Use a formula to blank both of these, the X and the Y, when the value is 0.

Use the right pair of columns to make the graph.

that won’t work.. the chart sees the column right as a 0 if they contain a formula..

Reply Quote

Date: 15/07/2022 14:32:19
From: dv
ID: 1909071
Subject: re: Excel Question

diddly-squat said:


dv said:

diddly-squat said:

I think you’ve misunderstood essentially what I want is a value of 0 to plot as if it’s an empty cell

Right so you have a separate pair of columns that are are used for the graph. Use a formula to blank both of these, the X and the Y, when the value is 0.

Use the right pair of columns to make the graph.

that won’t work.. the chart sees the column right as a 0 if they contain a formula..


Okay, but it doesn’t have any date to place it against.

Reply Quote

Date: 15/07/2022 14:33:08
From: SCIENCE
ID: 1909072
Subject: re: Excel Question

dv said:


diddly-squat said:

dv said:

Right so you have a separate pair of columns that are are used for the graph. Use a formula to blank both of these, the X and the Y, when the value is 0.

Use the right pair of columns to make the graph.

that won’t work.. the chart sees the column right as a 0 if they contain a formula..


Okay, but it doesn’t have any date to place it against.

as a label or as an ordinate

Reply Quote

Date: 15/07/2022 14:34:07
From: diddly-squat
ID: 1909074
Subject: re: Excel Question

dv said:


diddly-squat said:

dv said:

Right so you have a separate pair of columns that are are used for the graph. Use a formula to blank both of these, the X and the Y, when the value is 0.

Use the right pair of columns to make the graph.

that won’t work.. the chart sees the column right as a 0 if they contain a formula..


Okay, but it doesn’t have any date to place it against.

I’ll have a play

Reply Quote

Date: 15/07/2022 14:34:12
From: dv
ID: 1909075
Subject: re: Excel Question

I mean I’m using Libre so it might not be identical but the method I am using is working for me. You can see there’s no dot for the 8th.

Reply Quote

Date: 15/07/2022 14:43:14
From: The Rev Dodgson
ID: 1909080
Subject: re: Excel Question

dv said:


I mean I’m using Libre so it might not be identical but the method I am using is working for me. You can see there’s no dot for the 8th.


Assuming d-s doesn’t want to switch to Libre, one way around it would be to create an array formula for the values that only returns values when the date is empty or 0. A VBA function might be the easiest way to do that.

Reply Quote

Date: 15/07/2022 14:49:52
From: The Rev Dodgson
ID: 1909085
Subject: re: Excel Question

Also try returning #NA rather than zero. See the last two comments at:

https://newtonexcelbach.com/2012/09/05/when-is-an-xy-chart-not-an-xy-chart/

Reply Quote

Date: 15/07/2022 16:09:23
From: furious
ID: 1909120
Subject: re: Excel Question

The Rev Dodgson said:


Also try returning #NA rather than zero. See the last two comments at:

https://newtonexcelbach.com/2012/09/05/when-is-an-xy-chart-not-an-xy-chart/

This…

Reply Quote

Date: 15/07/2022 21:35:00
From: mollwollfumble
ID: 1909186
Subject: re: Excel Question

> I want the line to not exist on the graph at all until a value has been entered.

Very difficult to do in Excel. It routinely changes blanks to zeros in all formulas.
This is a major bug in Excel.
I’ve given up and now only use the manual method of deleting cell contents one at a time when I want blanks.

Good luck.

Reply Quote