Members-only tutorial

Watch the video and get the practice sheet with membership.

See membership options

Expense Tracker Template with Data Entry Form Inside Sheets

About this Tutorial

Create a data entry form for an expense tracker. Simple dashboard too with sum and sum between two dates.

Featured Formulas

Video Transcript

<div>0:00 So here's a very simple expense tracker. We're going to have some expense, you know, dinner. We're going to put in the cost, and we can put in a date.<br>0:11 You can even pick this date here. Let's say it was last night. So this is pretty cool, right? Just very simple expense tracker.<br>0:21 We can create a summary. We can add up the sum of this cost.

Uhm, and I will do that, put a little dashboard Learn how to create a dashboard for your expense tracker in Sheets. Opens in new tab together, but on that dashboard Learn how to create a dashboard for your expense tracker in Sheets. Opens in new tab I want to do one more thing, which is I don't want to have to see all of the expenses that I've had when I go and enter a new expense.<br>0:37 I want to just enter into a form the expense, the cost, the date, and it inserts it for me. So I'm going to create a dashboard Learn how to create a dashboard for your expense tracker in Sheets. Opens in new tab here.<br>0:46 It's a brand new page. I'm going to have these three items, expense, cost, and date. And then we're going to create a little form.<br>0:55 So let's view without the gridlines Discover how to manage gridlines for a cleaner look in your Sheets. Opens in new tab . Let's delete a bit of the excess stuff.

Let's create some grid Understand the importance of grids in organizing your data effectively. Opens in new tab lines here, make it a little bit thicker.<br>1:12 And let's create that dashboard Learn how to create a dashboard for your expense tracker in Sheets. Opens in new tab , right? So, total, it's going to be equal to the sum of what's on the expenses Can even put together a start and end.<br>1:36 And put a subtotal. Maybe flip this around. So let's put a date of validation Implement data validation to ensure accurate date entries in your tracker. Opens in new tab and make this a date.<br>1:58 IsValidDate, done. And we do that as well. And now we have a picker.

And we can say, hey, we want to look at everything from here to here.<br>2:08 And so we're going to sum the filter Use filters to analyze your expenses based on specific criteria. Opens in new tab of range Learn about defining ranges for calculations in your expense tracker. Opens in new tab , just get the cost, where Explore how to use query where clauses for advanced data filtering. Opens in new tab the date is greater than the start date Set a start date for your expense tracking to analyze specific periods. Opens in new tab .<br>2:24 Shake that. Greater than or equal to. And the end date Define an end date to filter your expenses within a specific timeframe. Opens in new tab . And then this date is less than or equal to this date.<br>2:41 And sum up all of that filter Use filters to analyze your expenses based on specific criteria. Opens in new tab and we have a subtotal. So we can change these Let's see. There to there.<br>2:50 We're going to get an N-A. So we're going to wrap Make your text more readable by using the wrap text feature in Sheets. Opens in new tab if N-A. We want to wrap Make your text more readable by using the wrap text feature in Sheets. Opens in new tab that so we get a zero.<br>2:58 Let's make sure that is dollar sign.

So if we add some more expenses, let's say, another dinner. But it was last week.<br>3:08 17th. And so now, between this and the 9th and the 23rd, we have 30 bucks. But we have $60 total.<br>3:18 There. Let's make this all quicksand. Make it a little bit bigger too. Fun size. There. So we have a total total, then a subtotal if we want to know how much we've spent during a particular time.<br>3:34 Like maybe all of April, let's say. $60. And in this form here, let's create one more line. Give it a little bit more space.<br>3:47 We're going to enter an expense.

Let's say it's dinner with friends. The cost was, $30. The date, we want the date to be the same as that there.<br>4:06 Now it's a picker. Let's say it was today. Now we want to enter that into our expenses. The automation is going to be going to insert a row above two and then put whatever is in B4 into A2 and so on and so forth.<br>4:22 So let's go to extensions app script Automate your expense entries with Google Apps Script. Opens in new tab and start building this.

We're going to call it function Learn how to create functions to streamline your expense calculations. Opens in new tab submit expense, I'm going to go spreadsheet Get familiar with spreadsheet basics for better data management. Opens in new tab app dot get active spreadsheet Understand how to work with the active spreadsheet in your scripts. Opens in new tab dot get sheet by name.<br>4:41 I think it was expenses, yeah, expenses, insert row Find out how to insert rows dynamically in your expense tracker. Opens in new tab Before two. Now you might be thinking why don't we insert a row after one.<br>4:54 It's because whenever we insert a row it's going to take whatever format Master formatting techniques to enhance the appearance of your Sheets. Opens in new tab it's inserting from. So if we're going from one down it's going to take the format Master formatting techniques to enhance the appearance of your Sheets. Opens in new tab of the header Learn about headers and their role in organizing your data. Opens in new tab column.<br>5:05 But we don't want to do that, we want to take the format Master formatting techniques to enhance the appearance of your Sheets. Opens in new tab of the second row. So let's do that.<br>5:12 So we're inserting before two.

Before two. Now we're going to move everything. So we need variable expense equals, what is that?<br>5:23 Dashboard Learn how to create a dashboard for your expense tracker in Sheets. Opens in new tab . Dashboard Learn how to create a dashboard for your expense tracker in Sheets. Opens in new tab . Get range Learn about defining ranges for calculations in your expense tracker. Opens in new tab . Actually let's make this a variable as well. Variable dashboard Learn how to create a dashboard for your expense tracker in Sheets. Opens in new tab equals this.<br>5:37 So we only have to write dashboard Learn how to create a dashboard for your expense tracker in Sheets. Opens in new tab dot get range Learn about defining ranges for calculations in your expense tracker. Opens in new tab . Just double check the range Learn about defining ranges for calculations in your expense tracker. Opens in new tab is B4. B4. Get value.<br>5:49 We just want the value inside there. That's our expense. Our cost is going to be C4. And our date is going to be D4. Right?<br>6:04 Double check. B4, C4, and D4. We can change that around if we need to.

But how do we insert them?<br>6:19 Well, we have a new row already because we've inserted this row up So let's go to our experiment. Expenses, let's create a variable expenses sheet, close that, and we can get rid of this code expenses sheet and now go to get range Learn about defining ranges for calculations in your expense tracker. Opens in new tab we want to go to the second row in the first column, set value, expense<br>6:59 now we could use the same notation Understand notation for referencing cells in your formulas. Opens in new tab here, a, uh, what is that, row two, so A2 but for this particular case I like to have the, uhm sort Discover sorting methods to arrange your expenses efficiently. Opens in new tab of, row column notation Understand notation for referencing cells in your formulas. Opens in new tab .<br>7:17 So we just change that second part, that column that it's in. Expense, cost, and date.

Save it. And now we want to click run, submit expense, but before we do that we want to do one more thing which is we want to clear these ranges Get to know how to define and use ranges in your calculations. Opens in new tab .<br>7:37 So that we can enter something else. So let's go back up here to this B4. Clear content Learn how to clear content without affecting formatting in Sheets. Opens in new tab . We want to clear content Learn how to clear content without affecting formatting in Sheets. Opens in new tab , not clear everything from it, not the formatting Master formatting techniques to enhance the appearance of your Sheets. Opens in new tab or anything.<br>7:51 D4. So now, we're going to automate what we would normally do if we had to.

Take all of this three pieces of information and add them here.<br>8:05 We're going to insert a row, we're going to take B4, put it in A2, so on and so forth, and then come back here and delete or clear this content from here.<br>8:16 So let's click run with submit expense and test it out. We're going to have to authorize it the very first time we do it.<br>8:22 We don't have any errors and we have our dinner friend submitted.<br>8:41 Cool, it's working.

I want to do one extra thing, which is insert a drawing Create interactive elements like buttons using drawings in Sheets. Opens in new tab , a clickable button here, so that we can actually do this without having to go to the Apps Script Automate your expense entries with Google Apps Script. Opens in new tab .<br>8:50 So the function Learn how to create functions to streamline your expense calculations. Opens in new tab is called submitExpense, so I'm going to copy that just so we have the exact thing. I'm going to show you what to do.<br>8:58 Insert a drawing Create interactive elements like buttons using drawings in Sheets. Opens in new tab . Let's create a fun shape. This shape here. SubmitExpense. I want to make it look a little bit bigger, the text.<br>9:17 There. Save and close. We have a button now.

Let's put it right there and click the three buttons next to it, inside it, assign script, paste our name of a script, click OK.<br>9:31 Now, let's see if it works. Let's buy a new bike for $100,000. Let's say we're buying this, this Monday.<br>9:44 Submit expense. It's now cleared from here. Our expenses has a new expense here. Awesome! And our total is increased. That's how you create a sort Discover sorting methods to arrange your expenses efficiently. Opens in new tab of data Understand how to manage and analyze data effectively in your tracker. Opens in new tab entry form inside of Sheets for an expense tracker that you might not want to see all of your expenses when you're adding it up.<br>0:02 Or adding a new one.

You might not want to have to scroll down to the bottom to add it. This dashboard Learn how to create a dashboard for your expense tracker in Sheets. Opens in new tab makes a nice, cool interface where Explore how to use query where clauses for advanced data filtering. Opens in new tab you can submit that expense without any other information.<br>0:13 And, we have a nice dashboard Learn how to create a dashboard for your expense tracker in Sheets. Opens in new tab . We can see the total. We can see the start and end date Define an end date to filter your expenses within a specific timeframe. Opens in new tab . Between two dates, what's the subtotal of that?<br>0:19 Let's say it's the 20th to the 23rd. Cool! We've spent $100. In that time period. Awesome! Hope you enjoyed that video.<br>0:30 If you want this sheet and you're on BetterSheets.co right now, down below is this exact template Explore templates to kickstart your expense tracking in Sheets. Opens in new tab .</div>