How to Use Excel IF Formulas with Conditions for Saturday and Sunday
Question details
The user needs an Excel formula to check multiple conditions simultaneously, specifically looking for a specific name in one cell and either 'Saturday' or 'Sunday' in another, to apply different calculations for each day.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Applying different mathematical calculation rates based on specific text conditions (a person's name and the day of the weekend) across multiple cells.
- Observed behavior
- The user attempted to create a nested IF statement but encountered errors due to missing closing parentheses at the end of the formula.
Ensure you have the correct cell references for your target text (e.g., names and days) and the corresponding calculation rates before building your nested formula.
Use Nested IF Statements with ISNUMBER and SEARCH
This method combines the IF, ISNUMBER, and SEARCH functions to accurately identify specific text strings and apply the correct calculations for each condition.
Using nested IF statements allows you to evaluate multiple conditions sequentially.
The SEARCH function finds the position of a specific text string (case-insensitive), and ISNUMBER returns TRUE if the text is found. Multiplying these boolean values acts as an AND logic operator.
Click on the cell where you want the final calculated result to appear.
Type `=IF(ISNUMBER(SEARCH("fred",B12))*ISNUMBER(SEARCH("Saturday",L12)), E12*$M$2*$R$5,` to define the condition and calculation for Saturday.
Continue the formula with the nested IF for Sunday: `IF(ISNUMBER(SEARCH("fred",B12))*ISNUMBER(SEARCH("Sunday",L12)), E12*$R$2*$R$5,`.
Add `""))` at the end to return a blank if neither condition is met, ensuring all opened parentheses are properly closed. The final formula is: `=IF(ISNUMBER(SEARCH("fred",B12))*ISNUMBER(SEARCH("Saturday",L12)),E12*$M$2*$R$5,IF(ISNUMBER(SEARCH("fred",B12))*ISNUMBER(SEARCH("Sunday",L12)),E12*$R$2*$R$5,""))`.
Press the Enter key to apply the formula, then drag the fill handle down to apply it to other rows if necessary.

Master Complex Formulas Easily with WPS Office
WPS Spreadsheet fully supports all standard Excel functions, including nested IF, ISNUMBER, and SEARCH. It offers an intuitive interface to build, troubleshoot, and calculate complex formulas seamlessly.
- 1. Open WPS Spreadsheet: Launch WPS Office and open your workbook in the Spreadsheet module.
- 2. Input the Formula: Select your target cell and type your nested IF formula directly into the formula bar.
- 3. Leverage Formula Prompts: Use the auto-complete and color-coded parentheses features in WPS to ensure your nested formula is structurally correct.

Frequently Asked Questions
Can I use the AND function instead of multiplying conditions?
Yes, you can use the AND function to evaluate multiple conditions. For example, `AND(ISNUMBER(SEARCH("fred",B12)), ISNUMBER(SEARCH("Saturday",L12)))` works similarly to multiplying the two ISNUMBER functions.
Is the SEARCH function case-sensitive?
No, the SEARCH function is not case-sensitive. It will treat 'fred', 'Fred', and 'FRED' identically. If you need a case-sensitive check, use the FIND function instead.
Can I use the OR function to check for Saturday and Sunday at the same time?
If the calculation for Saturday and Sunday is identical, you can combine them using the OR function: `OR(ISNUMBER(SEARCH("Saturday",L12)), ISNUMBER(SEARCH("Sunday",L12)))`. However, since the calculations differ in this specific scenario, separate nested IF statements are required.
Why does my nested IF formula return a #VALUE! error?
A #VALUE! error typically occurs if one of the referenced calculation cells (such as E12, M2, or R5 in your formula) contains text or spaces instead of numerical values, preventing the multiplication from executing.




