Love Numbers Hate Graphs.

Irwell

Board Regular
Joined
May 24, 2012
Messages
54
Office Version
  1. 365
Platform
  1. Windows
I love data tables but hate graphs but naturally most people love a good graph so I'll do as I'm requested :)

I have a data table with headings of week commencing dates (Horizontal Axis) then under that I have numbers (Vertical Axis)..

Now at the moment only the first 4 weeks have valid data in, the rest are formulas awaiting future data.

My line graph that I quickly created obviously shows a drop and a flat line post the 4 weeks, hope that makes sense.

I'd like it to be that when the data updates or we pass a specific date that it automatically updates the chart without ever having the drop and flatline. The only way I know of is adapting the table week on week which is what I've been doing but was wondering if there is a simpler way that I don't know about?


1586338770279.png


1586338954833.png



Many thanks,
Simon
 

Attachments

  • 1586338880401.png
    1586338880401.png
    13.7 KB · Views: 7
  • 1586338946417.png
    1586338946417.png
    16.2 KB · Views: 6

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Hi, I suspect you have formula returning the data. So if a value is "0" (zero) replace it by NA(). Those are not plotted on the chart.
See difference below.

1586345565041.png
 
Upvote 0
Ah okay. I'll have a look shortly, just in one of many teams/skypes/zoom meetings :rolleyes:
 
Last edited:
Upvote 0
I wish I was. I'm on temporarily lay-off. :mad:
 
Upvote 0
Also, if your formula returns "", it may look like the cell is blank, but it contains a very short length of text, and Excel plots text as zero. So replace "" in your formulas with NA(). That gives you an ugly #N/A error in the cell, but you could use conditional formatting to hide that.
 
Upvote 0
Thank you @Jon Peltier for the complementary comment. Should have included that in my reply. Also Thank you btw for all the wit you've shared on your site. Love it.
 
Upvote 0
Thank you both :) and sorry to hear about your lay off GraH
 
Upvote 0
It didn't quite work..

The table data is a countifs function so it's returning a 0 if it doesn't count anything for that particular week.

=COUNTIFS('COVID-19 Flex 1'!$P:$P,Data!$A5,'COVID-19 Flex 1'!$Q:$Q,B$3)

The first condition is the week number on the data table.
The second condition is a formula on the second tab that returns week number.

So above the dates is a hidden line with a week number formula relating to the date.

Numbers Triaged Week on Week of COVID-19 Lockdown
16-Mar23-Mar30-Mar06-Apr13-Apr20-Apr27-Apr04-May11-May18-May25-May01-Jun
Structured173427900000000
Extended brief intervention241000000000
Non-structured001000000000
 
Upvote 0
Sorry - Count condition 1 is type of assessment i.e. structured.
 
Upvote 0
Consider = IF (COUNTIFS('COVID-19 Flex 1'!$P:$P,Data!$A5,'COVID-19 Flex 1'!$Q:$Q,B$3)<> 0, COUNTIFS('COVID-19 Flex 1'!$P:$P,Data!$A5,'COVID-19 Flex 1'!$Q:$Q,B$3), NA() )
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,575
Members
449,039
Latest member
Arbind kumar

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