Others

Build an Employee Retention Matrix from Excel Date Data

Amos GikundaAmos Gikunda Dec 2, 2026 868 views

Question details

Create an employee retention matrix using employee IDs, registration dates, and last-order dates.

Build an Employee Retention Matrix from Excel Date Data
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.
Before you start

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.

Solution 1Recommended

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.

1
Arrange the source columns

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.

2
Create cohort and period headers

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.

3
Calculate the proxy rate

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.

4
Format and interpret the matrix

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.

Build a monthly cohort matrix using last order as a proxy
Snapshot dates matter: If the data snapshot is earlier than today, replace TODAY() in the formula with a reference to the snapshot date. Later orders can change earlier proxy rates when the matrix is rebuilt.
Build cohort tables in WPS

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. 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. 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. 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. 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.
Calculate monthly cohort proxy rates with spreadsheet formulasOpen and edit Microsoft Excel XLSX and XLS filesFormat the matrix as percentages for easier comparisonUse a familiar spreadsheet interface to work with existing data
microsoft office alternative - wps office

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.