Formula to combine, if +index match

gaftalik

Well-known Member
Joined
Feb 6, 2003
Messages
521
Office Version
  1. 2016
Platform
  1. Windows
Hi everyone,

I have the below table where as:


B4:G4 is the price per 2kgs (A4) for each city area
B6 is the additional price for each additional 2 kgs for every city.

Having A10:A27 as different weights, how can i look each weight of this range in its respective city and calculate the cost automatically with additional charges accordingly.

I have shown for CITY1 in B10:B27 what the results should be.

I appreciate very much your help.

Test.xls
ABCDEFGH
1
2
3WEIGHTKGCITY1CITY2CITY3CITY4CITY5CITY6
42$4.00$4.00$5.00$5.00$6.00$6.00
5
6Additionalchargeforeach2kgs$2.50$2.50$2.50$2.50$2.50$2.50
7
8
9WEIGHTKGCITY1CITY2CITY3CITY4CITY5CITY6
100.414
110.724
121.134
131.624
142.886.5
153.096.5
163.826.5
170.544
180.864
191.224
201.444
212.166.5
222.346.5
231.914
242.866.5
252.756.5
264.129
276.1811.5
28
29
30
Sheet1
 

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.

Forum statistics

Threads
1,224,586
Messages
6,179,712
Members
452,939
Latest member
WCrawford

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