How to Use Excel IF Formula for Calculations Based on 30 or 60
Question details
The user needs a formula to apply different multiplication logic to a sum of two cells, depending on whether a third reference cell contains the value 30 or 60.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Creating a dynamic calculation where the math shifts multipliers based on a specific input variable (30 or 60).
- Observed behavior
- The calculation result successfully adapts to either ((Cell1 + Cell2) * 2) * 60 or (Cell1 + Cell2) * 60 based on the condition evaluated.
Ensure your dataset is organized in clear columns (e.g., Value 1, Value 2, and the Condition Variable) so you can accurately reference them in your IF function.
Use the standard IF function to switch multipliers
This approach uses the IF function to check if the condition cell equals 30, returning the doubled multiplier if true, or the normal multiplier if false.
The IF function is the most straightforward method to evaluate a condition and return different mathematical outcomes. By nesting the logic inside the multiplication, you keep the formula compact.
Click the cell where you want the final calculation result to appear.
Type the formula =(B3+C3)*IF(D3=30,120,60). In this example, B3 and C3 are the cells you want to add together, and D3 is the cell containing either 30 or 60.
Press Enter to execute the calculation. You can then click and drag the fill handle at the bottom right of the cell to apply this formula to other rows.

Apply Boolean logic for a streamlined array formula
Use a mathematical evaluation of the condition without invoking the explicit IF function, which is excellent for dynamic arrays.
Easily Execute Conditional Formulas with WPS Spreadsheet
WPS Spreadsheet fully supports Excel's IF and Boolean logic formulas, providing a seamless and highly compatible environment for advanced data analysis and complex conditional calculations.
- 1. Open your workbook: Launch WPS Spreadsheet and open your existing file containing the data.
- 2. Enter the IF function: Click on the target cell, type '=', and begin typing your IF formula utilizing the on-screen syntax hints.
- 3. Auto-fill the data: Press Enter to get the result, and double-click the drag-fill handle to automatically populate the rest of your column.

Frequently Asked Questions
What happens if the condition cell is empty or contains a value other than 30 or 60?
In the formula =(B3+C3)*IF(D3=30,120,60), any value in D3 that is not exactly 30 (including an empty cell, text, or the number 60) will trigger the FALSE condition, resulting in a default multiplier of 60.
Can I add more conditions, like checking for 90?
Yes, you can use the IFS function or nest another IF function. For example: =(B3+C3)*IFS(D3=30,120, D3=60,60, D3=90,180).
Why doesn't my IF formula calculate properly even when the cell says 30?
Check if your condition cell contains text formatted as a number (e.g., '30' instead of the integer 30). If it's stored as text, you must use quotes in your formula like IF(D3="30",...) or convert the cell's format to a Number.




