Function Problems

How to Use Excel IF Formulas with Conditions for Saturday and Sunday

Jason MillerJason Miller Nov 3, 2026 870 views

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.

How to Use Excel IF Formulas with Conditions for Saturday and Sunday
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the target cell

Click on the cell where you want the final calculated result to appear.

2
Enter the first condition (Saturday)

Type `=IF(ISNUMBER(SEARCH("fred",B12))*ISNUMBER(SEARCH("Saturday",L12)), E12*$M$2*$R$5,` to define the condition and calculation for Saturday.

3
Enter the second condition (Sunday)

Continue the formula with the nested IF for Sunday: `IF(ISNUMBER(SEARCH("fred",B12))*ISNUMBER(SEARCH("Sunday",L12)), E12*$R$2*$R$5,`.

4
Close the formula

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,""))`.

5
Press Enter

Press the Enter key to apply the formula, then drag the fill handle down to apply it to other rows if necessary.

Use Nested IF Statements with ISNUMBER and SEARCH
Check Parentheses: A common error when writing nested IF functions is missing closing parentheses at the end. Ensure you have one closing parenthesis for every IF statement used in the formula.
Advanced Formula Editor

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. 1. Open WPS Spreadsheet: Launch WPS Office and open your workbook in the Spreadsheet module.
  2. 2. Input the Formula: Select your target cell and type your nested IF formula directly into the formula bar.
  3. 3. Leverage Formula Prompts: Use the auto-complete and color-coded parentheses features in WPS to ensure your nested formula is structurally correct.
100% compatible with Microsoft Excel formulas and file formats (.xlsx)Built-in formula syntax checking and highlighting to prevent missing parenthesesFree, lightweight, and fast-loading spreadsheet applicationExtensive library of templates for advanced data analysis
microsoft office alternative - wps office

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.