Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

terrywbrady/PlainTextCSV_GoogleAppsScript

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PlainTextCSV_GoogleAppsScript

Create a Google Sheet from a CSV file preventing auto-formatting of date and number fields

By default, both Excel and Google Sheets auto-format date and numeric fields on import. This can introduce errors in systems that expect these values to be retained as strings.

For example 2016-04 is converted to a date 04/01/2016

Sample Screenshots

https://github.com/terrywbrady/PlainTextCSV_GoogleAppsScript/releases/tag/v1.0.0

Installation

  • Open Google Drive
  • Create a new "Google Apps Script" and name it "CSV Upload"
  • Load the 3 code files in this repository
  • Click the "Deploy as Web App" button (cloud with an arrow in it)
  • Execute the app as: User Running the Script
  • Who has access: Choose the appropriate audience
  • Save the URL to the deployed application (be sure the URL ends with /exec and not /dev)
  • Share the URL with your users
  • Users will need to authorize the application to write to Google Drive before running the application

StackOverflow Thread

http://stackoverflow.com/questions/36605298/create-a-google-sheet-with-plain-text-cells-to-prevent-auto-format-of-strings

About

Create a Google Sheet from a CSV file preventing auto-formatting of date and number fields

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.