Calculation Issues

Compare Two Profit Scenarios in Excel Using IF or MAX

Algirdas JasaitisAlgirdas Jasaitis Dec 2, 2026 869 views

Question details

Compare two net profit values and return the higher result, with an option to identify the winning scenario.

Compare Two Profit Scenarios in Excel Using IF or MAX
Product
Microsoft Excel
Device & OS
not provided
Scenario
A user has calculated net profit for two scenarios and wants to compare the results.
Observed behavior
The desired result is the higher profit value and, optionally, the associated scenario name.
Before you start

Enter the two net profit values as numbers in cells A1 and B1, or adjust the formulas to match your worksheet. Choose an empty cell for the result.

Solution 1Recommended

Use MAX to Return the Higher Profit

Use MAX for the simplest comparison when you only need the higher value.

1
Select the result cell

Click an empty cell, such as C1, where you want the higher profit to appear.

2
Enter the MAX formula

Type =MAX(A1,B1) and press Enter. The cell displays the higher of the two profit values.

Use MAX to Return the Higher Profit
Compare profits in WPS Spreadsheet

Compare Profit Scenarios in WPS Spreadsheet

Use MAX or IF in WPS Spreadsheet to compare two profit values and identify the scenario with the higher result.

  1. 1. Open your spreadsheet: Open WPS Spreadsheet and select Open to choose your workbook, or create a new spreadsheet.
  2. 2. Enter the profit values: Enter the two net profit values in cells A1 and B1.
  3. 3. Calculate the higher value: Click C1, enter =MAX(A1,B1), and press Enter.
  4. 4. Identify the scenario: Enter the scenario names in A2 and B2, then enter =IF(A1>=B1,A2,B2) in an empty cell to show the winning name.
Compare profit scenarios with familiar MAX and IF formulas.Open and edit Microsoft Excel XLS and XLSX files.Use a familiar spreadsheet interface to enter formulas and review results.
microsoft office alternative - wps office

Frequently Asked Questions

Which formula returns the higher of two profit values?

If the values are in A1 and B1, enter =MAX(A1,B1) in an empty cell. You can also use =IF(A1>=B1,A1,B1).

Why does my IF formula return the lower profit?

The formula =IF(A1<B1,A1,B1) selects the lower value. To return the higher value, use =IF(A1>=B1,A1,B1) instead.

How can I show the name of the more profitable scenario?

With profits in A1 and B1 and their respective names in A2 and B2, enter =IF(A1>=B1,A2,B2). If the profits are equal, the formula returns the name in A2.

Does MAX work when both profit values are negative?

Yes. MAX returns the larger number, so =MAX(-100,-50) returns -50, the smaller loss.