Question

I have a table in Excel with sales of sellers on weekdays.

What I wanted to do was make a line chart, but only with the selected seller type this:

enter image description here

How do I put the chart only display the data of the seller selected?

File: https://dl.dropboxusercontent.com/u/22618054/grafico_dinamico.xlsx

PS: the cell D8 is a dropdown select list.

Was it helpful?

Solution

Create a chart based on a line of data that you fill in later, not directly off the table.

Assuming table starts in A1
Set up the data line as:

=Seller
=offset($A$1,match(Seller,$A:$A,0)-1,1)
=offset($A$1,match(Seller,$A:$A,0)-1,2)
...

we subtract 1 from the match, as match gives us a number starting with 1, and offset uses a number starting at 0. If your table starts at another cell, subtract that row number to get the correct position for the data line to read (e.g. if table is at $Q$77, then the match formula would be match(Seller,$Q:$Q,0)-77.

OTHER TIPS

Create a "Pivot Chart" and drag Sellers into the "filter" field

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top