Others

How to Find the Supplier with the Lowest Price in Microsoft Access

Rana GarciaRana Garcia Nov 3, 2026 871 views

Question details

The user needs a method to identify the lowest-priced supplier for quotes and determine the highest material price for charging purposes within a database.

How to Find the Supplier with the Lowest Price in Microsoft Access
Product
Microsoft Access
Device & OS
not provided
Scenario
Restructuring an older flat-file database to evaluate material quotes, comparing prices across multiple suppliers to ensure accurate purchasing and billing.
Observed behavior
The current setup attempts to store each supplier in a separate column, making it difficult to dynamically query the lowest and highest prices.
Before you start

Before altering your table structure, export a backup copy of your current database and identify all the fields containing your existing material prices and supplier records.

Solution 1Recommended

Normalize Data with a Junction Table

The most robust method to manage multiple suppliers and materials without writing complex VBA code is to use a normalized, many-to-many database structure.

Storing each supplier in a separate column (a flat-file structure) makes querying minimum and maximum prices extremely difficult. Normalizing your data resolves this by using related tables.

1
Create a Materials Table

Navigate to the Create tab, click Table Design, and set up a 'Materials' table with 'MaterialID' (Primary Key) and 'MaterialDescription' fields.

2
Create a Suppliers Table

Create a second table named 'Suppliers' with 'SupplierID' (Primary Key) and 'SupplierName' fields.

3
Create a MaterialSuppliers Junction Table

Create a third table named 'MaterialSuppliers'. Add 'MaterialID', 'SupplierID', and 'Price' fields. This resolves the many-to-many relationship.

4
Establish Relationships

Go to Database Tools > Relationships. Drag the tables into the view and connect MaterialID and SupplierID from the primary tables to the junction table.

Normalize Data with a Junction Table
Data Migration: If you already have data in a flat format, you can use Action Queries (Append Queries) to migrate the data from your old table into these three new normalized tables.
Spreadsheet Alternative

Manage Supplier Prices Easily with WPS Spreadsheets

While Microsoft Access requires database normalization and query building, you can easily track materials, compare supplier quotes, and automatically pull the lowest prices using simple formulas in WPS Spreadsheets.

  1. 1. Organize Your Supplier Data: Open WPS Spreadsheets and create three columns: 'Material', 'Supplier', and 'Price'. Paste your existing quote data into these columns.
  2. 2. Calculate the Lowest Price: In a blank cell next to the material you are analyzing, use the =MINIFS() function to find the lowest price associated with that specific material name.
  3. 3. Find the Corresponding Supplier: Use the =XLOOKUP() or =INDEX(MATCH()) function, using the lowest price you just calculated as the lookup value, to return the name of the supplier.
  4. 4. Calculate the Highest Price: Use the =MAXIFS() function to determine the highest material price for your own billing and charging calculations.
Bypass complex database design and normalization requirementsUse built-in functions like MIN and XLOOKUP to instantly find the cheapest supplierHighly compatible with Microsoft Excel (.xlsx) and CSV formats for easy data importing
microsoft office alternative - wps office

Frequently Asked Questions

Why shouldn't I use separate columns for each supplier's price?

Storing each supplier in a separate column (like Supplier1_Price, Supplier2_Price) is called an unnormalized database. It makes it extremely difficult to add new suppliers later, requires complex VBA to find minimum values across columns, and makes aggregate queries nearly impossible to run efficiently.

How do I find the highest material price for my billing needs?

If your data is normalized into a MaterialSuppliers junction table, you can use the DMax function: DMax("[Price]", "MaterialSuppliers", "[MaterialID]=xyz"). Alternatively, you can create a Totals Query in Access, group by MaterialID, and set the Price field to 'Max'.

Can I import my old Lotus Approach database directly into Access?

Yes, you can export your Lotus Approach data to a standard format like CSV, DBF, or Excel, and then use the 'External Data' tab in Microsoft Access to import it. Once imported, you will likely need to use Append Queries to restructure the flat data into normalized relational tables.