How to Subtract Expenses from Income in Excel
In this article
To subtract expenses from income in Excel, put your income in one cell, your total expenses in another, and use a simple formula like =A2-B2 in a third cell. That single subtraction gives you your net income (or profit). For a full list, enter each income and expense on its own row and use a formula such as =SUM(B2:B10)-SUM(C2:C10) to subtract all expenses from all income at once. The steps below walk through both the quick version and a reusable layout.
What You'll Need
- A copy of Excel (desktop, web, or mobile) or a compatible spreadsheet app such as Google Sheets or LibreOffice Calc.
- Your income figures and expense figures, ideally already totalled or ready to list.
- A basic understanding of cell references (A1, B2, etc.) and how to type a formula starting with an equals sign.
Step-by-Step
- Open a blank workbook. In Excel, choose Blank workbook on the start screen, or open an existing file where you want the calculation to live. Menu labels can differ slightly by version, device, or region, but the core formula behaviour is the same.
- Set up column headers. In row 1, type labels such as Item in A1, Type in B1, and Amount in C1. Headers are optional but make formulas easier to read and audit later.
- Enter your income rows. Starting in row 2, type each income source in column A, put Income in column B, and the amount in column C. For example, A2 = Salary, B2 = Income, C2 = 3000. Continue down for each income item.
- Enter your expense rows. Below the income entries, type each expense in column A, put Expense in column B, and the amount in column C. For example, A5 = Rent, B5 = Expense, C5 = 1200. Keep going until every expense is listed.
- Pick a cell for the result. Click an empty cell below your data, such as C20, and type a label in the cell to its left, for example Net Income in B20. This is where the subtraction formula will go.
- Type the subtraction formula. In the result cell, type =SUMIF(B2:B18,"Income",C2:C18)-SUMIF(B2:B18,"Expense",C2:C18) and press Enter. This adds all rows marked Income, adds all rows marked Expense, and subtracts the second total from the first. Adjust the range B2:B18 and C2:C18 to match your actual last row.
- Check the result. The cell should show a positive number if income exceeds expenses, or a negative number (often shown in parentheses or with a minus sign) if expenses are higher. If it shows an error, see Troubleshooting below.
- Format the result as currency. Select the result cell, then on the Home tab choose the Number Format dropdown and pick Currency or Accounting. On Excel for the web the same dropdown is on the Home tab; on mobile, tap the cell and use the format options in the toolbar or the Format menu.
- Make it reusable. If you will add rows later, convert your data to a table: select the range, then choose Insert > Table and confirm the range. Formulas that reference the table will expand automatically as you add rows, so you do not have to rewrite the ranges each month.
- Save the workbook. Use File > Save As and choose a location, or press Ctrl+S (Cmd+S on Mac). Give the file a clear name such as Monthly Budget so you can find it again.
Common Mistakes
- Forgetting the equals sign. A formula must start with =. Without it, Excel treats the entry as text and shows the formula instead of the result.
- Typing numbers as text. If amounts are left-aligned in the cell, they may be stored as text and will be ignored by SUM and SUMIF. Re-enter them as plain numbers, or use the warning icon that appears next to the cell to convert them.
- Mismatched ranges. In SUMIF, the criteria range and the sum range must be the same size. If B2:B18 is 17 rows, C2:C18 must also be 17 rows.
- Subtracting the wrong way round. Income minus expenses is the usual order. Reversing it gives a negative result that looks like a loss when you actually made a profit.
- Leaving blank rows inside the range. Blank rows are fine for SUMIF, but they can hide missing entries. Fill every row you intend to count.
- Using spaces or inconsistent labels. SUMIF matches text exactly, so Income and income (with a trailing space) are treated as different. Keep labels consistent.
Tips
- Use a separate column for dates so you can filter by month and recalculate net income for any period.
- Name your ranges (Formulas > Name Manager) to make formulas shorter and easier to read, for example =TotalIncome-TotalExpense.
- Add a second formula that shows the result as a percentage of income: divide net income by total income and format the cell as a percentage.
- Keep income and expense sections visually separate with a blank row or a bold heading, so it is obvious which rows belong to which group.
- Use conditional formatting to highlight a negative net income in red, making problems easy to spot at a glance.
- If you track multiple months, put each month on its own sheet and use a summary sheet that references the totals, rather than one long list.
Troubleshooting
- The cell shows #VALUE!: One of the referenced cells contains text where a number is expected. Check the amount column for stray characters, spaces, or currency symbols typed manually.
- The result is zero when it should not be: The SUMIF criteria may not match your labels exactly, or the ranges may point at the wrong columns. Click the formula cell and inspect the coloured range outlines on the sheet.
- The formula shows as text: The cell is formatted as Text, or the entry is missing the leading equals sign. Change the cell format to General, then re-enter the formula.
- The result is negative unexpectedly: Either expenses genuinely exceed income, or the subtraction order is reversed. Check which total is being subtracted from which.
- New rows are not included: If you used fixed ranges, adding rows below the range will not update the total. Convert the data to a table or extend the ranges manually.
- Numbers look rounded: The cell may be formatted to show fewer decimal places. Widen the column or increase the decimal places in the Number Format settings; the underlying value is unchanged.
- The file will not save: Check that the location is writable and that the file is not open in another program. If the workbook is shared, ask others to close it before saving.
Frequently Asked Questions
Can I subtract expenses from income without listing every item?
Yes. If you already have a total income figure and a total expense figure, put them in two cells and use a simple formula such as =A1-B1. Listing items is only needed when you want the totals calculated for you.
What is the difference between SUM and SUMIF here?
SUM adds every number in a range. SUMIF adds only the numbers that match a condition, such as rows labelled Income or Expense. SUMIF is useful when income and expenses are mixed in one list.
Why does my formula show a negative number in parentheses?
That is an accounting-style display for a negative value, meaning expenses are higher than income. The underlying number is correct; change the number format if you prefer a minus sign.
Can I do this in Excel for the web or on my phone?
Yes. The same formulas work in Excel for the web and the mobile app. Menu locations differ slightly, but SUM, SUMIF, and basic subtraction behave the same way.
How do I subtract a percentage expense, such as tax?
Multiply the income by the percentage and subtract the result, for example =A1-(A1*0.2) for a 20 percent deduction. Format the result cell as currency.
Will the formula update if I change an amount?
Yes. Formulas recalculate automatically when the cells they reference change, so editing an amount updates the net income without any extra step.