look up with from and to ranges

ExcelNewbie2020

Active Member
Joined
Dec 3, 2020
Messages
293
Office Version
  1. 365
Platform
  1. Windows
Sirs,

how to look up a value if the criteria is within the amount range?

based on the table, i need to look up the rate based on "NO." and the "FROM and TO" range. with my example, i'm looking for NO. 3 with an amount of 450000.. since the amount is within the range of 445000 and 477000 so i should have the RATE of 3.1..

Book5
ABCDEFGHIJKLMN
1FROMTOFROMTOFROMTOFROMTOFROMTOFROMTO
2RATE001122334455NO.
32.1334000363000365000394000393000420000417000445000444000470000472000496000AMOUNT
43.1363000395000394000422000420000450000445000477000470000503000496000525000
54.1395000426000422000455000450000484000477000510000503000534000525000557000
65.1426000520000455000520000484000520000510000544000534000570000557000597000
76.1520000601000520000617000520000632000544000647000570000662000597000677000
8
9
10NO.3INPUT
11AMOUNT450000INPUT
12RATE3.1FORMULA HERE
Sheet4
 
It converts numbers stored as text into real numbers.
 
Upvote 0

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
As this is now solved , I thought i would ask further about the -- to convert text to real numbers
does that work in all cases , just tried on a left() and worked great - usually i use *1
any advantages / disadvantages to using this

I have seen it used for converting True/False to 1 & 0's in functions like sumproduct()

hope you dont mind me side tracking the thread , as it now solved and thought better on the forum for everyone rather than via a PM
 
Upvote 0
As long as all the values can be converted to numbers it should work & I believe it's meant to be faster than using +0 or *1 (although the speed difference is unlikely to be noticeable)
 
Upvote 0
thanks for that , i will add to my notes
thsnks agin
 
Upvote 0

Forum statistics

Threads
1,215,193
Messages
6,123,560
Members
449,108
Latest member
rache47

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top