How can I make self-updating chart with formula? - excel

I want to make a self updating chart for weekly sales KPI.
Columns are the times, every day, by hand I update it until that time.
First row is the target, and then all the inputs are typed in by hand when we know how much we sold.
I need the chart to update itself by taking into account what time it's now. E.g. If it's Monday 13:00, then it means chart will only look into 5 inputs. I hope it's clear.
Green circle is % of how many goals we met, red circle would be how many goals were not met. Ignore the blue one.

Related

Inserting dummy lines for no observation

I have an Excel file for which every line is an observation of a range of species. Observations are made by 315 different cameras (sample points), each of which was set to collect data for a range of 5-38 days (I have the number of survey days for each of the points recorded).
I need to get an average number of observations by effort:
(number of cameras set * number of days set)
I can get this average number easily, but in order to run an ANOVA on the average number of observations by effort for each species observed I need all of the values, including the days where no species was observed.
I tried PivotTables to get the number of observations for each species by camera and survey day. The problem is, on days when no species was observed, there is no entry for the day. I thought of fixing this by adding dummy lines with 0s for all of these days, but with 315 points this will take a lot of time and have a high chance of error.
Any ideas of a better way to do this?
If you right click the PivotTable, and then click "PivotTable options", there is a box that says "For empty cells show:" and you can select to put 0 in to the cells with no value recorded.
(I think this is what you're asking. I may be totally off base, though.)
Go to the pivot field in the field list> columns(days for you)> click on down arrow on your field> Field_Settings> Layout Tab> Click on Show fields with no Data

How to show values in data labels of Excel Pareto Chart when chart is based on percentages

I am developing a Pareto Chart for my client in Excel 2010. They currently have a chart that shows the percentage of each category on the primary Y-axis. Then, the secondary Y-axis is used for the cumulative percentage, up to 100%. So far, this is a normal and easy to create Pareto. I should also mention it is based on a Pivot Chart with 3 different Report Filters.
They wish to show data labels above each column to indicate the number of occurrences. So for example, they may have 6 events on the x-axis:
1 - Event A, 50%, 1,000 occurrences
2 - Event B, 30%, 600
3 - Event C, 10%, 200
4 - Event D, 5%, 100
5 - Event E, 3%, 60
6 - Event F, 2%, 40
I cannot figure out how to show the data labels so they show the value of each category (e.g. Event B would show 30% on the left axis,have a data label of 600 and the Cumulative total line would be at 80% at this point). Please keep in mind that depending on what is selected with the Report Filters on the Pivot Chart, the name/number of categories on the x-axis will change, so I don't think adding a formula into the data label is the answer either.
I've looked everywhere (I think) for an answer, but cannot figure it out. I'd prefer to avoid a VBA solution, but I do know how to write VBA code, so if that's the only way, a nudge in the right direction would be greatly appreciated.
Thank you.

Display Grouped AND Individual labels in Excel Bar Chart

I'm trying to create a chart that contains the percentage of Paid Time Off (PTO) that people have used for the calendar year. Each person is on a specific team, so I would like to group the bars per team, but still display everyone's name. Is this possible? I have 4 teams total.
Example Data:
Employee Name Employee Team % PTO Take for Year
Person 1 Team 1 .2
Person 2 Team 1 .35
Person 3 Team 1 .6
Person 4 Team 2 .15
Person 5 Team 2 .3
The x-axis is 0% - 100% and the y-axis should be everyone's name, but grouped by team. Something like this:
Thank you!
Here's two ways to achieve similar result. You have to prepare the data a bit differently, but it's quite easy to generate this kind of a chart then.
The first way is to separate the teams into different series by separating the team values into different columns. This automatically colours the different teams in a different colour:
The second way uses multilevel categories to achieve a similar result. It's a bit easier to prepare the data based on your current data. But you would have to manually colour the teams with different colours:
I used random to generate the data so chart don't have the same values. I also used reverse axis on both charts and added a blank line between the teams to separate them a bit more. Both are simple clustered bar chart (overlap to 100 and 0 gaps), but make sure that you select the whole range of data, as shown on the first picture or excel will plot only a part of the data.

How to create an Excel chart showing data over 24hrs

I have a data set that includes only two columns - errtype (A,B,C) and errtime (hh,mm,ss). This data is being collected over many days. I want to create a graph that will make it easy to discern when, with a 24hr day, most errors are occurring and what type of error they are. I don't want to aggregate the data points into hourly groups if it can be avoided. It's been easy enough to create a bar chart that shows the errors with time of day across the x axis. The bar heights themselves almost never exceed 1 on the x axis unless more than one errtype occurs at the exact same second. For this reason I don't think a scatterplot would look all that good even if I could figure out how to do that type of grpah. With the bar chart style, what I can't figure out is how to get the y scale to be 24hrs in Excel. There doesn't seem to be an option for it in the bar chart axis properties, even when I've set the data type as "time".
When i want to accomplish a timeline it has involved the creation of an artificial table showing the data with the expected grain (for example 1440 rows for all the minutes in one day) and then use a vertical lookup to get the corresponding value to that time.
After being bored of doing this manually for different types of grains, you can even get into adjusting the size of the table automatically which is actually kind a cool
I do not have an example with me right now, but if this question is still not answered tomorrow i will give you a complete dummy example of how to do it.

How to get an Excel graph show "up to" current day of week

In Mac Excel 2011 I have a Scrum burndown chart that tracks the number of points ‘burnt’ per day (starting from say 100, hopefully burning down to 0).
The number of points per day is made up of a sum of X number of columns (tasks).
I then have a marked line graph which takes it’s Y value data from the summed points per day.
My issue is that the marked line graph will always display 5 work days worth of burn, even though we might be on Tuesday.
I need a solution that means I don’t have to manually update the graph y value each day (adding it), instead the graph knows it is Wednesday, and selects data up to Wednesday.
Do you want to show the days for the whole week? (probably, since a 1 or 2 day chart early in the week will look funny.) Are the Y values linked from another cell?
If so, change your links from
=A1
to
=IF(LEN(A1)=0,NA(),A1)
NA() produces #N/A in the cell, which isn't plotted.

Resources