Formula Errors

How to Use Excel IF Formula for Calculations Based on 30 or 60

Camila MilosovichCamila Milosovich Nov 10, 2026 869 views

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.

How to Use Excel IF Formula for Calculations Based on 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.
Before you start

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.

Solution 1Recommended

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.

1
Select the target cell

Click the cell where you want the final calculation result to appear.

2
Enter the IF formula

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.

3
Apply and drag

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.

Use the standard IF function to switch multipliers
Alternative logic: You can also write the formula as =(B3+C3)*60*IF(D3=30,2,1) to visually separate the base multiplier from the conditional multiplier.
Advanced Data Calculations

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. 1. Open your workbook: Launch WPS Spreadsheet and open your existing file containing the data.
  2. 2. Enter the IF function: Click on the target cell, type '=', and begin typing your IF formula utilizing the on-screen syntax hints.
  3. 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.
100% compatibility with Microsoft Excel formulas, functions, and file formats.Intuitive function library with helpful syntax prompts and auto-completion.Lightweight and fast performance, even when handling large datasets.Completely free to use across Windows, Mac, Linux, and mobile platforms.
microsoft office alternative - wps office

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.