How to Automate Selection of Maximum Value by Reference Speed in Excel
Question details
The user needs to extract specific rows containing the maximum forward force for each given reference speed from an image-based dataset.

- 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.
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.
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.
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.
In your summary table, type `=MAXIFS(Force_Column, Speed_Column, Target_Speed_Cell)` to calculate the maximum forward force for that specific speed.
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 SORT and FILTER to Extract Complete Rows
For users with software supporting dynamic arrays, combining SORT and FILTER is an elegant way to return the entire row without needing multiple lookup formulas.
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. Open WPS Spreadsheet: Launch WPS Office and open a new blank spreadsheet.
- 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. Enter the MAXIFS Formula: Use the MAXIFS function to calculate the highest forward force for each reference speed category.
- 4. Retrieve Row Data: Combine the result with XLOOKUP to automatically populate the rest of the row details for the identified maximum values.

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.




