Back to Blog

Tutorial on How You Can Export Google Calendar to Google Sheets with and without Coding

Google Calendar is widely known as one of the best tools to manage schedules and tasks. It captures your work and meetings that take both short and long periods of time. It has become a data source containing useful information about your work life. In some cases, you may need to export your calendar data to Google Sheets. But what method should you use? Find the answer in this blog post. 

Note: The original version of this article did not contain an option to automate exports of Google Calendar to Google Sheets. The updated one already shows how you can export data from Calendar to spreadsheets on a schedule using the Google Calendar integration by

Why you would need to export data from your Google Calendar to Sheets

You may need a list of activities with the time spent on each of them, for purposes such as:

  • Sending invoices to clients, especially for services you charge on an hourly basis.
  • Creating reports for administrative purposes. 
  • Analyzing your productivity or your teams’. For example, to know whether you spend too much time on certain types of tasks, or if you work on high-priority tasks first, etc.

Google Calendar has the data you need. You could click on each individual event on your calendar to see how much time you spent on each activity. However, having your data exported to Google Sheets automatically will always be a better solution. It saves you time and minimizes errors. It’s also easier to do basic data analysis in a spreadsheet, such as summing the hours and sorting the activities.

The best option to auto-export Google Calendar to Google Sheets 

We decided to play our ace by showing the best method to export Google Calendar to Google Sheets –

Why is it the best one? It allows you to automate data flow from your calendar to spreadsheets. Moreover, you can change the destination, transform data on the go, and benefit from many other valuable features. Let’s see what it looks like in action!

You can use the Google Calendar integration by as a web app or an add-on for Google Sheets. The latter requires you to install the add-on. In this article, we’ll use the web app. Nevertheless, the UI and the flow are the same for both the web app and the add-on. To kick off, sign up to to create an account. Then click Add new importer and select the source and destination apps. In our case, we have Google Calendar as a source and Google Sheets as a destination. Proceed to set up the integration.

Step 1. Extract data

  • Connect your Google account associated with the calendar you want to export.
2.0 connect google calendar
  • Select a data category to export:
    • List of my calendars
    • List of my events
    • Report: busy time for user
2.1 select data category
  • Then select a calendar from which you want to extract data. Optionally, you can specify the start and end dates or last update date (it must be at the latest 4 weeks from today).
2.2 google calendar basic settings

Another optional parameter is advanced filters. After that, you can proceed to data preview and transformation.

Note: allows you to consolidate data from multiple sources. So, you can add several calendars to export data from and load into the one master view. For this, click +Add one more source and configure the connection as described above. 

2.3 google calendar add on more source

Step 2. Transform data

At this step, you can preview the data to be extracted from Google Calendar and transform it on the go. Data transformation includes:

  • Hiding columns
  • Editing columns (change name, change data format)
  • Add calculable columns
  • Sort columns
  • Filter data
3.0 google calendar data transform

When everything is set up, proceed to manage the destination.

Step 3. Manage data

  • Connect your Google account associated with a Google Sheets spreadsheet where you will load data from Google Calendar. 
  • Then select this spreadsheet and a sheet for the data. You can create a new sheet if you type a new name. 
3.1 google calendar manage data

Optionally you can select the first cell or range of cells where the calendar data is imported; change the import mode from replace to append; enable the last updated column, and disable data update per each run. 
The most valuable feature though is Automatic data refresh. It allows you to set up a schedule for data flow automation. You need to toggle it on, and specify:

  • Interval (from every month to every 15 minutes)
  • Days of week
  • Time preferences
  • Schedule time zone 
3.2 google calendar schedule

Click Save and Run when you’re ready to make the first export of Google Calendar to Google Sheets and launch the automation. Wanna see how your calendar data looks in the spreadsheet? There you go!

3.3 google calendar in google sheets

It’s pretty awesome, isn’t it? In addition to Google Calendar, also supports productivity and time-tracking apps such as Clockify, Harvest, Calendly, and TimeTonic. 

Check out the full list of the 60+ available sources to see if you can export automatically from your favorite apps. By the way, the same list of sources is available for importing to Excel, BigQuery, and Looker Studio if you want to create really amazing reports.

Now, let’s see some other solutions for exporting your Calendar to Google Sheets.

Can I export Google Calendar to a spreadsheet with native functionality?

Unfortunately, currently, there’s no such functionality within Google Calendar that allows you to export data directly into Google Sheets. What you can do is export the ICS file of an individual Calendar. 

An ICS file is a standard Internet calendar format that stores calendar event data. It’s used by several calendar programs, including Microsoft Outlook, Google Calendar, Yahoo! Calendar, and Apple Calendar. With ICS format, you can share your calendar data with someone else who’s using a program other than Google Calendar.

Follow the steps below if you’d like to export ICS files from all of your calendars associated with your Google account.

Open Google Calendar. In the top right corner, click the Settings icon, then click Settings from the menu. 

Google Calendar Settings

On the Settings page, click the Import & export > Export menu. Then, under the Export section, click the Export button. 

Export ICS files from all calendars

You’ll see a ZIP file download to your computer. Unzip it, and you’ll find individual ICS files for each of your calendars.

The downloaded ICS files

Now, you can share these ICS files (or one of them) with your friend. They should be able to open it using their calendar program – Outlook, Yahoo! Calendar, or Apple Calendar.

How to export Google Calendar to Google Sheets using add-ons

The most actionable way to transfer calendar data to Google Sheets is by using a Google Sheets add-on. As we mentioned above, is available as an add-on for Google Sheets

Streamline data analytics & reporting

Streamline your data analytics & reporting with! is an all-in-one data analytics and automation platform designed to close the gap between getting data and using its full potential. Gather, transform, understand, and act on data to make better decisions and drive your business forward!

  • Save hours of your time on data analytics by integrating business applications with data warehouses, data visualization tools, or spreadsheets. Enjoy 200+ available integrations!
  • Preview, transform, and filter your data before sending it to the destination. Get excited about how easy data analytics can be.
  • Access data that is always up to date by enabling refreshing data on a schedule as often as every 15 minutes.
  • Visualize your data by loading it to BI tools or exporting it directly to Looker Studio. Making data-driven decisions has never been easier.
  • Easily track and improve your business metrics by creating live dashboards on your own or with the help of our experts.

Try today at no cost with a 14-day free trial (no credit card required), and join 700,000+ happy users to accelerate growth with data-driven decisions.

Start 14-day free trial

At the same time, there are a few other options that allow you to get data from Calendar, such as Calendar to Sheet and Sheets2GCal. Unfortunately, none of these add-ons allow you to export data from your Calendar automatically.

GSheets add-ons are third-party software applications. You can view the add-on library by clicking Add-ons > Get add-ons from the top menu. It will open a new dialog window that allows you to browse or search for a particular add-on. Alternatively, you can go directly to Google Workspace Marketplace and search for the options right there.

Find add-ons on Google Workspace Marketplace

Clicking on each add-on will bring up a description of what it does. To install it, click the Install button. It will ask permission to access your Google Drive, and you need to allow it to complete the installation.

Now, let’s discuss two of these add-ons, Calendar to Sheet and Sheets2GCal.

Export calendar data with the Calendar to Sheet add-on

Calendar to Sheet allows you to import your Google Calendar events into Google Sheets by applying date and text filters. After installing the add-on, you will see it in the Add-ons menu.

A Google Sheets add-on Calendar to Sheet

Before importing data, you need to specify which calendars you want to import. You can also add text and date filters. 

Add filters in Calendar to Sheet

Here is an example result of importing calendar data with Calendar to Sheet:

Calendar data imported with Calendar to Sheet

See that you have event data such as start time, end time, event description, duration, notes, and location exported in the spreadsheet. Info about the total duration is also displayed at the top of the page.

Export calendar data with the Sheets2GCal add-on

Sheets2GCal not only allows you to import Google Calendar events into Google Sheets but also update Calendar from Sheets. To get started after installing, click Add-ons > Sheets2GCal > Import (Calendar->Sheet) menu to import data from Google Calendar. 

You will need to specify which Calendar you want to import. You can also set the Start Date and End Date if you want to. However, before you can import, you need to sign up for a FREE account on 

Add filters in Sheets2GCal

Click the Import Events button, and you will get a result similar to this below. 

Calendar data imported with Sheets2GCal

Notice that the result has more fields compared to the result of Calendar to Sheet. However, it doesn’t have a column that shows duration, so you need to calculate it yourself. Here’s how you can do this:

Step 1. Insert a new Duration (hh:mm) column after the End Time column.

Step 2. Enter this formula into a blank cell under the new column.


Step 3. Apply the formula to the other cells by selecting the formula cell and then dragging the fill handle down to the other cells. 

How to calculate duration

If your data set is large enough, you’d be better off using the ARRAYFORMULA function instead of dragging the formula. Here is how it will look:

ARRAYFORMULA example to calculate duration

Other options for you to export information from Google Calendar to spreadsheet without coding

One of the SaaS tools that can help you export Google Calendar to Google Sheets is TimeTackle. It was originally a simple calendar exporter called Gcal2Excel. Now, they have expanded the list of features and sources, so you can consider it for your needs if you want to save time doing advanced analytics, generating invoices, creating many custom reports, and exporting automatically as scheduled.

What TimeTackle can do:

  • Export Google Calendar to Excel, CSV, and Google Sheets
  • Export with tags and color options (calendar color or event color)
  • Sync Google Calendar to Google Sheets and schedule automatic syncs
  • Create invoices automatically from calendar entries
  • Generate many types of custom reports
  • Provide advanced calendar analytics

Once you sign up, you’ll be offered to connect your calendar.

2.TimeTackle connecting Google Calendar

After this, you’ll be able to add tags, view your calendar entries in the timesheet format,  analyze meeting health, trends, interactions, and more.

TimeTackle allows you to sync your Google Calendar with Google Sheets automatically. To turn this feature on, go to the Timesheet in the menu on the left, then find the Google Sheets Sync button in the upper right corner. Press it and set your preferences for the updates.

3.TimeTackle setting a schedule

Once this is done, new meetings and other calendar entries will appear in the selected spreadsheet automatically. TimeTackle will keep updating your data according to your settings.

If necessary, you can download your data from the same menu by pressing the Download button. The available formats are XLSX and CSV.

How to export Google Calendar to Sheets using Google App Script

Above we introduced the no-code solutions. Now, let’s explore how you can export calendar data using Google App Script. 

No need to worry even if this is your first script. We have provided the copy-and-paste solution for you, so you won’t have to code on your own. Feel free to check out our Google Apps Script Tutorial.

Export Google Calendar events to Google Sheets using App Script

Before you start, you will need to get the ID of your Calendar. 

How to get the Calendar ID:

Open Google Calendar, then click the Settings icon > Settings at the top right. On the Settings page, scroll down to the Calendar you want to export. Select Integrate calendar from the left menu. Then, copy the value of the Calendar ID displayed in the right pane, as the following screenshot shows.

How to get the Calendar ID

Note: You can also simply use your Google email address as the Calendar ID if you want. In that case, all your calendars will be exported.

Now, follow the easy step-by-step below:

Step 1. Create a new blank Google Sheets document. Give it a name – for example, Google Calendar Import.

Step 2. Copy and paste your Calendar ID into the B1 cell.

Copy-paste your Calendar ID into the B1 cell

Step 3. Specify the criteria to filter the calendar data:

  • Start date (B2 cell) in the format mm/dd/yyyy hh:mm:ss
  • End date (B3 cell) in the format mm/dd/yyyy hh:mm:ss
  • Text to search (B4 cell)
Specify the criteria to filter the calendar data

Note: Start date and End date values must be formatted as Date Time

Step 4. From the menu, click Tools > Script editor.

Step 5. Remove all code in Then, copy and paste the following importGoogleCalendar() function into the file:

function importGoogleCalendar() { 
  var sheet = SpreadsheetApp.getActiveSheet();
  var calendarId = sheet.getRange('B1').getValue().toString(); 
  var calendar = CalendarApp.getCalendarById(calendarId);
  // Set filters
  var startDate = sheet.getRange('B2').getValue();
  var endDate = sheet.getRange('B3').getValue();
  var searchText = sheet.getRange('B4').getValue();
  // Print header
  var header = [["Title", "Description", "Start", "End", "Duration"]];
  var range = sheet.getRange("A6:E6");
  // Get events based on filters
  var events = (searchText == '') ? calendar.getEvents(startDate, endDate) : calendar.getEvents(startDate, endDate, {search: searchText});
  // Display events 
  for (var i=0; i<events.length; i++) {
    var row = i+7;
    var details = [[events[i].getTitle(), events[i].getDescription(), events[i].getStartTime(), events[i].getEndTime(), '']];
    range = sheet.getRange(row,1,1,5);
    // Format the Start and End columns
    var cell = sheet.getRange(row, 3);
    cell.setNumberFormat('mm/dd/yyyy hh:mm');
    cell = sheet.getRange(row, 4);
    cell.setNumberFormat('mm/dd/yyyy hh:mm');
    // Fill the Duration column
    cell = sheet.getRange(row, 5);
    cell.setFormula('=(HOUR(D' + row + ')+(MINUTE(D' +row+ ')/60))-(HOUR(C' +row+ ')+(MINUTE(C' +row+ ')/60))');

Note: Alternatively, you can set up filters right in the script:

  // Set filters
  var startDate = new Date("December 1, 2020 00:00:00");
  var endDate = new Date("December 31, 2020 23:59:59");
  var searchText = 'Dev';

If you don’t want to apply a text filter, set the value of seachText to an empty string, as follows:

var searchText = '';

Step 6. Run the script from the Editor

Execute the script from the Editor

Note: The very first time you run the script, you will be asked to authorize the script to access your data. Grant permission when requested.

Here’s the output:

Calendar data imported with Apps Script

From the screenshot above, see that the script exports each event’s title, description, start time, end time, and duration. If you’d like to export more data such as event color, location, and attendance, this method list can help you.

Set up a button to export Google Calendar to Google Sheets

It’s not always convenient to run the script from the Editor. Thus, let’s tweak the script a bit, so you can run it right from the spreadsheet.

Add the following function to the file.

function onOpen() {
  "use strict";
  var menuEntries = [{
    name: "Import",
    functionName: 'importGoogleCalendar'
  }], activeSheet;
  activeSheet = SpreadsheetApp.getActiveSpreadsheet();
  activeSheet.addMenu('Import Calendar', menuEntries);

Now your script has two functions, onOpen() and importGoogleCalendar(), as the following screenshot shows:

Two functions in the Apps Script

The onOpen() function adds a custom menu Import Calendar every time you open the spreadsheet. It has the Import sub-menu that calls the importGoogleCalendar() function.

Save the script, then refresh your spreadsheet. You will see a new menu added to your spreadsheet.

Import Calendar menu added to your spreadsheet

Now, every time you want to export data from the Calendar, just click the Import Calendar > Import menu. 

Set up auto-export Google Calendar to Google Sheets with Apps Script

If you don’t want to click the Import Calendar button every time, you can schedule the export of data from Google Calendar to Google Sheets. To do this, you’ll need to set up a time-drive trigger. Go to the Triggers section in your Apps Script project.

Triggers section in Apps Script

Then click + Add Trigger in the bottom right of the window.

Add trigger button

In the new window, you’ll need to set up the trigger.

Set up the Trigger parameters

Choose which function to run

Select the function you want to automate on a schedule. Since we have two functions, onOpen() and importGoogleCalendar(), we need to choose the one that imports data from Google Calendar to the spreadsheet.

Choose which deployment should run

Select the deployment if you have different ones.

Select event source

Select event source

Select the event source: from spreadsheet, time-driver or from calendar. In our case, we need time-driven.

Select type of time based trigger

Once you selected the time-driven event source, the next field is to choose the type of time-based trigger:

  • Specific date and time
  • Minutes timer
  • Hour timer
  • Day timer
  • Week timer
  • Month timer

We want to import data from Calendar on a daily basis. So, we need to choose Day timer.

Select time of day

Select the time when you want the data to be imported every day.

Failure notification settings

You can select the frequency of getting notifications in the case of failure:

  • Immediately
  • Hourly
  • Daily
  • Weekly 

If you click on the plus symbol, you can set up multiple notifications.

Failure notifications settings

When ready, click Save. Your time-based trigger will appear on the list.

Time-based trigger

Bonus: from Google Sheets to Google Calendar

Suppose you worked during a vacation and simply logged your activities in a spreadsheet. To keep track of your schedules, you can automatically export your entries to Google Calendar. The following example shows you how to do that using a script.

Export dates in Google Sheets to Calendar 

Before you jump into the code, ensure that the dates in your spreadsheet are in the correct format to make it easier to export. 

Select the dates, then click Format > Number > Date Time from the menu. 

How to format dates in Google Sheets to export into Google Calendar

Read our tutorial to learn more about how to change date format in Google Sheets.

Now, you’re ready to export to Google Calendar. 

Google App Script to export from a Sheet to Calendar 

Follow the steps below to create the script.

Step 1. Click Tools > Script editor.

Step 2. Remove all code in file. Then, copy and paste the following code.

function exportToCalendar() {
  var calendarId = ""; 
  var calendar = CalendarApp.getCalendarById(calendarId);
  var sheet = SpreadsheetApp.getActiveSheet();
  var events = sheet.getRange("A2:C3").getValues();
  for (x=0; x<events.length; x++) {
    var evt = events[x];
    var title = evt[0];
    var startTime = evt[1];
    var endTime = evt[2];
    calendar.createEvent(title, startTime, endTime);

Step 3. Change the calendarId‘s value in the script ( to yours.

Step 4. Run the script from the Editor. For the first time you run it, again, you will be asked to authorize the script to access your data. Grant permission when requested.

Step 5. Refresh your Calendar. You’ll see new events added for the specified dates.

Events imported from Google Sheets to Google Calendar

Calendar in Google Sheets is easy

We have explored several options for exporting Google Calendar to Google Sheets, with or without coding. If you want a simple solution, try using an Add-on or Google App Script. If you want to save time doing advanced analytics and reporting, you may want to go with Hopefully, one of the options explained here is the best choice for you! 

  • Zakhar Yung

    A content manager at whose key responsibility is to ensure that the readers love our content on the blog. With 5 years of experience as a wordsmith in SaaS, I know how to make texts resonate with readers' queries✍🏼

Back to Blog

Comments are closed.

Focus on your business
goals while we take care of your data!