Function Problems

Find a Price by Product and Customer in Excel Without an Array Formula

Steve KSteve K Dec 2, 2026 868 views

Question details

Find a price using both a product number and a customer number without relying on an array formula.

Find a Price by Product and Customer in Excel Without an Array Formula
Product
Microsoft Excel and Jet Reports
Device & OS
not provided
Scenario
A Jet Reports workbook needs to return a price from a table based on matching product and customer numbers.
Observed behavior
The tested INDEX and MATCH formula uses an array calculation, which the user reports is not supported in Jet Reports.
Before you start

Confirm that each product-and-customer combination appears only once and that prices are numeric. Identify the product, customer, and price ranges, as well as the cells containing the two lookup values.

Solution 1Recommended

Use SUMIFS to Find the Price Matching Both Criteria

Use this non-array formula when each product-and-customer combination has one numeric price.

SUMIFS adds prices for all rows that match both criteria. It returns the desired price only when the matching combination is unique; if there are duplicates, it adds their prices instead.

1
Check the source columns

In the source worksheet, identify the product numbers in column H, customer numbers in column I, and prices in column J. The example uses rows 6 through 20 on a sheet named Sheet 1.

2
Enter the lookup values

On the report worksheet, enter the product number in F7 and the customer number in Z4, or note the cells that contain your lookup values.

3
Enter the SUMIFS formula

Select the cell where the price should appear and enter =SUMIFS('Sheet 1'!$J$6:$J$20,'Sheet 1'!$H$6:$H$20,F7,'Sheet 1'!$I$6:$I$20,Z4). Replace the sheet name, ranges, and lookup cells with those in your workbook.

4
Test the result

Press Enter, then compare the result with a known product-and-customer pair. No Ctrl+Shift+Enter confirmation is needed.

Use SUMIFS to Find the Price Matching Both Criteria
Check zero results: SUMIFS returns 0 when no rows match, which can also be a valid price. Use =COUNTIFS('Sheet 1'!$H$6:$H$20,F7,'Sheet 1'!$I$6:$I$20,Z4) to check whether there are zero, one, or multiple matching rows.
Work with formulas in WPS

Find Matching Prices with SUMIFS in WPS Spreadsheet

Open your workbook in WPS Spreadsheet and use SUMIFS to return a numeric price for a unique product-and-customer combination without an array formula.

  1. 1. Open the workbook: In WPS Spreadsheet, open the Excel workbook containing your product, customer, and price data.
  2. 2. Check the lookup cells: Find the product and customer lookup cells and confirm that each matching pair has one numeric price in the source table.
  3. 3. Enter the formula: Select the result cell and enter =SUMIFS('Sheet 1'!$J$6:$J$20,'Sheet 1'!$H$6:$H$20,F7,'Sheet 1'!$I$6:$I$20,Z4), replacing the example references as needed.
  4. 4. Verify and save: Press Enter, check the result against a known row, and use File > Save As if you want to save the workbook in Excel format.
Match product and customer numbers in one SUMIFS formulaOpen and edit Microsoft Excel XLSX and XLS filesUse a familiar spreadsheet interface to check source dataEnter the formula without Ctrl+Shift+Enter
microsoft office alternative - wps office

Frequently Asked Questions

Why does SUMIFS return 0 for my price lookup?

A zero can mean no rows matched, or that the matching price is zero. Enter a COUNTIFS formula using the same product and customer ranges to check the number of matches, and verify that the price cells contain numbers.

What happens if a product and customer appear more than once?

SUMIFS adds the prices from every matching row. Use COUNTIFS with the same two criteria to identify combinations with more than one match before relying on the result as a single price.

Do I need Ctrl+Shift+Enter for SUMIFS?

No. Enter the SUMIFS formula in the result cell and press Enter. Unlike the array-based INDEX and MATCH example, it does not require array-formula confirmation.

Can I use the INDEX and MATCH formula in Jet Reports instead?

Microsoft 365 and Excel 2021 can evaluate the example INDEX and MATCH expression without legacy array entry, but the expression still performs an array calculation. If Jet Reports does not support that calculation, use SUMIFS when each matching pair has one numeric price.