How to Set a Status for Multiple Excel Records by User ID
Question details
The user needs to return a single, unified status for a specific user ID across multiple rows of records, checking for missing sent dates, missing received dates, or returning the latest received date if all dates are present.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Evaluating and managing user records to generate an overall completion status based on multiple date columns.
- Observed behavior
- Requires a logical check to flag users with missing dates or output their most recent completed date across multiple rows sharing the same ID.
Ensure your dataset is sorted or grouped by User ID for better readability, and verify that your blank date cells are truly empty (not containing hidden spaces) so the formulas can correctly evaluate them.
Use an Array Formula with COUNTIFS and MAX to Evaluate User Status
Use a combined IF, COUNTIFS, and MAX array formula to logically test multiple conditions for a specific User ID and output the corresponding status.
This approach uses COUNTIFS to check for any missing 'Sent Dates' or 'Received Dates' for all records tied to the current User ID. If any are missing, it returns a specific status message.
If all dates are present, it uses the MAX and IF functions to identify and return the most recent 'Received Date' for that user.
Identify the columns containing your User ID (e.g., Column A), Sent Dates (e.g., Column D), and Received Dates (e.g., Column E).
In the status column (e.g., cell F2), enter the formula: =IF(COUNTIFS($A$2:$A$18,A2,$D$2:$D$18,"")>0,"Missing sent date",IF(COUNTIFS($A$2:$A$18,A2,$E$2:$E$18,"")>0,"Record still open",MAX(IF($A$2:$A$18=A2,$E$2:$E$18)))). Note: Replace the empty quotes "" with the specific character like "`" if your system uses it to denote missing records.
If you are using an older version of Excel, press Ctrl+Shift+Enter instead of just Enter. This tells the spreadsheet to evaluate the MAX(IF(...)) portion as an array.
Click the fill handle in the bottom-right corner of the cell and drag it down to apply the status evaluation to all other user records.

Manage and Analyze Multiple Records Easily with WPS Spreadsheet
WPS Spreadsheet provides robust support for advanced array formulas, COUNTIFS, and logic functions to evaluate user records seamlessly.
- 1. Open your file in WPS: Launch WPS Office and open your .xlsx file containing the user records.
- 2. Input the status formula: Select the target cell and paste the combined IF, COUNTIFS, and MAX formula.
- 3. Calculate the array: Press Ctrl+Shift+Enter to accurately execute the array formula across your data range.

Frequently Asked Questions
Why does my MAX IF formula return a #VALUE! error?
This usually happens in older spreadsheet versions if the formula is not entered as an array. Ensure you press Ctrl+Shift+Enter to confirm the formula, which will wrap it in curly braces {}.
Can I use this formula if my dates are stored as text?
No, the MAX function requires dates to be stored as actual numerical date values. You will need to format your date columns properly or use the DATEVALUE function first.
How do I adjust the formula for a larger dataset?
Change the absolute ranges (e.g., $A$2:$A$18, $D$2:$D$18) to match the exact row numbers of your expanded dataset, ensuring you use the $ symbol to keep the ranges fixed so they do not shift when you drag the formula down.
What does the COUNTIFS part of the formula do?
The COUNTIFS function counts how many rows match both the specific User ID and the criteria for a missing or blank date. If the count is greater than zero, it triggers the IF function to return the 'Missing' status.




