spreadsheet snippets

How to export a Google Doc spreadsheet to CSV

Tagged csv, json, google, spreadsheet  Languages 

It's no longer possible to export Google Spreadsheet's to CSV, so use JSON instead:


You can find the SPREADSHEET_KEY in the Google Doc's original URL.

You can also use the Google Drive API.

Total hours between start and end time - Google Spreadsheet

Tagged format, google, spreadsheet, time, time report  Languages 

I want to extract the total hours worked from a Google spreadsheet.

Given the following data in a Google spreadsheet:

  • End time in column D using time format
  • Start time in column C using time format

For example:


To achieve this in a Google spreadsheet we can use the following formula:


Reference: https://infoinspired.com/google-docs/spreadsheet/payroll-hours-time-calculation-in-google-sheets/