Help with VLOOKUP

Joecam

Member
Joined
May 22, 2014
Messages
41
Reaction score
0
Points
6
Excel Version(s)
365
Hi,

I'm looking for some help using VLOOKUP or another formula that might be able to accomplish what I need to have done.

Cell D2 is any whole number between 75000 - 2,000,000

Column S is a list of whole numbers from 75000 up, which counts in 5000 increments.
Column T is a corresponding factor to Column S. For example:
750000.825
800000.850
850000.885
900000.921
950000.959
1000001.000
And so on.

Currently I'm using a basic VLOOKUP formula, =VLOOKUP(D2,S2:T115,2), however, this of course only allows the user to enter a number the exactly corresponds to a value in column S.
What I need to do is develop the numbers in between each value in column S&T so that a user may enter any number (in increments of 100) in Cell D2 and get a correct factor.

So basically if the user enters 82500 in cell D2 Excel needs to recognize that cells S2 & S3 are the cells in play, reference each of the factors in column T (.825 & .885), find the difference (.35), divide by 50 (.007) and then multiply by ((82500-S2)/100))=.175+T2

Is there a way I can work that into a formula in Excel?
Any assistance would be greatly appreciated!
 

NBVC

Super Moderator
Staff member
Joined
May 20, 2011
Messages
1,518
Reaction score
0
Points
0
Location
Mississauga, Canada
Excel Version(s)
Excel 2016
Try:

=(INDEX($T$1:$T$6,MATCH(TRUE,INDEX($S$1:$S$6>=N1,0),0))-INDEX($T$1:$T$6,MATCH(2,INDEX(1/($S$1:$S$6<=N1),0))))/50*((N1-INDEX($S$1:$S$6,MATCH(2,INDEX(1/($S$1:$S$6<=N1),0))))/100)+INDEX($T$1:$T$6,MATCH(2,INDEX(1/($S$1:$S$6<=N1),0)))

where N1 contains the input value (82500)
 

Joecam

Member
Joined
May 22, 2014
Messages
41
Reaction score
0
Points
6
Excel Version(s)
365
Try:

=(INDEX($T$1:$T$6,MATCH(TRUE,INDEX($S$1:$S$6>=N1,0),0))-INDEX($T$1:$T$6,MATCH(2,INDEX(1/($S$1:$S$6<=N1),0))))/50*((N1-INDEX($S$1:$S$6,MATCH(2,INDEX(1/($S$1:$S$6<=N1),0))))/100)+INDEX($T$1:$T$6,MATCH(2,INDEX(1/($S$1:$S$6<=N1),0)))

where N1 contains the input value (82500)

That did it. Thanks so much for your help!
 
Top