I'm attempting to sort through a decent amount of data sent to me via Google Sheets. It's about 400 rows but will grow so I'm wanting to make this dynamic. There is a cell named Location that has data in it such as Los Angeles, California or Salt Lake City, UT
My goal is to break each of these cells into a City and State cell. Replacing the current Locationcolumn with City and putting the state into the column to the right of it called State.
Any help on where to get started, tools to use, or already in-place functions would be great. This is going to be hosted through Google Drive to keep it easily accessible, so VBA probably won't work.
Without needing to use script:
Let's say Location is column A and data starts at cell A2. In B2 you could put
=ARRAYFORMULA(TRIM(SPLIT(A2:A,",")))
To hide the "N/A" that is returned for blank columns, you could put
=ARRAYFORMULA(IF(A2:A="","",TRIM(SPLIT(A2:A,","))))
Related
I work with various groups at work. Each group tracks the same thing so I want to create a central tracker to gather better data for senior leadership. However, each group names the columns in their trackers something different and have the columns in a different order.
Is there a way in Google apps script where I can combine these same columns together?
An example: One group will call a column "project name" in A1 cell, then another would label the column "Initiative Name" in cell B1. But in a new sheet I want to combined them under 1 column name that I would label.
Thanks for any help!
I'm new to learning Google apps script so at this point I'm confused and lost.
I want to get all cities close to my actual geolocalisation (by GPS) in a X radius. A good example is the app Tinder. The user select the value of radius in KM and the app gets all the cities close to his geolocalisation inside the selected radius.
I want to calculate the radius and get all cities within by javascript or PHP.
An illustration:
You can download a database of all US cities, with their states and latitude/longitude, then query the database based on current GPS info. Just google search for a DB, they are about 30 meg, so make sure your queries are optimized.
Here is a db that should work...
https://www.maxmind.com/en/free-world-cities-database
If you can find a geospacial database it would perform better (not sure if linked one is or not). I have used a non geospacial one and it was fine though.
I have a spreadsheet in Google Sheets where I'm trying to output the coordinates of the selected cell to another cell. Imagine a 10x10 grid beginning in Cell A1. If I select A1 then the coordinates (1, 1) are outputted to a cell (let's say L1). If I then selected B4, the coordinates (4, 2) would be in L1. It's important for this to update every time a new cell is selected. How might I do this?
Given your goal, I recommend you simply make each cell in your win-loss table a hyperlink to a separate file that contains the details of the game.
Something like:
=hyperlink("http://example.com","W")
Replace http://example.com with the path to the specific Google Doc you create for the details of each game summary.
If you don't have enough detail to warrant it's own individual file / GoogleDoc, then you could just insert a note (not a comment) if you have just a little bit of data about each game. Or if you have a little more details a middle ground solution would be to add a table where the columns are the data fields for each game and the rows are the individual games.
Otherwise, I think you will have to get into scripting to accomplish what you describe. And given your situation, I would not recommend that approach because, in my opinion, you have better options available that are simpler to accomplish your objective.
Is there some javascript I can use to filter the results displayed on This Map by price ?
Looks like there are lot of different calls but I can't figure the object/array I should filter on.
Turns out the page before the Flight Maps page on google flight allows you to set a max price.
That's then reflected in the flight maps page URL in the mp param (assume it means max price)
https://www.google.com/flights/#search;f=SFO;d=2014-12-04;r=2014-12-08;mp=450;mc=m
Saves the trouble of having to write any code.
Here is a link to my Fusion Table.
If you look at the column labeled 'date', you can see two dates: 7/4/2012 and 7/5/2012. To the left is the column 'price', which changes depending on the date.
The map I am making is Geocoded according to the four U.S. Census Regions: Northeast, Midwest, South, and West.
I'd like to make a map that displays the price of the latest date.
So, in this case, clicking any Northeast state would show that 'price' is '0'.
Does anyone know how I can make this happen?
One way would be to use the google visualization library. On click query the table for the region, order by date, limit 1 extract the price and display it.
Here is an example that uses a gviz query to put data in the infowindows.
This example might be more useful, it puts all the rows returned in an infowindow and allows the row to be dynamically selected, that part doesn't seem to work in IE8, but you don't need to dynamically change the data, since you only want the latest value.
Here is an example which does what I think you want using your data.