Function Problems

How to Match Weekly Appointment Counts Six Months Later in WPS Office Excel

Steve KSteve K Nov 13, 2026 869 views

Question details

The user needs to automatically populate Column C with appointment counts from a matching week approximately six months later, based on Column A dates and Column B counts.

How to Match Weekly Appointment Counts Six Months Later in WPS Office Excel
Product
WPS Office Spreadsheets / Microsoft Excel
Device & OS
not provided
Scenario
The user is working with weekly appointment data and wants to compare the current week against the corresponding week about six months later.
Observed behavior
Column C should display the matching appointment count from the later week without manual lookup.
Before you start

Confirm that Column A holds real Excel dates, not text, and that the weekly rows are sorted in ascending order. Decide whether six months later means the same calendar date, 26 weeks, or the same week number, because the formula changes.

Solution 1Recommended

Use XLOOKUP and EDATE to match the same calendar date six months later

Best when your data has a row exactly or close to the same calendar date six months after each week.

XLOOKUP searches the date column for the EDATE result and returns the count from Column B. Use match mode 0 for an exact date, or 1/-1 for the nearest earlier or later date.

1
Select the first result cell

Click cell C2, or the first row where the matched count should appear, and then click the Formula Bar.

2
Enter the XLOOKUP formula

Type =XLOOKUP(EDATE(A2,6),$A$2:$A$100,$B$2:$B$100,"No match",0) and press Enter.

3
Fill the formula down

Drag the fill handle from cell C2 downward through all weekly rows.

Exact-date match returns the later count: When the date exactly six months later exists in Column A, the formula returns the corresponding appointment count from Column B.
WPS Spreadsheets formula solution

Match weekly appointment counts six months later with WPS Spreadsheets

WPS Spreadsheets can perform the matching with XLOOKUP, EDATE, INDEX/MATCH, or SUMIFS, so you can fill Column C automatically without leaving your Excel-compatible workbook.

  1. 1. Open your workbook in WPS Office: Start WPS Spreadsheets and open the Excel file that contains your weekly appointment dates and counts.
  2. 2. Add the matching formula: Click the first result cell and enter =XLOOKUP(EDATE(A2,6),$A$2:$A$100,$B$2:$B$100,"No match",0).
  3. 3. Fill down to all weekly rows: Use the fill handle to copy the formula from C2 down through the remaining weekly rows.
  4. 4. Verify the returned counts: Spot-check several rows against the source date six months later and adjust the match mode or date offset if needed.
Uses WPS Spreadsheets formulas to automate the six-month weekly matchFull compatibility with Microsoft Excel .xlsx workbooksFree download with a familiar Office ribbon interfaceLightweight and available on Windows, Mac, Android, iOS, and web
microsoft office alternative - wps office

Frequently Asked Questions

Does WPS Spreadsheets support XLOOKUP and EDATE?

Yes, the latest WPS Office supports XLOOKUP, EDATE, INDEX/MATCH, and SUMIFS. If XLOOKUP is not available in your version, use the INDEX/MATCH solution instead.

What does six months later mean for this formula?

It depends on your data rule. Use EDATE(A2,6) for the same calendar date, A2+182 for a fixed 26-week offset, or SUMIFS with a day window for approximately six months.

Why does the XLOOKUP formula return No match?

The exact date six months later may not exist in Column A, or the dates may be stored as text. Confirm that Column A has real dates and choose match mode 1 or -1 for the nearest date.

Can I match by week number instead of date?

Yes. Add a helper column using WEEKNUM or ISOWEEKNUM, then use INDEX/MATCH or XLOOKUP on that week-number column.

Will this formula work if I open the file in Microsoft Excel?

Yes. WPS Spreadsheets is compatible with Microsoft Excel .xlsx files, and these formulas work in both applications.