You will build a Google Sheets invoice that fills in the PO number, PO date and line items as soon as you pick an invoice number from a dropdown. It suits anyone who bills the same clients or projects again and again. You need a Google account and a list of your invoice data.
YouTube video: How to Automatically Create an Invoice in Google Sheets - Excel Tips and Tricks
Caption availability is unknown. Check the CC control in the YouTube player.
- Video length
- 2 min 27 s
- Time to do it
- 20 minutes
- Difficulty
- Easy
- Steps
- 7
What you need
Steps
Open a new Google Sheet and add a tab named 687_DB. From row 3 down, put invoice numbers in column B, PO numbers in C, PO dates in D and line items in E to H.
On your invoice tab, select cell E5, the cell that will hold the invoice number. Click Data, then Data validation, then Add rule.
Set the criteria to Dropdown (from a range) and type ='687_DB'!$B$3:$B as the range. Click Done, then Close.
In the PO number cell, enter =INDEX('687_DB'!C3:C,MATCH(TRUE,ISNUMBER(FIND(E5,'687_DB'!B3:B)),0)). This returns the PO number tied to the invoice number in E5.
In the PO date cell, enter =INDEX('687_DB'!D3:D,MATCH(TRUE,ISNUMBER(FIND(E5,'687_DB'!B3:B)),0)). It returns the matching date from column D.
Under the invoice header, enter =FILTER('687_DB'!E3:H,'687_DB'!B3:B=E5). This lists every line item row that belongs to the invoice number in E5.
Pick an invoice number from the dropdown in E5. The PO number, PO date and line items fill in on their own.
Tips and common mistakes
Keep the data tab separate from the invoice tab so the FILTER range stays clean and easy to read.
If a formula returns #N/A, the invoice number in E5 does not exactly match any value in column B.
Copy the invoice tab for each new client instead of retyping the formulas from scratch.
Questions
Can I use my own tab name instead of 687_DB?
Yes. Replace every 687_DB in the formulas with your tab name. If the name has a space, wrap it in single quotes, like 'Invoice Data'.
Why does the FILTER formula show #N/A?
The invoice number in E5 is not found in column B, or the ranges do not line up. Check that both ranges start and end on the same rows.
Does this work in Excel too?
The INDEX, MATCH and FIND parts work in Excel, but the FILTER function needs a newer Excel version. Data validation dropdowns are set up in a different menu.
The notes are drafted automatically from video details and general task knowledge. How the guide was prepared
Report a correction


