Function Problems

WPS Spreadsheet Formula to Return a Revision by Part Number and Date Range

John WilsonJohn Wilson Nov 12, 2026 869 views

Question details

The user needs a formula that returns the correct revision by matching both a part number and an applicable date range.

WPS Spreadsheet Formula to Return a Revision by Part Number and Date Range
Product
WPS Spreadsheet
Device & OS
not provided
Scenario
A revision table contains part numbers, revision values, start dates, and end dates. The part number may be listed once followed by blank cells, and date ranges for different parts may overlap.
Observed behavior
A date-only lookup can return a revision for the wrong part number when date ranges overlap.
Before you start

Confirm which cells contain the requested part number and date, such as B2 and B3, and identify the revision, start-date, end-date, and part-number columns. If part numbers are shown only on the first row of each group, prepare a helper column to fill the value down before using the lookup formula.

Solution 1Recommended

Use a helper column and a three-condition revision lookup

Use this compatible approach when your WPS Spreadsheet version does not support dynamic-array functions such as LET, SCAN, or FILTER.

This method fills each blank part-number cell with the part number from the row above, then checks the part number, start date, and end date together. It prevents overlapping date ranges from returning a revision for another part.

1
Create the filled part-number column

In the helper column, enter =IF(A8<>"",A8,F7) in F8, replacing A8 with the source part-number cell and F7 with the previous helper cell. Fill the formula down through the data range.

2
Enter the requested values

Enter the target part number in B2 and the lookup date in B3. Make sure B3 is stored as a valid date using Home > Number Format > Date if necessary.

3
Return the matching revision

Select the result cell and enter =INDEX($C$8:$C$21,MATCH(1,($D$8:$D$21<=$B$3)*($E$8:$E$21>=$B$3)*($F$8:$F$21=$B$2),0)). In older WPS Spreadsheet versions, confirm the formula with Ctrl+Shift+Enter.

4
Test the result

Change B2 or B3 and verify that the returned value in column C changes only when both the part number and date conditions are satisfied.

Why this works: The MATCH expression requires all three conditions to be true: the start date is on or before the requested date, the end date is on or after it, and the filled part number equals B2.

Build reliable part-number and date-range revision lookups in WPS Spreadsheet

WPS Spreadsheet lets you organize revision tables, fill grouped part numbers with a helper formula, and use INDEX and MATCH to return the revision that satisfies the part-number, start-date, and end-date conditions.

  1. 1. Open the workbook: Launch WPS Office, choose Spreadsheet, and open the Excel workbook containing the revision table.
  2. 2. Fill down grouped part numbers: Add a helper column and use =IF(A8<>"",A8,F7), then drag the fill handle down the table.
  3. 3. Enter lookup inputs: Type the requested part number in B2 and the applicable date in B3.
  4. 4. Add the lookup formula: In the result cell, use the INDEX/MATCH formula with the start-date, end-date, and helper-column conditions.
Match the part number and date range together to avoid incorrect revisions from overlapping dates.Use familiar formulas such as IF, INDEX, and MATCH in a lightweight spreadsheet workflow.Open and edit Microsoft Excel .xlsx files with broad format compatibility.Keep the lookup logic in the worksheet without macros or complex database tools.
QA img-9

Frequently Asked Questions

How do I stop a date-range lookup from returning another part's revision?

Include the part-number condition in the same MATCH expression as the start-date and end-date conditions. The helper-column formula =IF(A8<>"",A8,F7) fills blank part-number rows so every record can be checked.

What formula returns a revision when the date is between the start and end dates?

Use =INDEX($C$8:$C$21,MATCH(1,($D$8:$D$21<=$B$3)*($E$8:$E$21>=$B$3)*($F$8:$F$21=$B$2),0)), adjusting the ranges to match your table.

Why does my INDEX and MATCH formula need Ctrl+Shift+Enter?

Older spreadsheet versions evaluate the multiplied conditions as an array. After entering the formula in WPS Spreadsheet, press Ctrl+Shift+Enter if a normal Enter does not calculate it correctly.

Can I do this without a helper column?

Yes, in Microsoft 365 or another version supporting dynamic arrays, use LET with SCAN to fill down the part number and FILTER to apply the part-number and date conditions in one formula.