[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
Solved

# vlookup amount with tolerance of + or minus 10

Posted on 2014-08-11
Medium Priority
1,344 Views
is there a formula that will allow me to lookup an amount from one sheet onto another sheet with a tolerance of 10

i.e. I have a column that is already doing a lookup and will return either match or no match.

so, in sheet1, if T2  = Match I need to lookup S2 in Sheet2 find the amount in the amount in R2 and if that amount is +/- 10 to the amount in Sheet1 R2 Match if not No Match.

so it would be something like this

=IF(S2="Match",VLOOKUP(T2,Sheet2!U:U,1,))

but I need the tolerance of+/- 10

is that possible??

0
Question by:Jagwarman
• 3
• 3

LVL 18

Expert Comment

ID: 40252620
something like ...

=IF(S2="Match",IF(abs(R2-VLOOKUP(T2,Sheet2!U:U,1,))<=10,"Match","No Match"),"No Match")

Kris
0

Author Comment

ID: 40252628
Hi krishnakrkc

I am getting Value# at this point

R2-VLOOKUP(T2,Sheet2!U:U,1,)

Regards
0

LVL 18

Expert Comment

ID: 40252644
I guess there is an amount in R2 on Sheet1 and you want to compare this amount with the formula return value. Am I right ?

Can you upload the workbook here ?
0

Author Comment

ID: 40252730
0

LVL 18

Accepted Solution

krishnakrkc earned 2000 total points
ID: 40252756
U2 in Sheet1

=IF(S2="Match",IFERROR(IF(ABS(T2-VLOOKUP(R2,Sheet2!S:U,3,))<=10,"Match","No Match"),"No Match"),"No Match")

Is this what you are looking for ?

Kris
0

Author Comment

ID: 40252773
that's perfect thank you
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
###### Suggested Courses
Course of the Month17 days, 23 hours left to enroll

#### 830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.