Function Problems

WPS Spreadsheet IF Formula for Compliant, Pending, Expired, or Not Completed Status

Huma Ashraf ChHuma Ashraf Ch Nov 12, 2026 869 views

Question details

The user needs a spreadsheet formula that returns a status based on three date cells and the current date.

WPS Spreadsheet IF Formula for Compliant, Pending, Expired, or Not Completed Status
Product
WPS Spreadsheet
Device & OS
not provided
Scenario
A worksheet uses cells L4, P4, and V4 to track primary and secondary dates. The user wants to classify each row as Not Completed, Compliant, Pending, or Expired.
Observed behavior
The desired status depends on whether all three cells are blank, whether L4 is today or later, whether P4 or V4 is today or later, or whether none of those conditions is met.
Before you start

Confirm that L4, P4, and V4 are the correct worksheet references and contain real date values rather than text. Check that the cells use a date format so comparisons with TODAY() work correctly.

Solution 1Recommended

Use an IFS formula to return the four date-based statuses

Use this solution when the three tracking cells may be blank or contain dates, and the tests must run in a specific priority order.

IFS evaluates conditions from left to right. Checking the all-blank condition first ensures that an empty row is labeled Not Completed before any date comparison is attempted.

1
Select the status cell

Open the worksheet in WPS Spreadsheet and click the cell where the status should appear, such as W4.

2
Enter the formula

Type =IFS(AND(L4="",P4="",V4=""),"Not Completed",L4>=TODAY(),"Compliant",OR(P4>=TODAY(),V4>=TODAY()),"Pending",TRUE,"Expired") in the selected cell.

3
Confirm the formula

Press Enter or click the checkmark in the formula bar to calculate the status.

4
Fill the formula down

Select the completed formula cell and drag its fill handle down, or use Home > Fill > Down, to apply the relative references to other rows.

Condition order matters: The formula checks blank cells first, then the primary date, then either secondary date, and finally returns Expired for all remaining cases.

Build date-based compliance statuses in WPS Spreadsheet

WPS Spreadsheet lets you enter the IFS formula, compare dates with TODAY(), and fill the result down a worksheet to classify records as Not Completed, Compliant, Pending, or Expired.

  1. 1. Open the workbook: Launch WPS Office, choose Spreadsheet, and open the workbook containing the date columns.
  2. 2. Enter the status formula: Click the target status cell and enter the IFS formula using the correct row references, such as L4, P4, and V4.
  3. 3. Check the result: Press Enter and verify the displayed status against the dates and blank cells in that row.
  4. 4. Fill down the column: Drag the fill handle or use Home > Fill > Down to apply the formula to additional records.
Create reliable multi-condition status formulas with IFS, AND, OR, and TODAY().Apply the formula to entire columns using relative cell references and fill commands.Open, edit, and save Microsoft Excel XLSX workbooks with familiar spreadsheet tools.Use a lightweight spreadsheet interface for tracking compliance dates and follow-up records.
microsoft office alternative - wps office

Frequently Asked Questions

Why must the blank condition come first in the IFS formula?

IFS returns the result for the first condition that evaluates to TRUE. Checking AND(L4="",P4="",V4="") first ensures rows with no dates return Not Completed instead of being evaluated as another status.

What does the TODAY() function do in this status formula?

TODAY() returns the current date. The comparisons L4>=TODAY(), P4>=TODAY(), and V4>=TODAY() identify dates that are today or in the future.

When will the formula return Pending?

It returns Pending when the row is not entirely blank, L4 is not today or later, and either P4 or V4 is today or later.

Why might a date comparison return the wrong status?

The cell may contain text that only looks like a date. Select the cell and use Home > Number Format to apply a date format, then re-enter or convert the value if necessary.

Can I use this formula with different columns or rows?

Yes. Replace L4, P4, and V4 with the correct references for your worksheet. When you fill the formula down, WPS Spreadsheet automatically adjusts relative row references.