Excel: Use IF Function to Return Net Income or Net Loss

Excel is an incredibly powerful tool that can be used to improve businesses or help individuals manage their finances. One of its more advanced features is the IF function, which allows users to quickly and easily calculate a net income or net loss. In this article, we’ll discuss the importance of the IF function in Excel and provide an example of how to use it to calculate net income or net loss. The IF function is a critical tool in Excel that can help users make decisions, analyze data, and create financial models. It evaluates a given condition and then returns a value based on the result. The IF function can be used to make decisions about financial data, such as whether a company has made a net income or a net loss. By using the IF function, users can quickly and easily determine the financial performance of a company. Furthermore, the IF function can be used to create financial models, such as budgeting for a new project or analyzing the impact of a new product launch. Understanding how to use the IF function in Excel is essential for anyone looking to gain an edge in their business or financial decisions.


You can use the following formula to use an IF function to return “net income” or “net loss” based on the value of specific cells in Excel:

=IF(B2>C2,"Net Income",IF(B2<C2,"Net Loss", "Even"))

Assuming total revenue is in cell B2 and total expenses is in cell C2, this IF function returns the following values:

  • If revenue is greater than expenses, then return “Net Income”
  • If revenue is less than expenses, then return “Net Loss”
  • Otherwise, if revenue is equal to expenses, then return “Even”

The following example shows how to use this formula in practice.

Example: Use IF Function to Return Net Income or Net Loss in Excel

Suppose we have the following dataset in Excel that shows the total revenue and expenses of various retail stores in different locations:

Suppose we would like to create a formula to return either “Net Income”, “Net Loss”, or “Even” to indicate how the revenue compared to the expenses in each region.

We can type the following formula into cell D2 to do so:

=IF(B2>C2,"Net Income",IF(B2<C2,"Net Loss", "Even"))

We can then click and drag this formula down to each remaining cell in column D:

Excel IF function to return net income or net loss

Column D now displays “Net Income”, “Net Loss” or “Even” to indicate how the revenue compared to the expenses in each region.

For example:

  • Revenue was less than expenses in the North region, so the formula returned “Net Loss”
  • Revenue was greater than expenses in the East region, so the formula returned “Net Income”
  • Revenue was greater than expenses in the South region, so the formula returned “Net Income”

And so on.


In conclusion, the IF function in Excel is a powerful tool that can be used to return either “Net Income”, “Net Loss” or “Even” depending on the value of specific cells. This tutorial provided an example of how to use the IF function to compare the revenue and expenses of different regions, and showed how to type the formula into a cell and drag it down to the remaining cells in a column. This is a great way to quickly identify whether a region experienced a net income or net loss.

x