Build an Employee Retention Matrix from Excel Date Data
Question details
Create an employee retention matrix using employee IDs, registration dates, and last-order dates.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Group employees by registration month and compare their last-order dates across monthly intervals.
- Observed behavior
- The desired retention definition is unspecified, so the available dates need to be assessed against the chosen cohort and activity rules.
Decide what counts as retention and whether intervals are calendar months or periods after each registration date. Check that each employee ID appears once and that registration and last-order dates are valid Excel dates; identify blank last-order dates and any dates after the data snapshot.
Build a monthly cohort matrix using last order as a proxy
Use this approach to show the share of each registration cohort whose last recorded order falls on or after each calendar-month boundary.
This is a last-order proxy, not a measure of activity in each month. An employee whose last order was in June may not have ordered in May, even though the proxy counts them at the May boundary.
The example assumes one row per employee, complete data through today, and blank last-order dates treated as having no recorded order. Period 0 is the registration calendar month, period 1 is the following calendar month, and so on.
In an Excel worksheet, place employee IDs in column A, registration dates in column B, and last-order dates in column C, with headers in row 1 and employee records in rows 2 through 1000. Adjust the ranges in the formula if your data extends beyond row 1000.
Enter the first day of each registration month in column D, starting in D2. In E1, F1, and subsequent cells, enter 0, 1, 2, and so on for the calendar-month periods.
In E2, enter =IF(OR(EDATE($D2,E$1+1)-1>TODAY(),COUNTIFS($B$2:$B$1000,">="&$D2,$B$2:$B$1000,"<"&EDATE($D2,1))=0),"",COUNTIFS($B$2:$B$1000,">="&$D2,$B$2:$B$1000,"<"&EDATE($D2,1),$C$2:$C$1000,">="&EDATE($D2,E$1))/COUNTIFS($B$2:$B$1000,">="&$D2,$B$2:$B$1000,"<"&EDATE($D2,1))). Copy E2 across the period columns and down the cohort rows.
Select the result cells and choose Home > Percent Style. Label the table as a last-order proxy; the formula leaves incomplete calendar months and cohorts with no employees blank.

Calculate actual monthly activity from order history
Use order-level records when retention means placing an order during each specific month.
Create a retention proxy matrix in WPS Spreadsheet
Open your employee date data in WPS Spreadsheet and use cohort dates and formulas to build the same monthly last-order proxy matrix.
- 1. Open the employee data: In WPS Spreadsheet, choose Open and select your Excel workbook. Arrange employee IDs, registration dates, and last-order dates in columns A, B, and C.
- 2. Set up the matrix: Enter first-of-month cohort dates in column D and period numbers 0, 1, 2, and onward across row 1, starting in E1.
- 3. Calculate the rates: Enter the proxy formula from the recommended solution in E2, adjust its source ranges if needed, and fill it across and down.
- 4. Format and save: Select the result cells, apply percentage formatting from the Home tab, and choose File > Save As to save the workbook in XLSX format.

Frequently Asked Questions
What does each cell in the proxy matrix represent?
It is the share of a registration-month cohort whose last recorded order is on or after the start of the specified calendar month. It does not prove the employee ordered during that month.
Why are some matrix cells blank?
The example formula leaves a cell blank when its calendar month has not finished or when the cohort has no employees. If your data has an earlier snapshot date, replace TODAY() with a reference to that date.
How are employees with no last-order date counted?
In the example, employees with valid registration dates remain in the cohort denominator, but a blank last-order date does not satisfy the numerator condition. Confirm that a blank really means no recorded order before using this rule.
Can I calculate monthly retention accurately with only the last-order date?
Not if retention means an order in each particular month. Obtain order-level history with employee IDs and order dates, then count distinct employees active in each cohort and month.




