Filter and plot values that satisfy a certain condition - excel

The data comes from several sensors that arranged in columns, and each row represents a measurement instance (say, a 10-minute average).
I perform some filtering and get a 'Global criteria' column of TRUE and FALSE depending on whether the data met the criteria.
Now, I want to create an x-y plot that only portrays the data that fullfils the criteria; perhaps I am missing something blatantly obvious but I have not been able to produce this graph.
I have tried to create a 'Filtered' vector in the Name manager:
X is
=PRODUCT(GlobalCriteria;Data!$A:$A)
Y is
=PRODUCT(GlobalCriteria;Data!$B:$B)
to no avail...

I have found a non-optimal solution, in that I multiply the boolean vector with the vector(s) I want to plot, and then plot that multiplication. I get of course a lot of values at (0,0) but I can live with that.
I am of course looking for a more elegant solution, perhaps with dynamic names.

Related

Excel - How to find intersection point of two lines on a graph

I have a graph which has two lines.
The graph is generated from "random" data. I.e. not based on a formula or pattern. But there is always a point where the two lines intersect.
I'm trying to provide exact point (on x and y axis) where the lines cross.
Ive tried using slope/intercept formulas
And what if analysis.
However these methods only seem to work if the data is based on a formula or pattern.
I can sort the data and find the point where they are at their closest then take an average using data around that point to get an approximate match.
However is there any way to do this more accurately, or does the nature of my data(random data points) make this not possible using formulas/equations

How to plot the correlation of two Cells in a scatter plot

Okay, I love to use excel to model my complex heat convection problem in a very visual way.
But now I want to compare the result for different input values. Is there a way to create a plot where x is my input variable (in a range i can decide) and y the result (which can be found in a different cell)?
I know, normally you would need to create a table that has all x values in one column and all y values are calculated in ONE STEP in an adjacent cell. But as my calculation is quite complex, this is not the case.
So in a very simplified way, this is how my excel looks like:
Simplified version of my problem
How would you create a scatter plot of such a relation?
I tried to google the problem, but I didn't find a similar question

Excel data - cleaning data with multiple values for numerous instances

I have a data set which is related to force applied vs distance traveled.
When the data was created the measurement software has provided multiple values for distance traveled as the force increases, then in some cases the data has no values for distance at the force values.
I have several data sets which look like this.
The data looks like this
I want to 'clean the data so I can create a graph with all 3 samples in columns the same height so it is easy to edit and make scatter graphs from.
I tried to clean the data by using VLOOKUP to create a column of force values at each 0.5N, but when I do this I end up with a large table that has lots of missing data points, when I make the graph from this there are lots of blank areas which don't seem to plot correctly.
The VLOOKUP data looks like this
The graph looks like this
Is there a better way to do this which will give me a better looking data set which is better for creating a graph from?
I have about 30 sets of data, so any info that you have would be greatly appreciated.
Why make the columns equal length.
If you plot the three samples with the data as given, an XY graph should look OK:
If there's some other reason to make the columns equal length, I'd "fill in the blanks" using the FORECAST or GROWTH functions, or use a trendline.
You can use IFERROR to insert something in place of the #N/As. For example, you could use =IFERROR(VLOOKUP(A1,D:D,1,FALSE),0) to add a zero in place of the #N/As

How to highlight specific data points in a scatterplot (Excel) based on certain conditions?

Suppose I have a data with two sets of xy coordinates, one pair for the customer side and one pair for the vendor side (so in total, there should be four columns, two x's and two y's). We can call Xc for customer and Xv for vendor and vice versa for Y. I know how to make a plot in excel and overlay the two pairs of coordinates, but I am stuck on how to present such plot with specific data points highlighted with a different symbol/color based on conditional statements. For example, if any data points in Xc or Yv have coordinates outside of a specific range (think of them as outliers), I would like to flag such points on the scatterplot. I know one way is to filter out the points first and create it as a separate series then plot, but wonder if there is a more streamlined procedure in doing so as I need to make a template for future references. Any help would be greatly appreciated.

Conditional heat mapping

I am looking to make a heat map (bubble graph) which allows you to filter what plots on the graph based on a few descriptive criteria.
In the bubble graph, there are three "scoring" variables (x-axis, y-axis and bubble size), but each item in my graph also has two associated descriptive data points. The first data point can be three possible options (x,y,z), and the second data point is a yes, no question. I am looking to be able to filter what shows in the heat map based on the two descriptive criteria.
For example: Only show things in the bubble chart where descriptive criteria #1 = X and descriptive criteria #2 = Yes
I have attached a sample worksheet which might be more helpful to understand what I am looking for.
Thanks
I'd you can do this with most of the charting libraries, but you'll have to write a data filter yourself. Take a look at this example: http://www.amcharts.com/inspiration/motion-chart/
It is based on a famous Gapminder widget. If you click on a continent on the top-right, the bubbles of other continents will become barely visible. This is done by simply looping through the data and setting opacity of all bubbles except the selected continents to some close to 0 value.
Disclaimer: I am the author of amCharts.

Resources