How to Match Weekly Appointment Counts Six Months Later in WPS Office Excel
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.

- 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.
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.
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.
Click cell C2, or the first row where the matched count should appear, and then click the Formula Bar.
Type =XLOOKUP(EDATE(A2,6),$A$2:$A$100,$B$2:$B$100,"No match",0) and press Enter.
Drag the fill handle from cell C2 downward through all weekly rows.
Use INDEX and MATCH with a 26-week offset
Use this when six months later means a fixed 26-week offset rather than a calendar month.
Use SUMIFS to sum counts within a six-month window
Use this when you want to aggregate appointments that fall within a few days of the six-month target instead of requiring an exact row.
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. Open your workbook in WPS Office: Start WPS Spreadsheets and open the Excel file that contains your weekly appointment dates and counts.
- 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. Fill down to all weekly rows: Use the fill handle to copy the formula from C2 down through the remaining weekly rows.
- 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.

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.




