Returning Value from range array

gregz12345

New Member
Joined
Sep 19, 2018
Messages
7
Hello,

I'm looking to inquire about how to return a country's cost, based on a given weight.

The issue is that the weights I'm looking up against have predesignated weight breaks, the given weights ('B' below) may fall between the range.

I'm ultimately looking to return the rounded up value.

EG: weight .332 lbs for UK should return $4.74

Thank you!




A

Weight (lb)CanadaUnited Kingdom
0.0625$3.41$3.21
0.1250$3.64$3.52
0.1875$3.88$3.82
0.2500$4.12$4.13
0.3125$4.36$4.43
0.3750$4.59$4.74
0.4375$4.83$5.04

<colgroup><col><col span="2"></colgroup><tbody>
</tbody>



B

0.332United Kingdom
0.334United Kingdom
0.349United Kingdom
0.354United Kingdom
0.356United Kingdom
0.359United Kingdom
0.381United Kingdom
0.385United Kingdom
0.397United Kingdom
0.398United Kingdom
0.398United Kingdom

<colgroup><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Re: Help Returning Value from range array

With a weight in E1 and country in F1 try:

=INDEX($B$2:$C$8,MATCH(1,INDEX(--($A$2:$A$8>=E1),0),0),MATCH($F1,$B$1:$C$1,0))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,472
Messages
6,125,003
Members
449,203
Latest member
Daymo66

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