Weight Range Lookup

Johnboy28

Board Regular
Joined
Jun 22, 2013
Messages
172
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2013
  5. 2010
Platform
  1. Windows
Hi,

Can someone please help me with a couple of formulas?

1st Formula - "Code" If Weight Match "Weight Range" and "Client ID" from Left hand Table it will return Code?

2nd Formula - "Unit$" Match Code (Answer from Top Formula) and Date with Date Range and Code from bottom table to return unit$ Value?

I hope this makes sense. Thanks for your help.

DateClient IDWeight RangeCode
DateWeightClient IDCode
Unit$
25/12/2012Country115016/12/2012362.60Country??
??
25/12/2012Country151180227/12/2013225.00Country
25/12/2012Country18122036/01/2013349.00South West
27/12/2012Country22128047/01/2013363.30Country
4/01/2013Country281320525/12/2012183.40Country
5/01/2013Country321350625/12/2012201.30Country
6/01/2013Country35160074/01/2013320.80Country
5/01/2013320.80Country
4/01/2013South West115086/01/2013389.30Country
4/01/2013South151180925/12/2012200.40Country
4/01/2013South West181220106/01/2013389.30City
4/01/2013North221280116/01/2013401.30Country
4/01/2013South West281320126/01/2013380.00City
5/01/2013South West321350134/01/2013185.00South
6/01/2013City351600144/01/2013235.00North
7/01/2013City321350154/01/2013277.00North
WC DateMon 24/12/12Mon 31/12/12Mon 07/01/13Mon 14/01/13
WE DateSun 30/12/12Sun 06/01/13Sun 13/01/13Sun 20/01/13
CodeUnit $Unit $Unit $Unit $
1$16.00$16.00$16.00$16.00
2$31.00$31.00$31.00$31.00
3$38.00$38.00$38.00$38.00
4$46.00$46.00$46.00$46.00
5$48.00$48.00$48.00$48.00
6$52.00$52.00$52.00$52.00
7$54.00$54.00$54.00$54.00
8$14.00$14.00$14.00$14.00
9$28.00$28.00$28.00$28.00
10$34.00$34.00$34.00$34.00
11$43.00$43.00$43.00$43.00
12$45.00$45.00$45.00$45.00
13$48.00$48.00$48.00$48.00
14$52.00$52.00$52.00$52.00

<tbody>
</tbody>
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
I assume the desired answer is code 7 and country

then $54 as date is before the first date
 
Upvote 0
I assume the desired answer is code 7 and country

then $54 as date is before the first date

Yes, the desired answer is Code 7 and unit price is $54. I made a mistake on the first date. Its actually 06/01/2013. Thanks for your help.

Date
Weight RangeClientCodeUnit $
6/01/2013362.60Country7 $ 54.00

<colgroup><col style="mso-width-source:userset;mso-width-alt:3072;width:63pt" width="84"> <col style="mso-width-source:userset;mso-width-alt:3803;width:78pt" width="104"> <col style="mso-width-source:userset;mso-width-alt:3840;width:79pt" width="105"> <col style="width:48pt" width="64" span="2"> </colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,839
Messages
6,121,892
Members
449,058
Latest member
Guy Boot

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