Can I get a column formula for a fusion table from the API - google-fusion-tables

I'm trying to backup one of my fusion tables and would like to be able to use the API to do so. The trouble is I am not able to get the formula for a particular column, just the values.
I'm able to describe the table and see the column info (id, name, and type) and then do a SELECT and get all the information in the table, but what comes back is the value, not the formula. Is there any way I can get the formula?

It is not possible to retrieve the formula in a column from the API. Please feel free to open a feature request on the list:
http://code.google.com/p/fusion-tables/issues/list

Related

referencing a grouped date column using GETPIVOTDATA in Google Sheets

I'm doing an analysis of sales data in Google Sheets and I'm building a dashboard with information about different sales reps. I'm trying to use the GETPIVOTDATA function to reference a year-quarter group in my pivot table, but I can't get the function to return the correct value.
In the pivot table, I have specific timestamps grouped by year-quarter and organised as columns. I have the individual sales reps and their teams organised as rows:
[Google Sheets pivot table]. I want to use GETPIVOTDATA to get the number of SQLs for a specific sales rep in a specific quarter.
The function will only return the Grand Total for the sales rep (column F in the picture), or if the Grand Total is disabled in the pivot table, it returns a #REF! error.
I tried many iterations of the GETPIVOTDATA function. I also tried making a helper column in the original data that lists the specific year and quarter instead of the timestamp. Neither of these worked.
I realise that I can use an INDEX MATCH or VLOOKUP instead, but I want to be able to change the pivot table later without having to change the formula.
If anyone knows what I'm doing wrong (or if what I'm trying to do is even possible with a GETPIVOTDATA function) I'd really appreciate advice! I can't seem to figure it out.

Update a Google spreadsheet with a unique identifier

I want to update a google spreadsheet using a form. Each customer fills out the form with a unique identifier. This same identifier is entered in column A of each row.
I would like the other columns (B, C, ...) to be updated automatically according to the customer number.
Anyone have an idea for a script to use?
Try using an ARRAYFORMULA together with VLOOKUP. You can see the documentation here and here respectively.
For example: =ARRAYFORMULA(VLOOKUP(A1:A,'other_sheet!A1:C,2,0))
This will add each value in A to each value in B like A1+B1, A2+B2, A3+B3, and so on.
If you post the formula you are trying to use, I may be able to adapt it using Arrayformula.

(Google Sheets/Google Forms) I'd like to be able to collect live data from different columns and have them populate one column instead

I'm collecting data from a Google Form that allows the user to choose which language they'd like the survey to be in, and based on his/her answer, the Google Form will utilize branching to lead them to the questions in the language he/she chose. For example, if they choose 'English,' a question they will answer is 'Full Name,' while if they choose 'Español,' they will answer 'Nombre y apellido.'
This leads the spreadsheet to collect the data from those questions into two separate columns. Is there a way to set up the spreadsheet so it organizes the data from the same translated questions into columns? The form will be receiving data constantly. I've tried stacking the columns using this formula template: ={A2:A5;D2:D5}, but the formula simply moved cells whenever data was added from the Google Form. I am collecting multiple points of data in 6 different languages, and I'm really hoping there's a way to organize this data to make it much less cumbersome to wade through.
If you have any ideas, please let me know! I'll try whatever you've got. 😅 Thanks!
You can union the column values, using open ranges, and then filter out the empty values using =QUERY() or =FILTER().
This way you'll be effectively joining values from different columns as one.
For example if you wanted to join data of columns A, D and E, you could do:
Using QUERY
=QUERY({A2:A;D2:D;E2:E}, "select Col1 where Col1 is not null")
Using FILTER
=FILTER({A2:A;B2:B;E2:E}, {A2:A;B2:B;E2:E} <> "")

Find sheets row with two matching column values in Zapier

I'm creating a zap and using the "Lookup Spreadsheet Row"
I'm looking for two matching values within a row, if one column value matches "A" and another column in the same row's value is "B" then I want to use that row ID to continue.
Is there a way to lookup a row with two matching values in separate columns?
I can't seem to find any help documentation on this.
David here, from the Zapier Platform team.
We can only search one column at a time for simplicity's sake. The best solution here is to create a composite column in your spreadsheet. Then in Zapier, you can search for that combination. Here's a simple example:
In your zap setup, you can build your search string from previous fields:
Hopefully that makes sense!

Formula (Array, etc.) for automatic Google Sheets Indexing using inputs from Google Forms

I'm hoping that someone can help me tweak (or even substitute) a formula that I'm using in Google Sheets to automatically populate columns with information based on inputs from a Google form.
Simply put, I am using the Index function to match the name that is selected from a drop-down menu in the Google Form and arrives in Column E of the Google Sheet receiving the responses with an identical list of names in Column A of 'Sheet 2'. The index formula takes information from 'Sheet 2' relating to that name (e.g. Registration Number, Email Address) and places it in the 'Formresponses 1'sheet alongside the inputs from the Google form (including, of course, the name that appears in Column E'.
I have been using (variations on) the following formula without any issues, but I have to manually drag it down the relevant column in 'Formresponses 1' each time a new entry/name arrives from the Google Form: =index(Sheet2!$B$2:$B,match(E2, Sheet2!$A$2:$A,0),1)
I have successfully used Array Formulas to automatically carry out other functions on data arriving from a Google Form (i.e. adding up individual numbers to arrive at an overall total), but in this case I cannot figure out how to create a formula that will automatically take each new name that arrives in column E and insert it into the relevant indexing formula at that end of that new row.
Any suggestions - or solutions! - would be greatly welcome!
Thanks,
A.
Cheers I'-'I,
I've used I'-'I's response to my original question here as a starting point and, with a bit of research, I've come up with the following working formula:
= ArrayFormula(vlookup(E2:E, Sheet2!A:E, {1,2,3,5},FALSE))
[The curly brackets simply indicate the columns in Sheet 2 from which I want to pull pieces of data relating to each name that is matched up in the 'front end' sheet receiving the responses from the Google Form.] As with my previous problems with array formulas, I found the following website really useful, so full credit has to go to it: benlcollins.com

Resources