Retrieve the Latest Status for Each Room in Excel
Question details
Create an overview that returns the most recent status and related details for each room.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- An entry table contains room names, entry dates, statuses, and related details, and the user wants one overview per room.
- Observed behavior
- The overview should match each room to its latest entry date and display the corresponding status and details.
Check that room names are consistent and entry dates are stored as real Excel dates or date-times. Confirm the table name and column names, and leave space for any results that need to spill into adjacent cells.
Use MAXIFS and FILTER to return the latest room entries
Use this method in Microsoft 365 to return the status and details for each room's latest entry.
Select the source data and choose Insert > Table. Name the table Entry on the Table Design tab, and confirm it has Room, Date, Status, and Details columns.
On the overview sheet, enter a room name in A2 and list the other rooms below it.
In B2, enter =IF(COUNTIF(Entry[Room],A2)=0,"No entry",LET(r,A2,latest,MAXIFS(Entry[Date],Entry[Room],r),FILTER(Entry[[Status]:[Details]],(Entry[Room]=r)*(Entry[Date]=latest),"No entry"))). Adjust the table and column names to match your workbook.
Copy B2 down for the other rooms. Leave the cells to the right clear so the returned columns can spill.

Build a Latest Room Status Overview in WPS Spreadsheet
Use WPS Spreadsheet to find each room's latest date and retrieve the corresponding status and details with spreadsheet formulas.
- 1. Arrange the source data: In WPS Spreadsheet, put room names, dates, statuses, and details in columns A through D of a sheet named Entry. Use rows 2 through 1000 for the entries.
- 2. Find the latest date: On an overview sheet, enter a room name in A2. In B2, enter =IF(COUNTIF(Entry!$A$2:$A$1000,A2)=0,"",MAXIFS(Entry!$B$2:$B$1000,Entry!$A$2:$A$1000,A2)). Format B2 as a date or date-time.
- 3. Return the status: In C2, enter =IF(B2="","No entry",INDEX(Entry!$C$2:$C$1000,MATCH(1,(Entry!$A$2:$A$1000=A2)*(Entry!$B$2:$B$1000=B2),0))). If your WPS version requires array-formula entry, confirm it with Ctrl+Shift+Enter.
- 4. Return details and fill down: Copy C2 to D2 and change the INDEX return range to Entry!$D$2:$D$1000. Confirm the formula as an array formula if needed, then copy B2:D2 down for the remaining rooms.

Frequently Asked Questions
What happens if a room has no entries?
The Excel formula checks COUNTIF before calculating the latest date and displays "No entry" when the room is absent from the entry table.
What if two entries share the latest date?
The Excel FILTER formula returns both matching rows. The WPS INDEX and MATCH formula returns the first matching row. Include times in the Date column if you need to distinguish entries made on the same day.
Why does Excel show a #SPILL! error?
Clear cells to the right and below the FILTER formula where its results need to appear. A tied latest date can require more than one result row.
Can I return columns other than status and details?
Yes. In the Excel formula, change Entry[[Status]:[Details]] to the table columns you want returned. In the WPS formula, change the INDEX return range to the desired source column.




