How to Build an Excel Invoice with Formulas and Totals Automatically

Stop calculating invoice totals by hand. Follow this guide to create an Excel invoice with automatic formulas on your own, or let Cougny do it for you.

Cougny hovers beside a laptop showing a spreadsheet, with a calculator, a potted plant and a blue background.

You need to send an invoice—but you don't want to calculate totals, taxes, or discounts by hand. We'll show you how to build an Excel invoice that does the math for you, and then how Cougny can create the whole thing from a single sentence.

Why use formulas in an invoice?

When you use formulas, you type the numbers once, and the invoice calculates everything else. That means no arithmetic errors, no last-minute surprises, and no wasted time. You can also reuse the template for every client.

Here's what an automatic invoice can do:

  • Multiply quantity by unit price for each line
  • Add up all line items to get a subtotal
  • Apply a discount rate or a tax rate
  • Show the final total, ready to send

What you need

  • Microsoft Excel (or Google Sheets, Numbers, or LibreOffice Calc)
  • A few minutes to set up the formulas
  • Optional: Cougny if you'd rather not do it manually

Method 1: Build the invoice yourself

Step 1: Create the basic layout

Open a new Excel workbook and type these labels:

  • In cell A1: Invoice
  • In cell A2: Date:
  • In cell B2: enter today's date
  • In cell A3: Invoice #:
  • In cell B3: a unique number like 0001
  • In cell A4: Bill To:
  • In cell A5: your client's name and address

Below that, create a table with these column headers in row 8 (adjust row numbers as needed):

  • A8: Description
  • B8: Quantity
  • C8: Unit Price
  • D8: Amount

Step 2: Add the first formula (line totals)

The Amount column should multiply the quantity by the unit price. In cell D9, type:

=B9*C9

That formula takes the value in B9 (quantity) and multiplies it by C9 (unit price). Press Enter, and you'll see 0 until you enter numbers.

Step 3: Copy the formula down

Select cell D9, then drag the small square in the bottom-right corner down to row 18 (or further if you have more line items). Excel automatically adjusts the formula for each row.

Step 4: Add a subtotal

Below your last line item, in cell A19, type Subtotal:. In cell D19, type:

=SUM(D9:D18)

This adds up all the amounts in the Amount column.

Step 5: Add tax (or discount) and total

If you charge sales tax, enter the tax rate as a decimal in a cell (say, F1). Then, in cell A20, type Tax:. In cell D20, type:

=D19*$F$1

The dollar signs make the reference to F1 absolute, so it won't change if you copy the formula.

Finally, in cell A21, type Total:. In cell D21, type:

=D19+D20

That's your invoice total, calculated automatically.

Step 6: Format and save

Make it look professional: bold the headers, add borders, and set the currency format for the amounts. Then save the file as an Excel workbook. You can also save a copy as a PDF to send to your client.

Method 2: Let Cougny do it for you

If you'd rather not type formulas and format cells, Cougny can build the invoice from a simple instruction. Cougny is a voice-controlled assistant that runs on your Mac or Windows PC. It sees your screen, understands what you ask, and does the work using Excel—just like you would, but faster.

How to ask Cougny

  1. Make sure Cougny is installed and signed in (see the getting started guide).
  2. Press ⌃ Control + ⌥ Option on Mac, or the Cougny shortcut on Windows. You can also click the Cougny icon.
  3. Say or type:

"Create an Excel invoice with formulas for line totals, subtotal, 8% tax, and total. Use my company name 'Acme Studio' and the client's name 'Northwind Traders'. Put it in an Excel file named 'Invoice-Northwind.xlsx' and save it to my Documents folder."

Cougny will open Excel (or your spreadsheet app), build the layout, enter the formulas, apply formatting, and save the file. You can then review and fill in the details.

What Cougny does automatically

  • Line totals: multiplies quantity by unit price for each row
  • Subtotal: sums all line totals
  • Tax: applies the tax rate you specify
  • Total: adds subtotal and tax
  • Formatting: applies currency formatting and a clean layout

All of this happens on your computer. Cougny only sends the text of your request to its AI to understand what you want; your data stays local.

Which method should you choose?

  • You want to learn and have full control: follow the manual steps above. Once you set it up, you have a reusable template.
  • You want speed and zero hassle: ask Cougny. It's just as private, and you get a finished invoice in seconds.

Creating an invoice with automatic calculations doesn't have to be a chore. Whether you build it yourself or let Cougny handle it, you'll have an accurate, professional invoice every time.

Ready to try? Download Cougny for Mac or Windows, or read more about Cougny on the blog.

Keep reading