Find row if cell value is between two other cell values

DGKNostro

New Member
Joined
May 15, 2017
Messages
2
Hi Excel Experts!

So what i am trying to do is quite beyond my knowledge.

What i want to do, is to make a freight calculator, which means i have a matrix where Weight is defined in rows and freightzones are defined in columns, in each intersection there is a price.
Weight is not a set definition, but are intervals. This means, that if a package weighs 1360gram it is in the interval 1100g to 2000g.

So my matrix looks like this:
Weight (min)Weight (max)Zone 1Zone 2
010005274
10012000104148

<tbody>
</tbody>

This matrix is placed in a tabel called "DHLEconomy"

Then i have another sheet called "Beregner" where i have two inputs: "Weight" and "freightzone" placed in cell B3(weight) and D3(freightzone)

What i need to do, is to make a lookup-statement, which will find the correct price, by finding the row where the "Weight" is within the correct interval, and where the column is equal to the freightzone.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
try this


Excel 2012
ABCD
1Weight (min)Weight (max)Zone 1Zone 2
2010005274
310012000104148
420013000175205
Sheet1



Excel 2012
ABCDEF
1
2weightfreightzoneprice
32500Zone 1175
4
Beregner
Cell Formulas
RangeFormula
F3=LOOKUP(B3,Sheet1!$A$2:$A$4,INDEX(Sheet1!$C$2:$D$4,,MATCH(D3,Sheet1!C1:D1,0)))
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,192
Members
449,072
Latest member
DW Draft

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