Compare Two Profit Scenarios in Excel Using IF or MAX
Question details
Compare two net profit values and return the higher result, with an option to identify the winning scenario.

- 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.
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.
Use MAX to Return the Higher Profit
Use MAX for the simplest comparison when you only need the higher value.
Click an empty cell, such as C1, where you want the higher profit to appear.
Type =MAX(A1,B1) and press Enter. The cell displays the higher of the two profit values.

Use IF to Compare Profits and Identify the Scenario
Use IF when you want to return the higher profit or display its scenario name.
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. Open your spreadsheet: Open WPS Spreadsheet and select Open to choose your workbook, or create a new spreadsheet.
- 2. Enter the profit values: Enter the two net profit values in cells A1 and B1.
- 3. Calculate the higher value: Click C1, enter =MAX(A1,B1), and press Enter.
- 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.

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.




