Return the Supplier With the Lowest Price in Excel
Question details
Find the supplier name associated with the lowest total cost when supplier prices are in non-adjacent columns.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet lists supplier prices in separate columns, with other data between the price columns.
- Observed behavior
- The desired result is the name of the supplier with the lowest numeric price in each row.
Identify the price cells and their corresponding supplier-name cells. In the example below, prices are in C3, F3, and I3, and names are in the unmerged cells C1, F1, and I1.
Use an IF formula to compare the supplier price cells
Use this formula when prices are in non-adjacent columns and you want to exclude the cells between them.
The formula checks only the three specified price cells. It returns a blank if none contains a number, and returns the first supplier in the formula if prices are tied.
Place the supplier names in C1, F1, and I1. If a name is in a merged header, unmerge it and put the name in the cell referenced by the formula.
Select M3 and enter =IF(COUNT(C3,F3,I3)=0,"",IF(AND(ISNUMBER(C3),C3=MIN(C3,F3,I3)),$C$1,IF(AND(ISNUMBER(F3),F3=MIN(C3,F3,I3)),$F$1,$I$1))). Press Enter.
Drag the fill handle from M3 down the result column. Adjust the price and header references if your worksheet uses different cells.

Find the lowest-price supplier in WPS Spreadsheet
Use the same IF and MIN formula in WPS Spreadsheet to compare non-adjacent prices and return the matching supplier name.
- 1. Open the workbook: Open WPS Spreadsheet and use Open to select your Excel workbook.
- 2. Check the headers: Put supplier names in the unmerged cells C1, F1, and I1, corresponding to prices in C3, F3, and I3.
- 3. Enter the formula: Select M3 and enter =IF(COUNT(C3,F3,I3)=0,"",IF(AND(ISNUMBER(C3),C3=MIN(C3,F3,I3)),$C$1,IF(AND(ISNUMBER(F3),F3=MIN(C3,F3,I3)),$F$1,$I$1))). Press Enter.
- 4. Fill and save: Drag the fill handle down from M3, then use File > Save As to save the workbook in your preferred supported format.

Frequently Asked Questions
What happens if two suppliers have the same lowest price?
The formula returns the first matching supplier in its comparison order: C3, then F3, then I3.
Why does the formula return 0 instead of a supplier name?
Check C1, F1, and I1 for names. If a header was merged, the displayed name may be stored in another cell; unmerge the header and update the formula references or move the name.
Will blank price cells be treated as the lowest price?
No. The formula uses ISNUMBER to check candidate cells and MIN to find the lowest numeric price. If all three cells are blank or nonnumeric, it returns a blank.
Can I match a minimum value already calculated in L3?
Yes, but compare L3 with the specific supplier price cells rather than the entire C3:K3 range. A match across the full range could pick up an unrelated value in an intervening column.




