Calculate Rate based on Country Zones

ali_plus

New Member
Joined
May 1, 2016
Messages
22
Hi,

I am trying to create a simple chart for my team mates to calculate import rates based on country zone and weight increment. I have two tables like this:

ABC
1CountryCodeZone
2USAUS1
3UKUK2
4CanadaCN3
5FranceFR4

<tbody>
</tbody>
DEFGHI
1
Increment
From
To
123
20.50.00.5102235
30.50.61.0102235
40.51.12.082030
50.52.12.582030
60.52.65.051525

<tbody>
</tbody>

Now I have a calculation sheet which is very simple. My team will select the country from drop down list and enter the weight and all is calculated automatically.

JKLMN
1CountryZoneChargeable WeightRatecharges
2FranceSUMIF( I already made it)
SUMIF(A2:A5,J2,C2:C5)
The Team will enter the Weight hereNEED THIS RATE BASED ON WEIGHT AND ZONE=D2 * C2

<tbody>
</tbody>


Please help me create the formula in cell M2 as my mind is currently our of ideas. I know it must be something simple but workload and mind not working creatively.

Thanks.
 
Last edited:

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
I can also use Vlookup in K2. Instead I will change it to vlookup cause it will be more accurate. Plus I am thinking in M2 there will be a combination of nested IF's and OR e.g. =IF(OR(xxx something....
 
Upvote 0
Hello,

How are the rates ... linked to the Zones ?

Where are the Zones in your second table ?
 
Upvote 0
Yes I am taking tables as examples. You can consider a new column J1:J6 for Zone 4 sorry I am on phone otherwise I would've edited it.
 
Upvote 0
With your revised table ...

In cell K2 =MATCH(K2,$A$2:$A$5,0)

In cell N2 you will have =Index($G$1:$J$6,findRow,MATCH(L2,$A$1:$J$1,0))

Regarding how to replace FindRow ... I do not know how to read/use the rows of your Table 2

Hope this will help
 
Upvote 0
If my understanding is correct ...

With the weight located in cell M2, you should replace findRow by following formula:

MATCH(M2,$E$1:$E$6,1)

or your final formula in cell N2

Code:
=INDEX($E$1:$J$6,MATCH(M2,$E$1:$E$6,1),MATCH(L2,$E$1:$J$1,0))

HTH
 
Last edited:
Upvote 0
If my understanding is correct ...

With the weight located in cell M2, you should replace findRow by following formula:

MATCH(M2,$E$1:$E$6,1)

or your final formula in cell N2

Code:
=INDEX($E$1:$J$6,MATCH(M2,$E$1:$E$6,1),MATCH(L2,$E$1:$J$1,0))

HTH


James Thank you. the formula is working but there is one problem. if the value is greater than E6 than the formula returns error #REF. I think i should calculate as well if the value are greater than E6 than it should automatically take values from last row. Anyone with a fix? if you want I can attach the source file as well
 
Upvote 0

Forum statistics

Threads
1,215,331
Messages
6,124,311
Members
449,152
Latest member
PressEscape

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