logo
search
Formula Errors

Combine Excel Win, Draw, and Loss Formulas for Home and Away Games

Maira MehtabMaira Mehtab Sep 28, 2026 871 views

Question details

The user needs an Excel formula to determine a specific team's win, draw, or loss result, which must dynamically adjust its calculation depending on whether the team played as the home or away team.

Product
Excel
Device & OS
not provided
Scenario
Tracking sports match outcomes in a spreadsheet where a single team's results need to be extracted across both home and away fixtures.
Observed behavior
The formula must evaluate the venue indicator (Home/Away) first, normally evaluating home scores but reversing the win and loss logic when the team played away, while keeping draws unchanged.
Before you start

Ensure your dataset is organized with dedicated columns for the Home Team Score, Away Team Score, and an indicator column specifying whether your target team played at 'Home' or 'Away'.

Solution 1Recommended

Use a Nested IF Function with a Home/Away Indicator

By nesting IF functions, you can first check if the match was a draw, and then evaluate the win/loss outcome based on the team's venue status.

A standard Win/Loss formula only works if the target team is always in the same column. Because the team can be either Home or Away, the formula must reverse its logic based on the venue.

Assuming Column A is the Home/Away indicator, Column B is the Home Score, and Column C is the Away Score, we can construct a nested IF statement.

1
Select the result cell

Click on the cell where you want the 'Win', 'Draw', or 'Loss' text to appear for the first match.

2
Input the draw condition

Start your formula by typing =IF(B2=C2, "Draw", to immediately handle all tied games regardless of venue.

3
Add the venue-specific logic

Complete the formula by appending the home and away logic: IF(A2="Home", IF(B2>C2, "Win", "Loss"), IF(C2>B2, "Win", "Loss"))). The final formula should be: =IF(B2=C2, "Draw", IF(A2="Home", IF(B2>C2, "Win", "Loss"), IF(C2>B2, "Win", "Loss"))).

4
Apply to the rest of the column

Press Enter to evaluate the formula, then click and drag the fill handle at the bottom-right of the cell to apply this logic to all other matches in your dataset.

Logic Breakdown: This formula checks the draw first. If it is not a draw, it checks if A2 is 'Home'. If true, a higher Home score (B2>C2) is a Win. If A2 is 'Away' (false), a higher Away score (C2>B2) is a Win.
Advanced Spreadsheet Tools

Calculate Match Results Easily with WPS Spreadsheet

WPS Spreadsheet provides a robust calculation engine that supports complex nested IF formulas seamlessly. Whether you are tracking sports data or financial metrics, WPS Office handles logical operations effortlessly.

  1. 1. Open your sports dataset: Launch WPS Spreadsheet and open the file containing your match scores and venue indicators.
  2. 2. Enter the nested formula: Click the target formula cell, type the nested IF statement handling the Home/Away logic, and press Enter.
  3. 3. Fill the data series: Double-click the small square at the bottom-right corner of the active cell to automatically fill the formula down to the last row of your data.
100% compatible with Microsoft Excel formulas, including IF, IFS, and COUNTIF.Color-coded syntax highlighting makes it easy to read and troubleshoot nested formulas.Lightweight software design ensures rapid processing even with large datasets of historical match data.
microsoft office alternative - wps office

Frequently Asked Questions

Can I use the IFS function instead of nested IFs?

Yes. If you are using a recent version of Excel or WPS Spreadsheet, the IFS function can simplify this. The syntax would look like: =IFS(B2=C2, "Draw", AND(A2="Home", B2>C2), "Win", AND(A2="Away", C2>B2), "Win", TRUE, "Loss").

What if my dataset doesn't have a 'Home' or 'Away' text column?

If you only have 'Home Team' and 'Away Team' name columns, you can change the logical test to check if the target team's name is in the Home column. For example, replace A2="Home" with A2="Your Team Name".

How do I calculate total league points from these text results?

You can use the COUNTIF function in a separate cell to sum up points. For example, if a win is 3 points and a draw is 1 point, use: =(COUNTIF(D2:D20, "Win")*3) + (COUNTIF(D2:D20, "Draw")*1).