Skip to content
xlsoffice. All Rights Reserved
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Lookup and Reference Examples

  • How to get address of named range in Excel
  • How to use Excel TRANSPOSE Function
  • How to use Excel COLUMN Function
  • Get nth match with INDEX / MATCH in Excel
  • To count total rows in a range in Excel

Data Analysis Examples

  • Remove Duplicates Example in Excel
  • Filter Data Based on Date in Excel
  • Understanding Pivot Tables in Excel
  • How to count table rows in Excel
  • Conditional Formatting Rules in Excel

Data Validation Examples

  • Excel Data validation exists in list
  • Excel Data validation allow weekday only
  • Excel Data validation allow uppercase only
  • Excel Data validation whole percentage only
  • Excel Data validation must not contain

Calculate shipping cost with VLOOKUP in Excel

by

This tutorial shows how to Calculate shipping cost with VLOOKUP in Excel using the example below;

Formula

=VLOOKUP(weight,table,column,1)*weight

Explanation

To calculate shipping cost based on weight, you can use the VLOOKUP function.

In the example shown, the formula in F8 is:

=VLOOKUP(F7,B6:C10,2,1)*F7

This formula uses the weight to find the correct “cost per kg” then calculates the final cost.

Worked Example:   Two ways to sum time over 30 minutes in Excel

How this formula works

The core of the formula is VLOOKUP, which is configured in approximate match mode by setting the forth argument to 1 or TRUE.

In approximate match mode, the values in the first column of VLOOKUP must be sorted. VLOOKUP will return a value at the first row that is less than or equal to the lookup value.

Worked Example:   Maximum value in Excel

With weight as the lookup value, VLOOKUP finds and returns the right cost per kg. This cost is then multiplied by the weight to calculate the final cost.

Adding a minimum charge

What if you business rules dictate a minimum shipping cost of $5.00, no matter what the weight? A clever way to handle this is to wrap the entire formula in the MAX function like so:

=MAX(VLOOKUP(F7,B6:C10,2,1)*F7,5)

Now max will return whichever is greater – the result of the formula or 5.

Worked Example:   Max if criteria match in Excel

Post navigation

Previous Post:

Case sensitive match in Excel

Next Post:

Break ties with helper column and COUNTIF in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others
  • How to check cell contains which things in Excel
  • Join first and last name — Manipulating NAMES in Excel
  • CODE function: Description, Usage, Syntax, Examples and Explanation
  • How to extract domain from email address in Excel
  • How to strip numeric characters from cell in Excel
  • How to calculate months between dates in Excel
  • Two ways to sum time over 30 minutes in Excel
  • Convert Excel time to decimal hours in Excel
  • TIME function: Description, Usage, Syntax, Examples and Explanation
  • How to get number of days, weeks, months or years between two dates in Excel
  • NOMINAL function: Description, Usage, Syntax, Examples and Explanation
  • Calculate interest for given period in Excel
  • How to calculate annual compound interest schedule in Excel
  • COUPDAYS function: Description, Usage, Syntax, Examples and Explanation
  • How to calculate Net Present Value (NPV) in Excel
© 2022 xlsoffice . All Right Reserved. | Teal Smiles