Google Sheets API strips out links - node.js

I'm fetching some data from Google Sheets via Node, but the API only returns the text value when there's a hyperlink present. I've searched for solutions, and everyone seems to say to add valueRenderOption: 'FORMULA' to your API call, but that still doesn't do anything for me because it doesn't look like these links are applied via the HYPERLINK formula; the user is highlighting text, hitting CMD/CTRL + K, and creating a link that way because when I select the cell, the formula field is empty.

Figured it out. Looks like you can't use spreadsheets.values.get in this case. You have to use spreadsheets.get and pass includeGridData: true.

Related

Excel HYPERLINK with INDEX MATCH reference isn’t valid

I have set up a set of forms on excel that can append or update information to an access database.
Due to their being multiple forms, I want to create a spreadsheet, which acts as a hyperlink centre to the form the user needs.
Their are only to ‘branches’ of forms the users can use:
Add new data forms
And
Update Existing data forms
Each of these branches has say, 5 forms (so 10 in total)
The spreadsheet I’ve set up has two tabs
Tab 1 - user end sheet (‘user’)
Tab 2 - list and hyperlinks (‘info’)
On the user end sheet there is a list to select which branch of forms the user wants the link to (Cell D11)
Add
Or
Update
From there a secondary dependant drop down list shows the forms available from that branch (Cell D16)
Finally, there is a cell which I’d like to display the hyperlink to the form they have selected.
I’ve searched around a lot, however I can’t find the fix.
The formula in full is:
=IF(user!D16=“”,””,IF(user!D11=“Add”,HYPERLINK(“#”&INDEX(info!$D$9:$E$13,MATCH(user!D16,info!$D$9:$E$13,0)),(VLOOKUP(D16,info!$D$9:$E$13,2,0))),HYPERLINK(“#”&INDEX(info!$G$9:$H$13,MATCH(user!D16,info!$G$9:$H$13,0)),(VLOOKUP(user!D16,info!$G$9:$H$13,2,0)))))
The hyperlink formulas:
HYPERLINK(“#”&INDEX(info!$D$9:$E$13,MATCH(user!$D$16,info!$D$9:$E$13,0))
And
HYPERLINK(“#”&INDEX(info!$G$9:$H$13,MATCH(user!$D$16,info!$G$9:$H$13,0))
The result simply returns #N/A
I’ve tried:
INDEX
“#&INDEX(…)”
“#”&”INDEX(…)”
And knocking all of the if statements out, leaving only the hyperlink function there.
The hyperlinks work fine in the info tab.
Any help would be massively appreciated, thanks in advance.
Solved.
Issue was that the hyperlinks id set up already had a ‘friendly name’, changed to raw link and then was able to replace index match simply with Vlookups.

Excel solution for a hyperlink that returns something for a param given to the link

I have a web app here:
http://www.mihaigo.myfreewebsite.info/translator.php?param=OriginalInterbankSettlementAmount
This returns the abbreviation of a word like OriginalInterbankSettlementAmount. It returns OrglItbkSttlAm by some rules and a dictionary put in my web-app. I will give another example:
www.mihaigo.myfreewebsite.info/translator.php?param=CancellationReasonInformationOriginatorIdentificationOrganisationIdentificationAnyBIC
that returns CnclRsnInfOrgnIdOrgIdAnyBIC.
The ideea is that I have an column of ~300 terms like that and I would need to make a formula or something to obtain the abbreviation from my webapp and I would like to know if there is any solution for this.
Thanks!
I've changed the code in Javascript so that I can input the ~300 terms directly here and receive the abbreviations there. mihaigo.myfreewebsite.info/translator.php

Building a formula that builds a URL with variables from cells (which will be keywords)

Google Sheets... Basically... I want to build a URL (it'll be a boolean site: search) where one cell field will be the website that is searched and another cell will be the keywords to search for. If there are more than one keywords in the field it'll need to replace the spaces with + signs in the URL.
Example is I have 'opentoexport.com' in a cell for the website and 'this is a test' in the field for the search term/keywords. It needs to build a URL that replace the spaces in the search term with + signs like this - google.co.uk/?gws_rd=ssl#q=site:opentoexport.com+this+is+a+test.
To try to make it clearer what I mean, I want some kind of formula that would make a URL like google.co.uk/?gws_rd=ssl#q=site:(Cell C:4)+(Cell A:4) where C:4 was the website I wanted to do a site: search of and C:4 would be keywords. The keywords in C:4 have spaces between them and the URL needs those spaces to be a + sign instead.
The formula I've tried so far is =CONCAT("google.co.uk/?gws_rd=ssl#q=site:($C4)+($A4))") which doesn't work.
The info in C4 is 'opentoexport.com' which is the website I want to do the site search of on Google.
The info in A4 are the keywords which is the search term I want to use on Google for the site: search, which in this instance is 'articles export market'. I want it to create https://www.google.co.uk/?gws_rd=ssl#q=site:opentoexport.com+this+is+a+test.
Here is an example of the sheet I'm using... https://goo.gl/RHEXce
Could anyone help? It seems complicated but I'm hoping someone who knows what they're doing might be able to make it simple?
note i've had to mess with the URLs to allow myself to post because it warned I had too many links
Does this formula work as you want:
="https://www.google.co.uk/?gws_rd=ssl#q=site:"&C4&"+"&SUBSTITUTE(A4," ","+")

SharePoint Web Parts can not be connected via hyperlink fields

In short:
I'm trying to filter an XSLTListViewWebPart based on what is selected in another XSLTListViewWebPart. Using a String field as connection this is working fine. Using a hyperlink field no data is displayed.
In more detail:
I have two lists, say Accounts and Projects. Both have a hyperlink field accountURL.
All accounts have different accountURLs. Different projects can have the same value for accountURL. Both are displayed on a page using the XSLTListViewWebPart.
The simple goal is to filter the Projects list based on which item is selected in the Accounts list using the accountURL field. So I established a web part connection using the acountURL as a filter. Alas, when an item in the Accounts list is selected no items are showwn in the Projects list although I double checked that there are matching values.
When using a string field instead of a hyperlink field for accountURL everything works like a charm. Problem is, I need the hyperlink field.
Is this desired behaviour? Do you have any suggestions for a workaround?
(I already tried converting the hyperlink field to a string field via a calculated column which did not work out either.)
All was and is to be done in the web interface or SP-Designer. Coding a WSP is not an option for this problem. As I'm not quite familiar with the correct terminus technicus I use field and column interchangeably.
All help is greatly appreciated.
Ben
Someone on the Microsoft forum suggested the following workaround which does its job well:
Add a hidden text column to both lists.
Use a workflow which is triggered on item creation and update to copy the value of the hyperlink column to the hidden text column.
Connect both webparts using the hidden column as filter.
Nonetheless, I still wonder whether it is possible to use hyperlink columns or other special columns for filtering. I also had the problem that I cannot use a person column as lookup.
Does anyone know if whether there ist some kind of overview
which column types can be used for filtering/formulas/lookup/...?
Cheers,
Ben

How to add variables (coming from a cell) in web queries in MS Excel 2010?

So, I have the excel sheet pulling data from web API call, which responds in xml format. I can successfully pull it, populate it, and work with it. And since it's a get call with some parameters appended to the query, I want those parameters to come from a cell in a separate sheet (in the same workbook) so that the user can change the cell instead of the query itself.
Is it possible? How do I do it? Will it make a new API call to get the data when the content of that cell is modified or does the user have to click on Refresh?
Thanks in advance!
UPDATE: I have tried to use something like this: http://finance.yahoo.com/q?s=[“symbol”, “Enter ticker symbol”] like defined here, but when I click Import, it gives me 404 and I just can't figure out how to do it.
The API call I'm making is to our Redmine machine and I'm using this Redmine API call

Resources