How to change columns in a plot with shortcuts - excel

I am working on Microsoft Excel 2013 scatter plots and I'd like to know if there is a more productive way to do this:
Let's say I have a big database with several columns and rows, i.e:
A B C D
1 Length Width Volume Area
2 2 1 8 4
3 3 2 7 1
4 1 5 3 5
5 7 3 12 6
I create a scatter plot for Volume vs Length. After, I want to create another scatter plot for Area vs Width. As I have a lot of rows and columns, I copy the first plot and then, in select data, I change the range of data (A to B and C to D). Is there an efficient way to do this? (shortcuts with arrows keys, maybe? I didn't find them) or Do I have to change the letters manually?
Thank you.
J.

If this is a repetitive task in the sense that every say Friday you create the same 4 graphs based on new information in the same columns then you could record a macro of what you are doing and associate it with keyboard short cuts.
You can do the same thing with updating the graph information but it starts getting a little more complex when you start changing which column number you want as the series. But its definitely possible. I would recommend recording a macro of you editing the 2-3 graphs so we can sheet patterns and we can probably help you edit the macro.
Now something simpler that may, and I stress may, suit your needs. Select A1 to D5, then insert you XY scatter plot. You X axis which should be common to all needs to be in the left most column. When you go to edit your source data you should see each series listed. You can simply check and uncheck which series you would like to have active. the ones with a check mark will display. If you needed three graphs at the same time, you could then copy and paste the graphs twice and set up each one to your desire without having to reselect the data range, you would just check/uncheck which series to display

Related

In Excel: How to built a graph with time as X, names as Y with multiples series?

I am looking for a way to make a specific graph in Excel and I can't find a solution in Excel or on the web.
I have data about an online training with people completing parts of a course at a certain time:
FullName
Course
TIME
Name-A
Part 1
23/03/2022 10:38
Name-A
Part 2
23/03/2022 12:07
Name-A
Part 3
23/03/2022 16:55
Name-B
Part 1
11/03/2022 15:14
Name-B
Part 2
22/03/2022 12:08
Name-B
Part 3
28/03/2022 16:06
Name-B
Part 4
30/03/2022 14:55
Name-B
Part 5
18/04/2022 08:13
Name-C
Part 1
11/04/2022 15:25
Name-C
Part 2
20/04/2022 13:50
I would like to have a specific graph of this data:
On the vertical axis: one row for each user' name: Name-A, Name-B and Name-C.
On the horizontal axis: continuous time (say, in days) From the minimum time in the table (or less) to the maximum (or more)
Series of plots for the data: Each part of the course (from Part 1 to Part 5 here) would be a series of dots of a specific color, placed on the right row (for a learner's name) above the corresponding time on the horizontal axis.
Do you have any idea on how it could be achieved?
All the best, R.S.
Edit: The table does not appear as in the preview so i try to add a screenshot:
Screenshot of the table
So one way to visualise this as mentioned in the comments is to create a separate series for each person and show passing each part of the course as a vertical step:
It's based very loosely on this but I've set each day in the date range as the x-coordinates and used a lookup to transform the data in H2
=RIGHT(XLOOKUP($G2+TIME(23,59,59),FILTER($C$2:$C$11,$A$2:$A$11=H$1),FILTER($B$2:$B$11,$A$2:$A$11=H$1),0,-1))+(COLUMN()-COLUMN($G$1))*10
pulled down and across to give
Explanation
The data for the graph has dates spanning the times in the raw data for its x-coordinates (column G). I generated it manually but could have used Sequence in Excel 365.
There are three columns of y-values, H to J, generating a separate series for each person. The three lines are initially spaced out by 10 units based on the column number. In the formula above, the raw data is filtered by the person's name so the headers in columns H, I or J match the names in column A in the raw data. Xlookup is used with 'next smallest' match so where the date in column G is greater or equal to the date/time in column C it will return the corresponding course from column B. Because column C actually contains date/times, I have added almost 24 hours when matching the date in column G to make sure that a match is found if the day is the same, regardless of time. In a case like Name-A, where three courses are completed in the same day, this will automatically select the last one (Part 3). Then I take the right-hand character of the course name (which is a digit in the sample data) and add it to the relative column number multiplied by 10. If there is no match, Xlookup returns zero so you just get the initial value for each series (10, 20 or 30), otherwise the result will be an increase by one unit each time a course is passed. If you couldn't assume the last character of the course name was a digit, you would need a lookup to assign a number to each course name.
The data is then plotted on a scatter graph with points joined by straight lines. I had to adjust the x-axis manually to make the range correct and the labelling clearer.
This could be done without Excel 365, probably using Aggregate to get the highest row number with a condition on the name and date.
EDIT
I could have achieved the same result much more easily using Countifs to find how many courses had been passed by a certain person by a certain date:
=COUNTIFS($A$2:$A$11,H$1,$C$2:$C$11,"<="&$G2+TIME(23,59,59))+(COLUMN()-COLUMN($G$1))*10
This wouldn't have needed Excel 365. If you needed to give different courses different weightings, you could do this with a sumproduct and a lookup, also fairly straightforward.

How can I use 3 chart types in excel over both axis OR otherwise properly show the data for multiple data sources?

Sorry about the title, it was hard to figure out how to word this. So, my main problem is a Total Count column represent the overall quantity, but the other columns are PART of a Total Count column. This wouldn't be so bad except the other columns may be part of each other too. Meaning, for like 11/26/18... the Total Count column is ALL of the Item Count, but some of the other ones may be in New PR Count too, but not necessarily all. Same thing with Dropped Outside LT and Dropped Late columns. They are all part of the Total Count column but all are not necessarily separate.
I feel nothing short of a bunch of complex formulae or macros will fix this so, what is my best option to show at least the individual counts? I was thinking to have the Total Count column as a Clustered Column chart type, the other columns as a Stacked Column and the 2 lines as is. Or all columns just be Clustered Columns and lines as is. What do you all think would best show this data?
So sadly, due to proprietary, I am told at work not to upload an image of the chart. FUN. So, here is what I have..
7 Series - 5 Series are Stacked Columns in Primary Axis, 2 Series are Line with Markers in Secondary Axis. Each column is for a single week's entry of data (so based around a Date entry.
The two Line with Markers are percentages (Secondary Vertical (Value) Axis) on right side of chart. On left side is Total Count (Verical (Value) Axis) basically showing a Count being connected to the Total Count column.

Excel build bar graphs with oddly formatted data

I am currently working in Microsoft Excel 2011 on Mac OS X. I am given a large amount of data in different tables and need to make 2 variable bar graphs with the data.
I understand that the usual way of orienting bar graphs in excel involves placing the data like so:
a b
A 1 2
B 3 4
However, currently I am going to be working with a lot of data of the format:
A a 1
b 2
B a 3
b 4
Is there a quick way to either 1) Convert the data from my format to the correct format, or 2) Build a bar graph (without having to go in and do a ton of customization of the data) with the current format.
Currently the only solution I have working is to manipulate and move the data around and rename everything once the bar graph is made, but this is very cumbersome.
I would do this in three steps:
Fill in the missing values for your first column. This is a bit manual. If the data is huge you consider writing a quick vba subroutine. At any rate, make the data look something like:
Highlight this data and turn it into a pivot table.
Structure the pivot table to match your bar graph data format and add a pivot chart:

Create a graph in Excel 2010 using 3 columns of data

I have been looking online tirelessly for a solution to the following problem but to no avail. I am trying to create a seasonal plot for the table below. My goal is to plot sales against quarter, classified by year.
Any help would be much appreciated! Thank you.
Do these look like something you want to get?
I used fake data just over 3 years.
Each years is represented by a line.
Each line spans over 4 quarters.
To make this you select:
1) Series are years => 3 years = 3 series, Give each a name (e.g. 2003)
and input values so for year 2003 my values are =Sheet1!$C$1:$C$4
2) Then on the right edit your X-axis the values there are =Sheet1!$B$1:$B$12
3) Adjust labels and formatting
EDIT
For this you'll have to combine year and quarters as shown e.g. 2003 Q1
I guess you can't create a 2-dimensional chart using all 3 inputs
Make the following modifications to your data.
Clear the cells above the years and the quarters.
Remove all but the first instance of each year in the first column.
Select the data range and insert your chart. You will get a category axis with two levels, quarter close to the axis and year below that. This is the technique in my tutorial Chart with a Dual Category Axis.
I've illustrated this with a subset of your data (note blank cells with faint yellow shading). You can make a column or line chart directly from this data.

Control which rows a data table will calculate

I have a 2-way data table in Excel (as in the option under "What-If Analysis"). There are 50 rows when analysing a 50 year deal, but only 4 rows when analysing a 4 year deal.
I only want to use one data table (of 50 rows) but I don't want it to calculate all of the values if it doesn't have to. e.g. if I have a five year deal I want the values in the first 5 rows to be calculated, but for the rest I would like it to display 0 or a blank.
Is there a way to do this without VBA?
(I was thinking with VBA I could create a whole new data table every time I run it, but would prefer not to as I am still developing structures.)
I'm guessing that either your row labels will step consistently. Just blank out the years that are not required, when not required (rows 6 and upwards in your example for 5 years), and repopulate with series fill to suit.

Resources