Compare Numbers With Tolerance
Jul 6, 2007
I have two numerical columns of different length. One presents the signal and another one the background. Most of the background numbers are found in the signal column but they are not exactly the same and not located in the same rows. The numerical values are the same within some tolerance that I can specify. What I am trying to do it to remove all the background values from the signal column.
View 8 Replies
ADVERTISEMENT
Jul 25, 2007
I am trying to replicate a method , it reads: 'any data point that changes by more than or less than 10% from the previous value, and does not remain at the new level for more than 6 days, should be removed.'
Thats a bit vague. The process is going to involve if statements, etc. I've attached an excel spreadsheet with some solutions I've tried. Neither of which work. The aim is to get the same answers as the highlighted column. Columns B and C replicate the method answer, but do not state the process. The letters L represent values less than 25. Its the letters D I'm trying to eradicate.
View 2 Replies
View Related
Apr 8, 2008
I have an unknown number of rows that represent parts and 6 columns that represent part dimensions. I need to find and output matching pairs of parts that are within certain dimensional tolerance ranges.
For example:
Dimension 1 Dimension 2 to Dimension 6
Part 1
Part 2
to Part X
-I would need the code to check if Dimension 1 of Parts 1 & 2 were within a certain range and if Dimension 2 of Parts 1 & 2 were within a range etc. then (if all of them were true) output them as a pair. Otherwise, it would continue to search for paired parts. Once a pair is found, those parts can't be used again. How can I do this?
View 6 Replies
View Related
Aug 6, 2008
I have a DDE linked cell that is constantly updating (cell A1), I want then to have a cell (cell B1) that changes only when cell A1 differs from value currently in B1 by a certain percentage, then check B1 for the same tolerance level against A1, and repeat. I can do this in a number of ways in VB, however when VB code is running causes the DDE link not to update and since the update is constant I cannot use selectionChange and Change VB Worksheet function result in the same error.
View 6 Replies
View Related
Aug 20, 2012
It's a worksheet for testing milk tanks. The issue is as follows:
Column F = Chart Error/This can be either a positive or negative whole number
Column G = Tolerance/This is always a whole positive number
Problem is I want Column H = Status to say "Pass" or "Fail" based on meeting the Column G number. But it's only the number itself (not whether it's Positive or Negative) that matters in determining the P/F status.
Examples:
Column F= -20
Column G= 15
Column H= Fails
or
F= 20
G= 15
H= Fails
The formulas I've been coming up with will show one or the other as Failing but not both + or - numbers if they fail to meet the G Column tolerance number.
View 6 Replies
View Related
May 3, 2006
I need to compare two colums by number decription for example m344 in one column and fsh344-1 in another. All I want to match is 344. In column a I want to indcate the match by placing an X by each match. View my attachment for reference. I don't know if it makes a difference but the columns are centered in my original spreadsheet.
View 8 Replies
View Related
Aug 8, 2009
I use this formula to calculate if a move is out of tolerance =IF(ABS(B1)>=1,"Y","N") This will work on most of the stuff we load. I would like to modify it to if b1 = "Crude" then use =IF(ABS(B1)>=.5,"Y","N"), or if B1 = "Resid" then use IF(ABS(B1)>=2.0,"Y","N"). Is it possible to include the 3 tolerance bands in one formula?
View 9 Replies
View Related
Mar 3, 2007
I am successfully using VBA to check a cell on one sheet against a cell on another sheet.
How easy would it be to check if this is the same OR less than 2 or more than 3? I have done part of this using nested formulas but cant find anything to help me with the syntax in VBA
The code I am using is
If W1.Cells(a, 3).Value = W2.Cells(b, 3).Value Then
View 4 Replies
View Related
Jul 17, 2007
I have a large amount of data pertaining to many different runs in which I am given the mass to charge ratio of a compound. My goal is to identify these compounds, and to ease this process I am trying to find a formula that would “line up” near identical masses while providing a blank if no mass was found in that run. For example, if I have:
Run1
185.041
196.073
200.454
667.175
Run2
185.040
196.074
398.452
667.175
Run 3…etc
I would like to have it arranged:
Run1Run2
185.41185.040
196.73169.074
200.4540.00000
0.00000398.452
667.175667.175
It would be important to have some sort of tolerance setting, as the readings are not always exactly the same. Also, I’d normally have about six runs of data to line up.
View 8 Replies
View Related
Oct 26, 2008
Below is a short segment of my excel spreadsheet:
A B
1020.00242-89.84
1020 -88.11
1021 -85.3
1021.494-80.41
1021.49 -86.98
1030.04 -89.4
1030.042 -88.26
1030.94 -79.98
1030.933-81.5
1030.961-85.87
1040.0418-88.77
1040.391-87.3
1040.291-82.94
1040.016-84.12
1049.82 -84.7
What I need to do is write a macro that will find duplicates in Column A, within a changeable tolerance, say 0.1 (10%).
After finding all duplicates within a tolerance in A, I need to make another "Master" worksheet with the Duplicates from A, and their counterpart in B. So if A1 and A4 where within 10% of each other, the "Master" worksheet would contain:
A1 B1
A4 B4
using the values, giving:
1020.00242-89.84
1021.494-80.41
I tried using SUMPRODUCT and some other functions but just can't seem to put my finger on this one. I'm sure it's not hard and am overlooking something.
View 9 Replies
View Related
Sep 13, 2007
I am trying to apply conditional formatting to multiple columns based on a percentage varience of the value in the first cell of each column. I'm sure this is not a new concept however I have been unable to find any advice when searching. I have attached an example of my problem as a picture speaks a thousand lines of code.
View 8 Replies
View Related
Feb 27, 2009
I have two large ranges of numbers stored as text.
I would like to compare first element from first one to each of the second, make a shortlist, and then further analyze the data on shortlist by some additional criteria.
After that the result is written to some place and the cycle continues with the second element from first range etc
Question:
Is it possible (in VBA) to create temporary arrays(baskets) where the fist set of data is analyzed and then after obtaining the result, array(basket) would be emptied and new sets of data is loaded and the cycle goes again?
how the code would look?
View 14 Replies
View Related
Apr 22, 2014
I'm trying to identify where a set of values 'agree' within a specified tolerance.
I have a list of scores from different sources, and wish to both average them (easy to do) but also to identify how well they 'agree' by flagging those which have a difference above a specified tolerance. The numbers are all integers, and the tolerance will be an integer.
To give an example, I might have cells with values (2,3,2,2) and these agree within a tolerance of 1. If I had cells of (2,4,2,2) these wouldn't agree. I'd like to flag (by the creation of an 'X' within a separate column) where these cells do not agree.
I've done this previously by using chained If and Or statements (e.g. if A1 = D1 or A1 = D1+1 etc etc) but this is laborious and means I have to change logic every time I add a new sample.
Is there a way of specifying a range of cells (e.g. A1,D1,H1, J1) and seeing if the values of these cells agree to within a stated tolerance? I'm happy to define named cells to specify and argument/attribute.
View 2 Replies
View Related
Aug 7, 2009
I need to be able to get a true/false from a tolerance percent.
Here is an example of what I am trying to do
cell a2 is Nitrogen
cell b2 is (Known gas%) 2.4800%
cell c2 is (unknown gas%) 2.4963%
cell d2 is =b2-c2 and I get the answer no trouble there. what I need is to take the answer in cell d2 and set a plus/minus 2% tolerance in cell f2 and get a true/false comparison.
View 4 Replies
View Related
Sep 4, 2008
a lookup and match of two values.
For example, in Sheet1 I have a unique transaction reference number and a £ value.
eg. 60231568 £38.05
In the next sheet (Sheet 2), I have a summary of data, and I need to return the company name...
60231568 £38.04 Company X
60231568 £15.12 Company Y
60231568 £10.11 Company Z
60245871 £105.11 Company Q
The look up needs to match trans no, amount (within 3 pence threshold) and return in this example company X.
View 9 Replies
View Related
Sep 13, 2013
I have two columns that each contain about 100 serial numbers. Most of the serial numbers shoud be in both columns. How to I determine if there is a serial number that is only in one of the columns and not in the other?
View 4 Replies
View Related
Oct 25, 2005
Is there a way to compare two cells to see how many
numbers are same?
For example, A2 contains 16, 17, 19; B2 contains 16, 17; and I want to put
in C2 the result 2.
View 13 Replies
View Related
Sep 14, 2007
I want to compare 3 columns of data across the same row with an IF statement to verify that all 3 numbers match. I would like the IF statement to only look to the first decimal place, rather than the entire number. In the first example, all columns equal. In the second example all columns equal only to the first decimal place. In either case, all 3 numbers would be equal when rounded down to one decimal place.
Example 1
Column A Column B Column C
84.5 84.5 84.5
Example 2
Column A Column B Column C
84.51 84.53 84.52
View 2 Replies
View Related
May 15, 2008
This is a continuation of a thread that jindon and I had over at the "other" excel site.
OK, where did we leave off.. Oh yeah, It wont get past the:
If rng Is Nothing Then Exit Sub
because it thinks the range is empty.
Set rng = Range("b6:b1103").SpecialCells(2, 2)
View 9 Replies
View Related
Sep 28, 2007
I have an If loop which looks like: If x < 54.5 And x > 52 Then
I have declared x as "Long", but still when it does the comparison it seems to round x up to the nearest whole number for the second comparison ( x > 52 ).
View 4 Replies
View Related
Dec 3, 2008
I have a worksheet with property numbers in colum A and first names in column B. Another worksheet has property numbers in A, first names in B, and last names in C (different order, all mixed up)
I want to put a formula in the first worksheet that will compare the property numbers and when it finds a match put the last name from the second worksheet into the first. Does that make any sense? I have tried vlookup but i'm obviously doing something wrong. example below....
# first last
123 x
124 y
125 z
another sheet looks similar but has info in the "last" column. the numbers between the two sheets are not in the same order so i need to search by number and put the info from the second sheet into the first.
View 3 Replies
View Related
Jan 22, 2009
I have the following:
cell B2 value = "P1'08"
cell C2 Value = "P11'09"
cell H1 Value = "P4'09"
The value stands for the Periodnumber and a Year so P1'08 stands for period 1 in the year 2008.
In cell H2 I want the following:
If value in cell H1 is the same as B2 or C2 or is in between these periods then the value in H2 should be the value of cell D2. If not the H2 should be empty.
View 10 Replies
View Related
Oct 26, 2012
how to return the highest value of repeated controls in column A.
when comparing the numbers repeated in columns "A"
will return the highest value in column "D"
control
plug
block
value
Formula
115
20
1012
28,9
31,2
this is the highest value of repeated controls in column A
[Code] .......
View 3 Replies
View Related
Sep 15, 2009
I have a column of numbers (column A) which I'd like to compare to an adjacent column of numbers (column B) and, by row, determine if the number is larger.
If it is, I'd like to place a different colour on the cell. What is the formula I need to use to accomplish this?
Ex:
Col A Col B
30,000 5,000 - A is larger than B, therefore A is formatted RED
20,000 20,000 - A is the same as B, therefore no format applied
10,000 15,000 - A is less than B, therefore A is formatted GREEN
View 2 Replies
View Related
Aug 9, 2012
I have 29 excel files with some number of worksheets from 1 to 4. The name of the worksheets are the same in all the spreadsheets. Then I've a got a pivot table. I have to compare some data (3 columns) from the pivot table to the numbers from all these sheets from 29 excel files.
How to do it in a most efficient way?
View 4 Replies
View Related
Feb 21, 2014
Basically I have two sets of data. One will be new each week. I'd like to use the non-changing data as a base to compare new data to. The formula would need to match multiple values, including a 'time between', and then return whether a minimum rate has been met.
SampleRateExamine.xlsx‎
View 3 Replies
View Related
Mar 10, 2009
I have two ranges of numbers stored as text on two different sheets.
The first one is from product code and the second is from product category.
The problem is both ranges are of different lengths and I have to find out if a product from the right is part of a particular product category. Even if the length is different the first digits are indicative of the belonging of a code. For example 1234 and 12345 are “family”-their first 4 digits match.
Just to give you an example of what is desired:
Category____ Code
2200 ________22002
2323________ 232347
So, the loop should do the following:Compare the first string from the “Category” column to each and every entry on the right, if a match exists (we have no match here for 2200) write “ok” next to it.
Next trim one digit from the right from every string in the “Code” column.
Compare same first string from the “Category” column to each trimmed string from “Code” column (here we should have a match 2200=2200)
Write “ok” next to it
Now the loop goes to the second string from “Category” column and for this one we will have to trim 2 digits from the right of each string in “Code” column to achieve the result (2323=2323) and so on.
View 9 Replies
View Related
Jan 18, 2007
I need to compare the date from the user input and the date listed on excel. How can I compare it? Is it correct? lngCmp = Val( Cells(I, 31))
Dim lngBegin As Long, lngEnd As Long, lngCmp As Date, lngResults As Long
lngBegin = 9 'beggining of data
lngEnd = 232 'end of data
lngCmp = InputBox("Please enter the date", "Begining of the week")
Lngcmp1 = DateAdd("d", 1, lngCmp)
lngCmp2 = DateAdd("d", 2, lngCmp)
lngCmp3 = DateAdd("d", 3, lngCmp)
lngCmp4 = DateAdd("d", 4, lngCmp)
lngCmp5 = DateAdd("d", 5, lngCmp)
'lngCmp1 = lngCmp + 1
'lngCmp2 = lngCmp + 2
'lngCmp3 = lngCmp + 3
'lngCmp4 = lngCmp + 4
'lngCmp5 = lngCmp + 5
lngResults = 0
lngResults1 = 0
lngResults2 = 0..................................
View 2 Replies
View Related
Feb 27, 2014
I'm going to be using a spreadsheet to keep track of where different people are at. So if Person 1 is in Room 3, I will stick a 3 in the box next to their name and then can look at the spreadsheet whenever I need and see what room they are in. When I'm deciding what room to put a person in, though, I need to be able to quickly glance at a list of Room #'s and see what one's are still available. So I have a bank of Room #'s in the spreadsheet....1,2,3, etc.
What I'd like, is some way to set this up so that when I put, for example, "3" in the cell next to "Person 1" the spreadsheet automatically removes "3" from the bank of available Room #'s and when I delete the "3" because the person has left, it adds "3" back to the bank of available Rooms.
View 7 Replies
View Related
Mar 5, 2012
I have a mass of data which look something like this:
table removed
and I require the ranges of reference numbers to be listed in a column one above the other, which requires inserting new rows. I also need the date & description columns copied down into the newly inserted rows.
So basically for example I would want the top row to now read:
table removed
and then apply the same procedure to the other ranges below this.
View 4 Replies
View Related