Data from google analytics to google sheets - numbers in wrong format - google-sheets

I am trying to import my Google analytics numbers to google sheets using google analytics add-on. My problem is that numbers for example revenue is downloaded in US format "3212.23" and I would like to have format "3212,23".
I tried to use Importrange to import data to another google sheet, but unfortunately it did not help.
Thanks for your help.

The Google Analytics API returns the data in the standard American format for numbers . being decimal place.
Depending upon what language you have the sheet settings set to that country the default decimal format will be the one for that country.
Google Docs to Spanish Google Docs spreadsheets will by default use
the Spain locale and the date/time and decimal comma used in this
locale.
I would think that you could do a replace of some kind on the . returning from the API on numbers.

Related

Google Sheet: Get Data from NSE website to Google spreadsheet

I want to import data i.e. Issued Cap. and Free Float Market Cap. from this website:
Edit: 11-Jun-2022
https://www.nseindia.com/api/quote-equity?symbol=TRITURBINE
in Company information sector to a Google sheet.
I have tried Importhtml, Importdata and Importxml...but they all give an error or return #N/A.
Any suggestions would help greatly.
import formulae of google sheets do not support the scrapping of JS elements. you can always test this by disabling JS on a given site and usually, what's left can be imported into a spreadsheet. in your case fields are blank:

Importing data from links to google sheets

I have a list of links from which I have to manually detect if the product is in stock or not. Is there any import function in google that I can use to identify whether or not the specific product is in stock without opening the link. Can Importxml or importhtml be used?
https://www.katespade.com/products/the-little-better-sam-daisy-dots-small-shoulder-bag/767883202005.html?cgid=ks-new-arrivals-view-all
try:
=IMPORTXML(A1, "//div[#class='jss250']")

How can I make and connect a spreadsheet to my code using the Google Sheets API?

I'm writing an app that needs to record data in a Google Spreadsheet with Swift.
I'm just really uncertain how to actually get started! I set up the Google sheets API in the Google API console and in my cocoapods following the Quickstart provided by google. Google's libraries GoogleAPIClientForREST and GTMOAuth2 are in my app and are ready to be used.
I basically just need to read and write to an existing spreadsheet but I do not know how to create the spreadsheet and refer to it so I can read and write to it as needed.
Thanks!
Whenever I want to read or write to a Google spreadsheet using the Sheets API, I refer to Reading & Writing Cell Values.
Basic Reading
The following spreadsheets.values.get request reads the values stored in the range Sheet1!A1:D5 and returns them in the response. Empty trailing rows and columns are omitted.
GET https://sheets.googleapis.com/v4/spreadsheets/spreadsheetId/values/Sheet1!A1:D5
Basic Writing
Starting with a new, blank spreadsheet, the following spreadsheets.values.update request will write the values to the range Sheet1!A1:D5. The ValueInputOption query parameter is required and determines if the values written will be parsed (for example, whether or not a string is converted into a date).
PUT https://sheets.googleapis.com/v4/spreadsheets/spreadsheetId/values/Sheet1!A1:D5?valueInputOption=USER_ENTERED
Here's the iOS Swift Quickstart for your code reference.

Time Zone information for Google Calendar Event Query

I would like to use following url to retrive the hoildays for each country
http://www.google.com/calendar/feeds/tr.turkish%23holiday%40group.v.calendar.google.com/public/full
As i am developing application for windows phone, i don't know in which country it will be used.
So i am trying to find the language.timezone combination which i can formulate to use.
I check the following link for timezone names, http://www.timezoneconverter.com/cgi-bin/zonehelp.tzc
but its different than what google accepts.
like, Turkey listed as Europe/Istanbul, but google acceptes as tr.turkish. if I try tr.Europe/Istanbul, i get error.
Another example South Africa is accepted as en.sa. I can't find the corelation between country codes and timezone codes.
is there any way to find the list for all countries to code in program that google accepts?
Thanks a lot for the help

Google Docs Publish to the Web Data parsing

I have a trouble with parsing of data from google spreadsheet api. I have a spreadsheet with 3 pages and I need to get data from there and parse them to array where key is cell position and value is value of cell.
When I go to File->Publish to the web with option "All sheets" and target format is CSV seperated with comas I get a link which is targeting data with just values of cells and just from first page.
Here is any way how to get data from all sheets and with information where are placed in document (cell name (code))?
Thank you all!
You can use Google Spreadsheet API, for example using its Java Library
or you can use Google Apps Script and its spreadsheet methods
both of them are giving you the ability to have your data live in Google spreadsheet and at the same time access it from other clients or sites. You don't need to export it and lose the ability to have it updated across all your clients.

Resources