I have a column of data in the form 1999Q1, 1999Q2, 1999Q3, 1999Q4, 2000Q1, etc. I would like to show these in a graph simply as 1999 and 2000—essentially, to just use the first four characters of the cell data.
In the Format Axis dialog under Custom label, I've tried using #### and 0000, but neither format seems to have any effect on the display.
What would my custom format have to be to make 1999Q2 display as 1999, and so on?
I could be wrong, but I don't think you can do that with custom formats.
What kind of a chart are you using? If it has a categorical x-axis (line, column, bar), then I would create another column. In that column use a formula, such as:
=Left(A1,4)
to get just the year numbers. Then use that column for your X-axis Labels.
An alternative would be to split the year/quarter into two columns like this:
Notice the x-axis layout that you get when you select A1:C9 to create the chart.
Related
On a data/line plot inside Excel, I'd like to color my data points depending on a value inside the table on the same row as the data value, however from a different column.
It's best explained with a picture:
It's essentially a line chart type with the lines removed, and the data points set to bullet type and given an increased radius for visibility. The x-axis denotes the calendar date as dd.mm, and the y-axis contains the values.
Now the Excel table also contains a row called "Time of Day", which can be mo(rning), mi(dday), ev(ening).
Can something like this be done with a line chart, or do I need to use a different type of chart, or is this generally not possible in Excel (which I doubt)?
Excel in use is: Microsoft Excel for Mac, Version 16.51 (21071101).
Here's a way to achieve this:
What I've done is:
Added three columns for the times of day (columns B, C and D). These can be hidden.
Added this formula in B2: =IF($E2=B$1,$F2,NA()) which should then be dragged to cover the next two columns and then down to cover every day.
Selected A1:D11 (it'll be more than 11 on your version)
Went to Insert > Chart > Insert Line or Area Chart > Line With Markers
At this point you have a line chart with three series (mo, mi, ev). The lines can be removed, which just leaves the markers. You can format each series separately, with different colours, shapes, sizes, etc.
As a special bonus, this automatically gives you a legend that explains the colours.
I need to create a graph that properly represents the profit-maximizing model of aircraft in different scenarios. I apologize in advance for my lack of understanding in what exactly to call it. As mentioned, I have found the type of graph that would best represent this, but cannot figure out how to code/create it. I have tried using Excel and Think-Cell (and either one of them may work, I just haven't figured out how) and haven't had much luck. The image below represents the ideal graph, linked here:
Does anyone have any idea how to best go about this? Thanks in advance.
Edit: The data I have now looks like this, linked here:
You need to use the data to generate a Stacked Column chart.
Here is how I set up my own example data (before you posted your own data format):
Next, select all rows and only the first four columns of the data (42R x 5C) and Insert-->Charts-->2D Column-->Stacked Column. You should get a chart like this:
Then change the vertical axis options to show Bounds Min=1.0, Max=4.0, Units Major=0.2, Minor=0.1.
Next, select any of the data series in the chart and format the Series Options for Series Overlap=100%, Gap Width=0%.
After that, I deleted the Title and Legend, set the Line Style for both Axis to Solid Fill, Black Color. Then I changed the data series colors to be close to your example. Lastly, make sure the chart is selected (the border is highlighted with the squares at the corners), then Insert a TextBox over your data and type "B747-200P2F" and manually place it over the correct data area. Repeat this for the other series and you get this:
Finally, we'll work on the Jet Fuel price line. This series will be added to the chart, then plotted on the secondary axis and it's chart type changed to Line.
To start, select only the Jet Fuel price column (F1:F42) and then copy that range into the clipboard. Then, make sure the chart is selected and, from the Home ribbon, select Paste Special. Use the default settings, or choose Add cells as New Series, Values (Y) in Columns, check Series Names in First Row, uncheck Categories (X Labels) in First Column, then click OK. (Not much will seem different on the chart yet!)
The next steps are important to take in order (at least for me). Select only the "Jet Fuel Price" series and change the Series Options to Plot on Secondary Axis. Then change the axis options to set the range from 1.0 to 4.0 and set labels to None. Just so we're tracking, here's what I have so far:
The (almost) final step is to select only the "Jet Fuel Price" series again, then right click it and choose Change Series Chart Type. Make sure you select the Combo chart type and make the selections for each of the series chart types as indicated in this picture:
Now (finally!) just add another textbox, put in your label and set the text color to red.
I want to plot the sales on specific dates. But of course there hasn't been sales on some weekends and holidays, so i dont want to plot these days. Just skip these days in the graph. But as soon as i create a bar chart in excel and select the data points, excel automatically put the other dates in without data. How can i force excel to show only the data points i provide?
I attached to data point and the graph which excel creates.
http://imgur.com/a/RzN1l
http://imgur.com/a/Tx6dm
In the colum (or row) of data representing your dates, ensure they are string literals and not date values. You can do this by prepending a single-quote, e.g.:
'14/04/2017
Strictly speaking, you only need to do this to the first date.
easiest way is to format the x axis with the following option: Axis Type: Text Axis
I calculated data in Matlab.
Now I want to format it in excel.
The values in first row represents some average values. The values in second row represents standard deviation.
I try to draw a graph, but standard deviation bars do not strech up and down evenly, as they should.
I want to achieve graph like this:
https://en.wikipedia.org/wiki/Error_bar
I am using Microsoft Excel 2010.
I found an answer here:
https://www.youtube.com/watch?v=2Etko-slowk
It is VERY important you delete all the data, when you set custom values from both textboxes (after you click specify values).
I am trying to create step-chart in Excel using tutorial (section "Step Chart Approach 2: Line Chart with Repeated Ranges").
However, it works incorrectly.
According to instructions (section "How it Works") values from 2 named ranges should be shuffled, while I get consequent values from 2 ranges.
The resulting Series formula seems to be correct:
=SERIES(Sheet1!$B$59,('Book1.xlsx'!KPInames2,'Book1.xlsx'!KPInames),('Book1.xlsx'!reqKPI2,'Book1.xlsx'!reqKPI),1)
(I am using namedRange2 instead of namedRangeX)
What am I doing wrong? How to force excel to mix values from 2 ranges?
The problem was really in category axis insted of required dates axis.
So the solution is to create a series with dates axis insted of needed category axis. And afterwards to create dummy invisible category series on the secondary axis.
Finally, playing with axis placement and visibility will produce required result