You are here:

# Excel/Formula to Calculate Cost based on Slab Rate

Question

Capture.JPG
Hi, I am looking for a formula to calculate freight charge based on slabs (Min & Max Threshold Weight).

Rate Chart
Threshold Weight (KG)
Minimum Maximum Rate (Rs)
0    50    5
51    250    10
251    500    12
501    1000    15
1001    5000    25
5001    7500    40
7501    10000    60
10001    100000    100

Total Weight   Price
623       ?? <= Formula required

Manual Calculation
Weight   Cost
50    250
250    2,500
250    3,000
73    1,095
---------------
623    6,845 <= Expected Result

A sample worksheet is attached. Would very much appreciate help. Regards. Swastik

Hi Swastik,

If I apply the exact logic in your problem description, I'm getting different results. As per my understanding, you should get the answer as 7095 for 623 weight.

Please share the screenshot of formula you have used in your excel file.

Thanks,
Gulshan.
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here

#### GULSHAN PURSWANI

##### Expertise

I can answer questions related to the following topics: 1. MS Excel - Creating and Linking Formulae, Running Pivot Tables, Vlookup etc. 2. Macros / VBA - Creating Macros to do specific jobs. Importing / Exporting / Validating Data in excel through Macros.

##### Experience

I've been working on excel for over 10 years and on VBA macros for over 3 years now.

Education/Credentials
Bachelor of Commerce, Chartered Accountant from The Institute of Chartered Accountants of India