How to Calculate Number of Days in Google Sheets

Google Sheets is a great option for anyone who needs basic spreadsheet tools and wants to collaborate with other Google users. One useful feature is the ability to calculate the number of days between two dates using simple formulas. In this post, we’ll show you how to do it.

The easiest way to calculate the number of days between two dates in Google Sheets is to use the minus function. First, make sure that the two dates are in separate columns (let’s say B3 and C3). Then, select cell B3 and click on the function bar at the top of the page. Enter “=minus(C3,B3)” and press Enter. Google Sheets will return the value of 40, which is the number of days between those two dates.

If you want to calculate months and years in addition to days, you can use the date difference formula. Enter “=datediff(C3,B3,”d”)” to calculate days, “=datediff(C3,B3,”m”)” to calculate months, or “=datediff(C3,B3,”y”)” to calculate years. Depending on the unit you used, you’ll see the difference between your time.

Finally, the network day function allows you to calculate weekdays between two days, removing weekends from the count. Enter “=networkdays(B3,C3)” to calculate weekdays. If you need to specify holidays, add a third coordinate to your list and input the cell number into the formula.

Using these formulas makes it simple to keep track of vacation or work days, the length of your school semester, or the amount of time in a pay quarter. Try them out in your own Google Sheets to make your data calculations easier.