I'm having trouble putting data on 2 different types of data on my x-axis from the data in my table. How can I get the month and year data from my table to a line graph like this?
Like in the graph shown, I want all to group the x-axis by year range (2001-2002, 2002-2003, etc). And then within each year range, I want the values for each month to show for that year from August to May. And repeat this again for each year interval.
What should I select on select data source to make it look like the graph shown?
In Excel, you can arrange your data this way (I've only included 3 years):
Every cell that seems blank is really blank, that is, it doesn't contain a formula or a space or anything that doesn't appear. The "XXX" in the second cell of the second column is temporary. Create your line chart with this data, then delete the "XXX" and format the chart.
Recommend combining the month and year dimensions into a single month-year column and making the values line up in a single column. Then put month-year on the x axis and values on the y axis.
Related
I need to produce a chart in Excel to show a quantity of items for a number of categories, grouped by the month they were received. At the moment, every occurrence of the Month shows up in my clustered column chart. I can manually do a table and remove all except the first occurrence of each month, but I need it to be done dynamically as the date range can be changed (between 1 and 12 months). I have a full list of data for 12 months, showing Types and their Quantity received. I've filtered the list to just show the types and quantities received between the date range selected (picture 1).
The three images below show the spilled data, the current chart, and how I would like the chart to look. If it cannot be achieved directly using a spill range, then could anyone suggest another approach to have my data dynamically displayed in a chart, grouped by month?
Not a perfect answer but here's a start:
You could paste:
=IF(COUNTIF(F$5:F5,F5)=1, F5,"")
in J5, and drag this down a sufficient way to cover the expected length of the dynamic array.
Then paste:
=CHOOSECOLS(F5#,2,3)
in K5, and use these three columns for your graph data.
I can't think of a way to make the "J" column dynamic at the moment.
EDIT:
Pasting:
=XLOOKUP(ROW(F5#), XMATCH(UNIQUE(CHOOSECOLS(F5#,1)),CHOOSECOLS(F5#,1))+4, UNIQUE(CHOOSECOLS(F5#,1)),"")
in J5 should work dynamically too.
In excel I have a column of days (mm/dd/yyyy) and I want to have a timeline sort of plot showing how many points I have for each month of each year. It's easy to show how many instances a day appears with a pivot table (added a column "Count" with just 1's), and then make a plot for that, but I don't know how to do that with just the month/year.
I tried using the =month and =year functions, and highlighted those columns (with the "Count" column) to make a pivot table, but I'm not sure how to group and plot it the way I want. Here's what it looks like when I have data point sums for month/day/year, I want the same thing but with the month/year:
And here's my data:
I'm sorry if this is a really low level problem, I'm a noob at pivot tables and have been trying this all day
You can group the data by month (or other useful options like quarter & year) IF values are formatted as actual dates. It looks like yours is formatted as a date but just in case, here are two ways to test...
A) Change format of a cell with date to number (this should return a date serial)
B) Use =ISTEXT(Select Cell With Date) (this should return FALSE)
Once valid date format has been verified
Click on a date in pivot table
Navigate to Analyze tab
Select Group Selection
You should get a pop-up asking how you want to group the data. Select Month
Ensure you are summarizing the points by Sum (right click on point cell in pivot and set option at Summarize Values By)
If you are using a pivot chart, it will update on refresh to reflect new row groupings (I.E. show monthly sums as you asked for)
Before & After photos below
I'm trying to make a line graph in Excel that combines multiple series into ONE line. All I've been able to create so far is one graph with multiple lines on the same y axis. Is it possible to combine multiple data points from multiple series together in chronological order?
For context: I'm trying to make a graph that shows monthly temperatures between 1880-2017. January, February and so on, are each a separate series. I can make a bar graph that shows each year with each month chronologically but is there a way to convert this into a line graph without it producing multiple lines for each month, but instead one line that combines all the month data points together nicely?
Thanks!
If there no gaps in the data you described,
and you have a table
of (2017-1880+1)=138 rows by 12 columns.
Here it is one way to make a one-line graph of the data
(some random imaginary data used in the example).
Unfortunately, standard Excel data functions can handle only
dates not older than January 1, 1900,
see for example, http://www.exceluser.com/formulas/earlydates.htm.
But you are lucky as all you need is just a year and a month numbers.
In this case the dates along the x-axis
can be presented with numbers, which integer part is the year,
and fractional part is a fraction of the year that represents a month.
Assuming that the table is in Sheet1!A2:M139,
select Sheet2 , type in a formula
=1880+FLOOR((ROW()-2)/12,1)+MOD(ROW()-2,12)/12
in the cell A2, and copy it down to A1657 by any means you like.
For example, select A2, press Ctrl+C,
click in the Name box input field,
type A2:A1657 range in it and press
Ctrl+V.
That's it, this will create all the
x-axis date values for the one-line graph.
Next step is to fill the range B2:B1657
consequently with monthly data from the Sheet1.
Select cell B2 and type in a formula
=TRANSPOSE(INDIRECT(ADDRESS(2+LEFT(A2,4)-1880,2,,,"Sheet1")&":"&ADDRESS(2+LEFT(A2,4)-1880,13)))
select range B2:B13,
click at the end of the formula and press
Ctrl+Shift+Enter.
The range B2:B13 is now filled with the T data from Jan to Dec of 1880,
and it is still selected.
Press Ctrl+C to copy this range,
then select B14:B1657 and press Ctrl+V.
That's it, all the readings from the table
will be lined in the range B2:B1657.
Edit
There is even simpler solution for the second part:
fill the range B2:B1657 with formula
=INDEX(Sheet1!$B$2:$M$139,FLOOR((ROW()-2)/12,1)+1,MOD(ROW()-2,12)+1)
It just converts a linear x coordinate of the current point,
based on the subsequent row number ((ROW()-2)) into corresponding row, column pair
in the table and extracts the table value with INDEX() function.
I have monthly values in a column with cumulative values in the adjacent column. The cumulative calculation should only work where there is data for that month so I have used formulas such as =IF(E6>0,F5+E6,"")
I need a line chart showing the cumulative results but I don't want Excel to plot the cells containing "" Is this possible, using either chart options, or by changing the cumulative formula?
I've tried to post a picture of my chart but I'm new here so it won't allow me to. Let's see if it allows a link to mediafire instead.
In my picture (if you can see it) I want the red line for 2015 to stop at March, instead of plotting zeroes for the rest of the year.
Link to screenshot
One possible solution is to use:
=IF(E6>0,F5+E6,NA())
It will display #N/A instead of empty string. If it doesn't look OK, you could create a helper column with this formula, add it to chart, and hide this column.
I have data which I want to display on an Excel column chart. It represents the number of sales per week, where the date is the first day of the week:
If I leave the dates as dates then Excel interprets this as data for one day out of seven, so I get thin columns with large gaps:
I can resolve this by formatting the dates as text, which gives me the style I want:
However, I want a date scale where only the first of each month is labelled, which I think requires a date formatted axis.
Basically, I want to achieve this in Excel instead of paint:
Any ideas on how (if) this can be done?
What you could do is make a line chart on the date axis, add and format error bars, then hide the lines and markers. Use the Minus option for the error bars, with no End Caps, and a Percentage Value of 100%, so the error bar reaches the horizontal axis. Format the error bar lines to simulate a thicker bar.
I had to do this recently and the way I got around it was to create a second set of values using the =Text(A1,"MMM YY") formula.
Instructions on your actual sample data:
Insert a column between Week beginning and Sales (For the purpose of this we will assume Week beginning is in column A)
In the new column B row 2 enter this formula:
=IF(TEXT(A2,"MMM YY")<>TEXT(A1,"MMM YY"),TEXT(A2,"MMM YY"),"")
Here we are telling it only to list if it is the first instance of the new month
Copy it down as far as column A has data
Highlight the data in column B and C
Create a column chart
Your chart will now look how you wanted it
Edit: I just noticed you have "Week beginning" but I assume you want your chart to be week ending for the titles?
If so then make the B2 formula
=TEXT(A2+5,"MMM YY")
and then make the B3 one
=IF(TEXT(A3+4,"MMM YY")<>TEXT(A2+4,"MMM YY"),TEXT(A3+4,"MMM YY"),"")
And drag down, I have added 4 on the assumption your week closes on Friday (Monday + 4 Days) but you can adjust that accordingly