Fix Excel IF and AND Formula Returning FALSE for Text-Based Rules
Question details
The user needs to set up a nested IF and AND formula for text-based criteria that correctly multiplies a specific cell without returning a FALSE or blank error.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Calculating a dynamic multiplication result based on multiple text criteria in different cells.
- Observed behavior
- The formula incorrectly returns FALSE or a blank result due to misplaced multiplication arguments or mismatched text formatting.
Ensure that the cell you are multiplying contains a valid numeric value and that the cells containing text criteria do not have hidden trailing spaces.
Use a Correctly Nested IF and AND Formula
Restructure the nested IF formula so that the multiplication operation is correctly placed inside the true argument of each matching condition.
When dealing with multiple text criteria combinations, every IF statement must be configured so that the calculation (e.g., multiplier * cell value) executes only when the specific AND conditions are met. Providing a final blank string prevents the FALSE error if no criteria are fulfilled.
Click on the cell where you want the calculated result to appear.
Input the formula using AND for the conditions and placing the multiplication in the result argument: =IF(AND(D5="Hard",H5="Easy"),3.5*C2, IF(AND(D5="Moderate",H5="Easy"),3*C2, IF(AND(D5="Easy",H5="Moderate"),3*C2, IF(AND(D5="Hard",H5="Moderate"),4*C2, IF(AND(D5="Moderate",H5="Hard"),4*C2, IF(AND(D5="Moderate",H5="Moderate"),3*C2, IF(AND(D5="Easy",H5="Easy"),2*C2,"")))))))
Press Enter to execute the formula, then click and drag the fill handle at the bottom-right corner of the cell to apply the calculation to the remaining rows.

Clean Text Criteria Using the TRIM Function
Remove extra hidden spaces from your text cells that cause exact match conditions to fail and return an empty result.
Use a Lookup Table for Easier Maintenance
Replace complex nested IF statements with a lookup table that maps text combinations to their respective multipliers.
Master Complex Formulas with WPS Spreadsheet
WPS Spreadsheet perfectly supports advanced functions like IF, AND, and VLOOKUP, allowing you to seamlessly fix formula errors and process complex data logic. Enjoy a familiar interface to troubleshoot calculations effortlessly.
- 1. Open your workbook: Launch WPS Spreadsheet and open the document containing the nested formula errors.
- 2. Analyze the formula: Click on the cell displaying FALSE or returning blank, and click into the formula bar. WPS Spreadsheet will highlight related cell ranges and matching parentheses.
- 3. Apply corrections: Modify the formula to properly place the multiplication within the true argument, add a trailing empty string, and press Enter to recalculate.

Frequently Asked Questions
Why does my nested IF formula return FALSE instead of a blank cell?
If an IF function does not have a defined 'value_if_false' argument (such as "") and none of the logical tests are met, the spreadsheet application defaults to returning the boolean word FALSE. Adding ,"" at the end of your nested IF statement resolves this.
How do I handle case sensitivity in text-based formulas?
Standard IF and AND functions are not case-sensitive, meaning 'Hard' and 'hard' are treated as the same. However, leading or trailing spaces will cause mismatches. Using the TRIM function helps clear these spaces.
Is there a limit to how many IF functions I can nest together?
Yes, in modern spreadsheet software like WPS Office and Excel, you can nest up to 64 IF functions. However, if you find yourself nesting more than a few conditions, it is highly recommended to switch to a lookup table using VLOOKUP or XLOOKUP for better performance and readability.




