Merge a column of URLs with a column of values - google-sheets

I have two columns in a spreadsheet, "name" and "LinkedIn URL". I'd like to remove the "LinkedIn URL" column and just turn all the names into links to their corresponding url. Is there an easy way to do this without manually copying each link and manually applying the link to the cell?
After creating this new column I would like to remove the original two columns.

you can hyperlink it and repaste it:
=INDEX(HYPERLINK(B2:B; A2:A))
where A are names and B are urls

Related

How do I create hyperlinks with a formula or rollup?

I have a table of items, each has a Name and a URL.
How can I combine the two and create a field that stores the hyperlinked Name, linking to its respective URL?
Furthermore, would it be possible to do the same with not just a formula field, but a rollup field?

How do add a Percentage column to this Google Sheet pivot table

I have a pivot table, in Google Sheets, and want to add a percentage column.
EDIT: here is a link to a sample spreadsheet: https://docs.google.com/spreadsheets/d/12qyhOtKphW1iBWAOtfDHU1RdZRZ_Nq91eQtdghZzIyc/edit?usp=sharing
Below you can see the pivot table with the column (E) that I've manually added next to it, showing what I want to achieve, but as part of the pivot table, which is a simple:
E4=D4/C4
However, I have tried adding a Calculated Field under Values but can't work out the right formula; this didn't work:
='Checked In'/'Events'
nor did:
=D4/C4
I'm sure it's something simple, but I can't for the life of me work it out. Can anyone shine a light on what I'm doing wrong please?
Short Answer: Only use the column headers of the raw data and not the column headers of the other existing calculated fields.
Note: Since you have not shared a sample spreadsheet, I have made a sample data just to show the process.
Sample Raw Data
Creating a Pivot Table
Select the desired data to be added to the table which only includes the useful column headers (like the one selected in the sample raw data image).
Add a Calculated Field
To add a calculated field, look for the Values section in the Pivot table editor and click add (as shown above). To enter a formula, the pivot table editor requires you to use the column headers instead of the cell range (A1 notation). The formula you provided works just fine. In this case, I used ='Checked in'/Events to check if column headers with one word do not necessarily need single quotation marks (which will result in the following):
Note: Always use 'string' (single quotation mark) format in using column headers especially when the column headers contain spaces (like Checked in in the example).
Note: You may change the Column Header Output just by selecting the cell and renaming it.
Sample Modifications
You may also use other Google Sheets functions in the formula just like:
Which results to:
Reference
Create & Use Pivot Tables
Additional Info
When trying to add additional calculated fields using data based from other calculated fields, always use the original column headers of the raw data and not the column headers of the calculated fields as it returns an error just like the one below:
In your case, I modified your formula to
=COUNTA('Venue Name')/COUNTUNIQUE('Event Date')
Since both Venue Name and Event Date are the column headers of your raw data and not Checked in and Events. The current output of the corrected formula should look like this:
To address the decimals in the output values, you may refer to the Sample Modifications section of this answer.

How do you convert a String to Object in Google Sheets?

So I'm making a dependent dropdown column in Google Sheets that has a bunch of different things of a type. I've named the ranges I want to use and I've got column A with those names in the dropdown. The problem is, I can't use the contents of column A to reference in column B's data verification.
E.g. I select Tech in column A, column B reads that as "Tech" when I want it to be able to reference the named range Tech. How to you convert from the string "Tech" to the named range Tech? Is there a way without using a stupidly long nested IF on every single row of B column's data verification?
Thanks in advance :)

Google Sheets Data Feed has extra column headers in the JSON

I have a client who is using Google Sheets as a data feed. When using the correctly structured URL for the sheet, I see blank columns in the target table. When I look in the code inspector, I see gsx column header properties that are not an exact match with the column headers.
For example, in the table I am looking at, the first column is name "Case Number". This column is blank in the target table even though it should be populated with case numbers. When I look in the code inspector (Google Chrome), I open up the first row of data in the JSON object and see a key named 'gsx$casenumber'. This key has the property 'undefined'.
In the Google Sheet itself, the case numbers fill this column.
What's odd is that, even with a fresh spreadsheet, the 'gsx$casenumber' key has a property $t of 'undefined'. The column header in the Google Sheet is 'Case Number'.
The next key in the Google Sheet JSON object is'gsx$caseprefixtoeachcaseisd202cv'. This is the key in which the $t properties have the case numbers I should be able to see in the rendered table. This is happening in other columns, too.
Is there a way to either remove the first google sheet key in the JSON, or bind the key with the case numbers to the corresponding column header in the rendered table?
Any input or help with this would be greatly appreciated.

Need help in creating a macro for extracting data from list of web url

Need to write a macro for importing a table from all URLs present in column A of Symbols sheet, each URL table should be written to a new sheet with the sheet being named as per the names in column B of Symbols sheet.
Using the below formula to extract table information from URL, which is working.
=IMPORTHTML(symbols!A1, "table",1)
=IMPORTHTML(symbols!A1, "table",3)
A sample sheet URL is below.
https://docs.google.com/spreadsheets/d/1uJPjfAZLRCwafetbH4-nPJPSpTvvgixlFvGG6gYITBU/edit?usp=sharing
Need to customize a few rows and columns which are not required. I believe this can be done by recording a macro and copy-pasting those modification lines to macro.
Edit: I am able to achieve this in MS Excel, one click does the job of importing table, creating a new sheet, copying the table, little formatting. Want to achieve the same in googlesheets.
check the INDEX and ARRAY_CONSTRAIN functions (probably also QUERY and FILTER function too) which are able to trim off the input exactly as you need to.

Resources