Fix Excel NFL Schedule Formulas for Opponents and Home or Away Status
Question details
Update Excel formulas to show opponents and home or away status after an NFL schedule layout changes.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A team schedule refers to a revised yearly schedule with different columns or ranges.
- Observed behavior
- The original formula returns a #REF! error instead of the expected schedule information.
Check that YEARLY SCHEDULE contains numeric week numbers in column A and team names in columns C and F, with the selected team in A5 of the results sheet. The examples treat C as the away team and F as the home team; swap the labels if your layout uses the reverse order.
Update the opponent and home or away formulas
Use these dynamic-array formulas when the revised schedule occupies A5:G276 and contains the selected team.
The formulas filter the source rows for the team in $A$5, then look up weeks 1 through 18. They require an Excel version that supports LET, FILTER, SEQUENCE, and XLOOKUP.
Each lookup returns the first matching game for a week. Adjust the source range and SEQUENCE(18) if your schedule has different rows or weeks.
Open the YEARLY SCHEDULE sheet and confirm that A5:G276 covers the schedule. Check that column A holds week numbers and columns C and F hold the two teams.
On the results sheet, enter the team name in A5. In B5, enter =LET(s,'YEARLY SCHEDULE'!A5:G276,t,FILTER(s,((INDEX(s,,3)=$A$5)+(INDEX(s,,6)=$A$5))>0),XLOOKUP(SEQUENCE(18),INDEX(t,,1),IF(INDEX(t,,3)=$A$5,INDEX(t,,6),INDEX(t,,3)),"BYE"))
In C5, enter =LET(s,'YEARLY SCHEDULE'!A5:G276,t,FILTER(s,((INDEX(s,,3)=$A$5)+(INDEX(s,,6)=$A$5))>0),XLOOKUP(SEQUENCE(18),INDEX(t,,1),IF(INDEX(t,,3)=$A$5,"AWAY","HOME"),"BYE"))
For the total away games, enter =COUNTIFS('YEARLY SCHEDULE'!$C$5:$C$276,$A$5). For home games, enter =COUNTIFS('YEARLY SCHEDULE'!$F$5:$F$276,$A$5). Adjust both ranges if the schedule extends beyond row 276.

Update NFL Schedule Formulas in WPS Spreadsheet
Open the workbook in WPS Spreadsheet and update the opponent, status, and count formulas using the revised schedule ranges. Use a version that supports the dynamic-array functions in the formulas above.
- 1. Open the workbook: In WPS Spreadsheet, select Open and choose your Excel schedule workbook.
- 2. Check the schedule layout: Open YEARLY SCHEDULE and verify the week and team columns, then enter the selected team in A5 on the results sheet.
- 3. Enter the updated formulas: Paste the opponent formula into B5 and the home or away formula into C5, leaving the cells below them empty for the results.
- 4. Check counts and save: Enter the COUNTIFS formulas in cells reserved for totals, verify the results against the source schedule, and select File > Save.

Frequently Asked Questions
Why does the schedule formula show #REF!?
A formula may reference deleted cells or request a column outside its selected range. Check the YEARLY SCHEDULE range and the column numbers used by INDEX against the revised layout.
Why do I see #SPILL! after entering the formula?
The formulas return 18 rows. Clear any occupied cells below B5 or C5, then enter the formulas again if necessary.
What does BYE mean in the results?
BYE means XLOOKUP found no matching game for that week. Check YEARLY SCHEDULE for missing rows or week numbers before treating it as an actual bye.
How do I change the number of weeks displayed?
Change SEQUENCE(18) in both formulas to the number of weeks you need, and ensure the source schedule uses matching numeric week numbers.
What if my home team is in column C instead of column F?
In the status formula, swap the AWAY and HOME labels. For the totals, count column C as home and column F as away.




