How to Use an Excel Formula to Add Points When Cell Pairs Match
Question details
The user needs a formula to compare three specific pairs of cells (E3 with H3, F3 with I3, and G3 with J3) and add specific point values (5, 3, and 1 respectively) when each pair matches.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Creating a scoring or evaluation system based on whether corresponding cells in different columns contain matching data, with a maximum possible total score of 9.
- Observed behavior
- Requires a logical function or arithmetic solution that correctly evaluates the cell pairs and adds up the corresponding weights without returning errors.
Ensure that the cells you are comparing are formatted identically (e.g., both as Text or both as Numbers) so that the formula correctly recognizes exact matches without being thrown off by hidden spaces or mismatched formats.
Use the IF and SUM Functions with Conditional Multipliers
This method accurately calculates points for matching pairs while gracefully handling completely blank rows to avoid cluttering your spreadsheet with zeros.
In spreadsheet logic, a TRUE statement is evaluated as the number 1, and a FALSE statement is evaluated as 0. By multiplying a comparison by a specific number, you can assign points only when the cells match.
Click on the cell where you want the total score to appear, such as cell B3.
Type or paste the following formula into the formula bar: =IF(COUNT(E3:J3)=0,"",SUM((E3=H3)*5,(F3=I3)*3,(G3=J3)))
Press Enter to execute the calculation. The cell will remain blank if the target range is empty, or it will display the total points (up to 9) for matching pairs.

Use a Shorter Arithmetic Formula
A more concise formula using basic arithmetic operations, ideal if you do not need to account for empty cells.
Easily Manage Complex Formulas with WPS Spreadsheet
WPS Spreadsheet fully supports advanced logical formulas and boolean math operations. You can implement custom scoring systems with a familiar, easy-to-use interface without needing complex scripting.
- 1. Open your spreadsheet: Launch WPS Spreadsheet and open the workbook containing your cell pairs.
- 2. Select the score cell: Click on the target cell where the points will be totaled.
- 3. Input the formula: Type the boolean math formula =5*(E3=H3)+3*(F3=I3)+(G3=J3) into the formula bar and press Enter.
- 4. Apply to multiple rows: Click the small square at the bottom right corner of the cell and drag it down to apply the scoring logic to the rest of your data.

Frequently Asked Questions
Why is my formula returning a #VALUE! error?
This usually happens if one of the referenced cells contains an error or text that cannot be evaluated mathematically in this specific context. Ensure your data doesn't contain hidden formatting issues or error codes inherited from other formulas.
Can I use this formula to compare text strings as well as numbers?
Yes, the boolean comparison (e.g., E3=H3) works perfectly for both text strings and numerical values. However, keep in mind that standard text comparisons in this formula are not case-sensitive.
How do I modify the formula if I have more than three pairs to compare?
You can easily expand the formula by adding more logical components. For example, to include a fourth pair (K3 and N3) worth 2 points, you would add +2*(K3=N3) to the end of your arithmetic formula.
How do empty cells affect this formula?
If both cells in a pair (e.g., E3 and H3) are empty, the formula considers them a match because blank equals blank, awarding the points. Using the IF and COUNT method prevents the formula from scoring entirely empty rows.




