Function Problems

How to Create an Excel Pricing Calculator Based on Location, Delivery Type, and Weight

Nimra MalikNimra Malik Nov 10, 2026 869 views

Question details

The user needs to build a dynamic letter-price calculator in Excel that determines the correct price using three criteria: location, delivery type, and weight.

How to Create a Pricing Calculator in Excel Based on Location, Delivery Type, and Weight
Product
Excel
Device & OS
not provided
Scenario
Building a multi-criteria lookup calculator for pricing mail or packages based on a specific pricing table.
Observed behavior
The pricing table contains ambiguous or overlapping weight bands (duplicate maximum weights), preventing standard lookup formulas from returning the correct price.
Before you start

Review your pricing table to ensure there are no overlapping weight bands. Define clear lower and upper limits for each location and delivery type to prevent inaccurate formula results.

Solution 1Recommended

Clean Up Weight Bands and Use a Lookup Formula

The most reliable method is to standardize your pricing table's weight limits and apply an XLOOKUP or FILTER function to extract the exact price.

If your reference table has duplicate values in the 'Maximum Weight' column, lookup formulas will fail or return incorrect results. You must first ensure each weight tier is mutually exclusive for a given location and delivery type.

1
Define unambiguous weight bands

Modify your pricing table so each tier has a distinct 'Min Weight' and 'Max Weight' column instead of overlapping limits.

2
Set up the calculator inputs

Create dedicated input cells for the user to select 'Location' (e.g., Europe), 'Delivery Type' (e.g., Priority), and enter the 'Weight'.

3
Apply the FILTER or XLOOKUP function

In the result cell, enter a formula like =FILTER(PriceColumn, (LocationColumn=InputLocation) * (TypeColumn=InputType) * (MaxWeightColumn>=InputWeight) * (MinWeightColumn<=InputWeight)). This extracts the exact price matching all criteria.

Clean Up Weight Bands and Use a Lookup Formula
Approximate Match Setup: If you are using an older version of Excel that lacks XLOOKUP or FILTER, you can use an INDEX and MATCH array formula, or sort your table by weight to use a VLOOKUP with an approximate match (TRUE).
Efficient Spreadsheet Data Management

Build Advanced Pricing Calculators Easily with WPS Spreadsheet

WPS Office Spreadsheet fully supports advanced lookup functions like XLOOKUP, FILTER, and array formulas natively. You can effortlessly manage complex pricing tables and perform multi-criteria lookups while ensuring complete compatibility with Microsoft Excel.

  1. 1. Open WPS Spreadsheet: Launch WPS Office and create a new blank spreadsheet or open your existing pricing table document.
  2. 2. Organize your data: Format your pricing table with clear columns for Location, Delivery Type, Min Weight, Max Weight, and Price.
  3. 3. Insert the lookup formula: Use the built-in Formula tab to insert XLOOKUP or FILTER functions just like you would in Excel to generate your final price.
Fully supports XLOOKUP, FILTER, and complex array formulas for dynamic pricing.100% compatible with Microsoft Excel (.xlsx) file formats.Lightweight software with an intuitive, familiar interface.Free built-in templates to help you start your pricing or invoice calculators quickly.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my lookup formula return an #N/A error when matching weight?

An #N/A error usually occurs if the exact weight isn't found in the reference table. Ensure you are using an approximate match setup (e.g., XLOOKUP with match mode 1 or -1) or a logical check (>= and <=) if using FILTER.

Can I use VLOOKUP for multiple criteria like location and delivery type?

Standard VLOOKUP only handles one lookup value. To use VLOOKUP for multiple criteria, you must create a helper column in your pricing table that concatenates Location, Delivery Type, and Weight, and do the same in your lookup formula.

How do I create a drop-down list for selecting Location and Delivery Type?

Select the input cell, go to the Data tab, click Data Validation, choose 'List' from the Allow menu, and enter your options (e.g., Europe, Other) or select the range containing them.

What is the best formula for a tiered pricing calculator?

XLOOKUP and FILTER are the most robust functions for tiered pricing involving multiple conditions. SUMIFS can also be used if the price output is purely numeric and only one row matches the conditions.