logo
search
Function Problems

How to Use Excel IF Formula to Multiply a Difference by 80 Percent

Maira MehtabMaira Mehtab Sep 20, 2026 869 views

Question details

The user needs to construct a formula that calculates 80 percent of the difference between cell T5 and cell T4 only when T5 is larger than T4, and outputs the text 'NO' if the condition is not met.

Product
Excel
Device & OS
not provided
Scenario
Conditionally calculating a percentage of a difference based on the comparison of two numeric values in a spreadsheet.
Observed behavior
The correct formula will calculate the percentage successfully when the condition evaluates to true, and display 'NO' when false. Syntax mistakes may result in a #NAME? error.
Before you start

Verify that the cells you are comparing (e.g., T5 and T4) contain numeric values rather than text, and note your regional settings as some regions require semicolons instead of commas to separate formula arguments.

Solution 1Recommended

Apply the Conditional IF Formula

Use the standard IF function to evaluate the values and conditionally perform the mathematical calculation.

The IF function in Excel checks whether a specific condition is met, returning one value for TRUE and another for FALSE. In this case, we nest subtraction and multiplication inside the TRUE argument.

1
Select the result cell

Click on the empty cell where you want the calculated result or the word 'NO' to appear.

2
Enter the IF formula

Type the following formula directly into the cell or the formula bar: =IF(T5>T4,(T5-T4)*80%,"NO")

3
Execute the calculation

Press Enter. The spreadsheet will subtract T4 from T5 and multiply the result by 80% if T5 is strictly greater than T4. Otherwise, it will return the text NO.

WPS Spreadsheet Solution

Calculate Complex Data Effortlessly in WPS Spreadsheet

WPS Spreadsheet is a robust, free tool that fully supports standard logical functions like IF. You can execute advanced conditional math and data analysis directly within its familiar interface.

  1. 1. Open your dataset in WPS Spreadsheet: Launch WPS Office, open Spreadsheet, and load the workbook containing the values you want to calculate.
  2. 2. Input the calculation formula: Select your target cell, type =IF(T5>T4,(T5-T4)*80%,"NO"), and press Enter.
  3. 3. Apply to multiple rows: Click the small square at the bottom-right corner of the selected cell and drag it down to apply the calculation to the rest of your data.
Fully compatible with Microsoft Excel formulas and file formats (XLSX, XLS).Easily calculate conditional percentage differences and perform complex logical tests.Free, lightweight, and intuitive, offering a seamless alternative to expensive software.
microsoft office alternative - wps office

Frequently Asked Questions

How can I change the formula to leave the cell blank instead of returning 'NO'?

To return a blank cell when the condition is false, replace "NO" with empty double quotation marks (""). Your new formula will be: =IF(T5>T4,(T5-T4)*80%,"").

Can I use decimals instead of the percentage symbol in the formula?

Yes, you can substitute 80% with its decimal equivalent, 0.8. The formula calculates identically when written as =IF(T5>T4,(T5-T4)*0.8,"NO").

What does the #VALUE! error mean when using this IF formula?

A #VALUE! error occurs when one or both of the referenced cells contain text strings instead of numbers. Ensure that cells T5 and T4 only contain numerical data and do not have hidden spaces.

How do I modify this formula to calculate 80% of the difference if T5 is greater than OR equal to T4?

To include values that are equal, change the greater-than sign (>) to greater-than-or-equal-to (>=). The modified formula is =IF(T5>=T4,(T5-T4)*80%,"NO").