Apply Different Discounts and Add the Results in Excel
Question details
Calculate and add two amounts after applying a different percentage discount to each, including the second amount only if it is numeric.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- The first amount is in M64 with its discount in I70; the optional second amount is in M68 with its discount in K70.
- Observed behavior
- The result should include the discounted M64 amount and add the discounted M68 amount only when M68 contains a number.
Check that M64 contains a number and that I70 and K70 contain numeric discount rates, such as 10% for a 10% discount. Choose an empty cell for the result.
Use IF and ISNUMBER to add the discounted amounts
Use this formula when M68 may be blank or contain nonnumeric text.
In Excel, click the empty cell where you want the combined discounted total.
Type =M64*(1-I70)+IF(ISNUMBER(M68),M68*(1-K70),0) and press Enter.
Review the result cell: Excel discounts M64 by I70 and adds M68 discounted by K70 only if M68 is numeric.

Add discounted amounts in WPS Spreadsheets
Use the same IF and ISNUMBER formula in WPS Spreadsheets to calculate the two discounted amounts and exclude a nonnumeric second value.
- 1. Open the workbook: Open WPS Office, select Spreadsheets, and open your workbook.
- 2. Check the input cells: Enter the first amount in M64, the optional second amount in M68, and their percentage discount rates in I70 and K70.
- 3. Enter the formula: Click an empty result cell, type =M64*(1-I70)+IF(ISNUMBER(M68),M68*(1-K70),0), and press Enter.
- 4. Save the workbook: Select File > Save to keep the formula in your workbook.

Frequently Asked Questions
What happens if M68 is blank or contains text?
ISNUMBER(M68) returns FALSE, so the IF function adds zero instead of a discounted second amount.
How should I enter the discount percentages?
Enter a rate such as 10% in I70 or K70. You can also enter 0.10 for the same 10% rate.
Why is a number in M68 being ignored?
It may be stored as text. Select M68 and convert it to a number, then check that the formula includes the discounted amount.
Can I use a shorter formula if M68 always contains a number?
Yes. Enter =M64*(1-I70)+M68*(1-K70) in the result cell. This version does not check for nonnumeric text in M68.




