I have an excel sheet in which the chart is dynamically generated each time it runs based on a data table within the sheet. However, due the Excel Series 255 limitation, the chart stopped generating.
Is there a way I can define a subset of Series so the chart can dynamically pull its related data from the table?
For example if I have:
Product Q1 Q2 Q3 Q4
Apples 1 2 3 4
Bananas 3 4 5 6
Oranges 4 5 6 7
Strawberries 1 2 3 5
Within excel, how can I define only Apples, Oranges and Strawberries for the line chart so it will display its related Q-values?
TIA
If I understand you correctly, you can use a simple filter. For example, here is your data plotted originally.
And here is the data after having
applied a filter (Data Ribbon / Sort & Filter Tab / Filter)
Select the table area
execute GoTo Special / Visible Cells Only
Insert a new graph
If this is something that needs to be done frequently, you could write a VBA macro to better automate the process.
If you change a value in a visible series, the chart will change. But if you change the filter, you will need to go through the process again.
Related
I have an existing spreadsheet and macro process I'm trying to improve, and I have multiple tables which refresh for each client, and can have between 3 and 6 rows of data (depending on whether someone has enough history to fill all 6 rows). There is a chart attached to the table which works fine when all 6 are there, but when there are fewer rows, the chart leaves a blank space on the X-axis to account for that table row.
Example of the table when full
Quarter Value
2021Q1 10
2021Q2 7
2021Q3 4
2021Q4 2
2022Q1 1
2022Q2 0
Example of the table when less than full
Quarter Value
2021Q3 4
2021Q4 2
2022Q1 1
2022Q2 0
On the second table, there will be places on the X-axis for values, rather than knowing there's no data and only showing 4 places
Is it possible for excel charts to refresh dynamically depending on what is in the source? I have found plenty of guides for what to do with the chart lines when there is no value, but not to ignore a whole row from the report.
I've looked around here, and other online sources but can't seem to find the solution to what I'm after.
I have a data table with 78,000 rows. The table is set up as follows:
A B C
Issue Client ID Ticket Number
Printer Jam 123456 HP-123
Monitor 987654 HP-124
Keyboard 123456 HP-125
Printer Jam 123456 HP-126
Keyboard 987654 HP-127
Printer Jam 987654 HP-128
This goes on and on. I need to count the number of times a Client ID appears for each Issue, so that I can report the number of repeat "offenders" on it like this:
Issue 1 2 2+
Keyboard 2 0 0
Printer Jam 1 2 0
Hopefully that makes sense! I've tried using a Pivot Table, and while it gives me the counts I need it doesn't really do what I need.
Thanks!
I would probably use COUNTIFS together with a pivot table if I had to do this:
COUNTIFS will be moderately slow due to the size of your data, but the pivot table will make the grouping part relatively fast.
From the picture, I am using this for the COUNTIFS:
=COUNTIFS(A:A,A2,B:B,B2)
Use the following:
=SUMPRODUCT(--(COUNTIFS($A$2:$A$7,$E2,$B$2:$B$7,$B$2:$B$7,$A$2:$A$7,$A$2:$A$7)=1))
Change the =1 to =2 and >2 for the next columns.
This solution uses two PivotTables and one Range.
It assumes the DATA range is located at B6:D111111
Add a PivotTable (PtCount), with the DATA range as source and starting at G6, to obtain the Issue \ Client Id counts. (see Fig. 1 below)
Fig. 1
Change the settings of the PivotField "Issue", by right clicking the PivotField then click on Field Settingsā¦ \ tab Layout & Print \ Repeat item labels (see Fig. 2 below)
Fig. 2
Use a Range, located at L6 and parallel to the PivotTable (PtCount), to manipulate the PivotTable results (i.e. change counts higher than 2 to "2+". (see fig. 3)
The range should have these items\formulas:
Issue : =T($G7)
Count : =IF(EXACT($L7,""),"",$I7)
Offenders : =IF(EXACT($L7,""),"",IF($I7>2,"2+",$I7))
Fig. 3
Add a second PivotTable (PtSummary), with the Range starting at L6 as source and located at G6, to generate the final report. (see fig. 4)
Fig. 4
The more I have to work with Excel in helping our customers with advanced reporting, the more I'm amazed at it's capabilities. That being said, I can't seem to find exactly what this customer wants Excel to do.
Scenario:
We have a datasource which refreshes a worksheet containing many rows and columns of a data export from the customer's database. That worksheet then drives the other tabs' charts, tables, etc.
They want to add a table (pivot) which will take their milestones, sum the (ontime) column, and then take the (rownumber) sum for that area and then divide it so they can see how many projects were on time. Simplified data tab looks like this:
RowNum Area OnTime Milestone
------ ---- ------ ---------
1 North 1 M2
2 East 1 M4
3 East 1 M2
4 North 0 M1
5 East 0 M4
and here's the table they want it to produce.
We can get it to do both using a Sum(value) and calculated field, however we can't get the Sum(value) field to go directly beneath the calculated percentage field. Any ideas?
If I understand correctly, it will be enough to move the Values drawer to your Rows:
If you need to change the order of the values (which one will be at the top etc.), you can do this moving the drawers within Values Window at bottom-right.
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
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.