Display reference lines based on a filter selection - reference

Right now, there are two reference lines added (which are the blue and red lines) for each cell. The blue line is SUM(1DayLValue) to SUM(1DayUValue) and the red line is SUM(2DayLValue) to SUM(2DayUValue).
I would like the user to be able to select a filter which has options (1 Day and 2 Day). If the user selects 1 Day, only the blue line shows. If the user selects 2 days, only the red line shows.
Right now, the red and blue lines are individual cells in my dataset. And I don't have a column that I can put as a filter where the user can select 1 Day or 2 Day.
How is this done?

Related

Excel graph using stacks

I need to develop a stacked graph based on time intervals:
Basically I have 10 different time intervals and I want to display all the values that I have stacked on this time interval, for example:
Dataset example to plot the graph:
Time interval - Name of the group - Number of jobs
2 minutes Group A 5
2 minutes Group B 10
2 minutes Group C 15
4 minutes Group A 10
4 minutes Group D 5
6 minutes Group B 25
6 minutes .. ..
6 minutes
8 minutes
10 minutes
10 minutes
10 minutes .. ..
10 minutes Group A 10
So basically I want my X axis as the time interval (2,4,6 minutes..)
And on each bar of the time interval I want to stack the group values with a legend for the name of each group.
So on time interval of 2 minutes I would like to have a total stacked bar with value 30 (5+10+15) and this bar would need 3 different colors for each group inside (Groups A,B and C)
Is it clear?
Thank you so much for the help!
You will want To rearrange your data like this:
You can then easily generate a stacked column chart:
First of all, you'll need to organize you data in a matrix where the colums' titles are the groups and the rows' titles are the time interval values.
For that, you can use Pivot Table.
select all the data cells (including thetitles in the first line).
click the Add tab, click PivotTable.
Choose Where to place the Pivot Table(I prefer in the same sheet,
but when there's a lot of data it might be better to place it in a
new sheet).
in the left panel "PivotTable fields", drag "Time Interval" into
"columuns", "Name of the Group" into "rows" and "Number of jobs"
into "values".
because pivot table is acctually used for counting and summing, in
addition to the matrix there will be grand total values which you
can (and should) remove by right click on "Grand Total" and then
"remove Grand Total" (you acctually should do it twice, one for the
row grand total and one for the column grand total).
There might be other annoying titles such as "Sum of Number of jobs"
and "column titles", don't worry you can edit those title cells like
any other cell.
finally, select all the data in the matrix (include the groups'
names and the time intervals), click the Add tab and click the bars
chart icon and click the stacked bars chart icon.
Done!
let me know if this solved your problem or if misunderstood the problem right.
Good Luck!

Save just data after filter Pivot table

I've created pivot table with group and sub group. So I have 2 data sets in a row subtotal by one. Then I do filter(by value) to get Top 10 sub-groups with biggest value. I need to keep only top 10 data with no option to remove filter.
For example:
Row 1:
Shop name Sales Value
Flower shop 1
- red rose 500
- yellow rose 480
- ... to top 10
Flower shop 2
- black rose 520
- green rose 470
- ....
So I need to keep only top 10 in each shop with no possibility to see other flowers in each shop.
Copy-paste data as values is not an options because I don't get in desired format.
I know the answer to this one now
assuming it's excel you are working with go to the file tab
then if for example it is excel 2010 you can "Check for issues"
"inspect document"
then un tick everything except the "Hidden Rows and Columns" and "Hidden Worksheets"
then Inspect. once it has completed it will tell you how many hidden sections it has found and give you the option to delete. leaving you with only the filtered Data

How to take some characters in a big text in excel

I have in my excel one column that describe one apartment to sell, I want just one information in that column : the number of meters square. I want to know that exist one formula that take x characters inside that description. for example: "Apartmento to sell, 45 m², 2 rooms, 4 bathrooms....." I want the 45 number without I having to look every single line.
Find the position of m²
=FIND("m²",A1,1)
Take the left of the text (cell) and your number should be at the end
=LEFT(A1,FIND("m²",A1,1)-1)
If it always start with Apartmento to sell, 45 m², 2 rooms, 4 bathrooms
=TRIM(REPLACE(LEFT(A1,FIND("m²",A1,1)-1),1,19,""))
If the format is similar for all rows, then do Text to Columns (under the Data tab) and specify the delimiter as a Comma. Then, your second column will only have apartment dimensions
This works regardless of anything else, so long as there are at least two commas in each entry, and the dimensions are always between the first two commas.

How to change columns in a plot with shortcuts

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

Grouped barplot in excel

Been looking for an answer to this question but as I found nothing I ask it here in hope of getting an answer. This is probably easy for most people.
I got three columns in excel where the first column has the values 1 OR 2 and the second column has the values 1 OR 2 and on the third column are reaction times for each subject (one row is a subject). So a subject can be either 1 or 2 on first column, either 1 or 2 on second column, and then their reaction time.
I want to do a clustered column plot. In the Y-axis I would like to have the third column (its reaction time in milliseconds). On the X-axis I would like to have two groups (take column one, where one group is 1 and the other is 2. Each group (1 and 2) will further be divided into two groups (second column, values 1 and 2). Those could be symbolized as two different colored bars within the two groups of the x-axis (what this second split reflects could be shown on a legend as color red and blue). If I mark all values and press "clustered column", the result is weird. And working with the stuff within the "select" button is like reading hieroglyphs.
(Unfortunately, I could not write how my data looks like because all numbers appears next to each other instead of having them as three columns.)
Look into pivot Tables and get a chart from that.
1) select the table data(have headers for Group 1, Group2, and Reaction)
2) Insert--> Pivotchart
3) Put Group1 into the Axis fields
4) Put Group2 into the Axis fields below Group1
5) Put Reaction into the Values box.
6) Reaction will likely appear as Sum, so click Reaction and 'Value Field Settings'
7) Change to Average(I presume you want an average of reaction times...)
8) Play around with right-clicking the various areas of the chart to learn about formatting the chart...

Resources