Function Problems

How to Automate Selection of Maximum Value by Reference Speed in Excel

John WilsonJohn Wilson Nov 10, 2026 870 views

Question details

The user needs to extract specific rows containing the maximum forward force for each given reference speed from an image-based dataset.

How to Automate the Selection of the Maximum Value by Reference Speed
Product
Spreadsheets
Device & OS
not provided
Scenario
Creating a summary table that automatically identifies and pulls the complete row record with the highest value for specific categories (e.g., reference speeds).
Observed behavior
The original dataset is trapped in an image format, requiring conversion to a structured table before maximum value lookups by reference can be performed.
Before you start

Since your original data is in an image format, you must first convert it into a structured spreadsheet table using an OCR (Picture to Text) tool before you can apply any data extraction formulas.

Solution 1Recommended

Use MAXIFS and XLOOKUP to Find the Maximum Row

The MAXIFS function finds the highest value based on specific criteria, which can then be used alongside lookup functions to retrieve the entire row.

This method is ideal for traditional spreadsheet environments. MAXIFS handles the conditional maximum calculation, while XLOOKUP or INDEX/MATCH fetches the corresponding row data.

1
Convert the image to data

Use a 'Picture to Text' or 'Data from Picture' feature to import your source image into the spreadsheet as a structured table with 'Reference Speed' and 'Forward Force' columns.

2
Apply the MAXIFS function

In your summary table, type `=MAXIFS(Force_Column, Speed_Column, Target_Speed_Cell)` to calculate the maximum forward force for that specific speed.

3
Retrieve the entire row

Use the XLOOKUP function, using the newly found maximum force as the lookup value, to pull the rest of the row data associated with that maximum force.

Use MAXIFS and XLOOKUP to Find the Maximum Row
Handling Duplicates: If there are multiple rows with the exact same maximum forward force for a given speed, standard lookup functions will only return the first matching row.
Advanced Data Extraction

Extract Maximum Values Instantly with WPS Spreadsheet

WPS Spreadsheet provides powerful dynamic array functions and a built-in 'Picture to Text' tool, making it incredibly easy to digitize image data and automatically find maximum values by category.

  1. 1. Open WPS Spreadsheet: Launch WPS Office and open a new blank spreadsheet.
  2. 2. Extract Data from Image: Navigate to the 'Tools' tab and select 'Picture to Text' to convert your reference image into a structured Excel table.
  3. 3. Enter the MAXIFS Formula: Use the MAXIFS function to calculate the highest forward force for each reference speed category.
  4. 4. Retrieve Row Data: Combine the result with XLOOKUP to automatically populate the rest of the row details for the identified maximum values.
Fully compatible with Microsoft Excel (.xlsx) formats, ensuring your MAXIFS and array formulas work seamlessly.Built-in OCR (Picture to Text) allows you to instantly convert image-based tables into editable data.Supports advanced data lookup functions like XLOOKUP, SORT, and FILTER for complex data extraction tasks.
microsoft office alternative - wps office

Frequently Asked Questions

Why is the MAXIFS function returning an error or zero?

This typically occurs if your criteria range and maximum range are not exactly the same size, or if your numerical values are stored as text. Ensure your ranges match in dimensions and that your data is formatted as numbers.

How can I extract data directly from an image into a spreadsheet?

You can use built-in OCR tools like 'Picture to Text' in WPS Spreadsheet or 'Data from Picture' in Excel. These tools scan the image, recognize the text and layout, and automatically insert the data into spreadsheet cells.

What if there are multiple rows with the same maximum value?

If there are duplicate maximum values, standard lookup functions like VLOOKUP or XLOOKUP will only return the first instance. To return all rows that tie for the maximum value, you should use the FILTER function combined with MAXIFS.