Creating new link in excel - hyperlink

In Excel I am trying to have it automatically generate a new URL link (column D, row 3). Using a base URL link (listed for example purposes below as http://vxyz/ in column A, row 3) and then adding two additional non-numerical pieces of information (client name & campaign=columns B and C, row 3). What formula would I use to generate this type of information? Any help would be greatly appreciated!
A B C D
Base URL client name Campaign New URL
http://vxyz/ jsmith e1v1 ?

the formula is:
=HYPERLINK(CONCATENATE(A3, B3, C3))

Excel 2013
ENCODEURL is needed to encode special charactes, but it's only available in Excel 2013.
=CONCATENATE(A2,"/",ENCODEURL(B2),"/",ENCODEURL(C2))

Related

How to return nth value from one Column based on another Column using ArrayFormula or QUERY?

I'm working with a long, growing list of ratings data, and I'm trying to find a way to reference the 2nd (3rd, 4th, etc.) rating.
Here's a link to the sheet I'm working on.
The data I want to reference is in F5:H. I'm using QUERY to show most of the info I want (see A5 in my sheet for this formula), but where I'm running into trouble is when I try to retrieve only the Nth rating from Column H for a particular client based on the Client in Column A.
I'm sure I'm missing something obvious... the biggest (potential) limitation is that I need a formula that I can put in D5 that auto-fills this info for the entire column.
Thanks in advance!
try:
=ARRAYFORMULA(IF(A5:A="",, IFNA(VLOOKUP(A5:A,
FILTER(G5:H, COUNTIFS(G5:G, G5:G, ROW(G5:G), "<="&ROW(G5:G))=2), 2, ),
VLOOKUP(A5:A, G5:H, 2, ))))

Extract URL from Two Different SiteMaps and Match URLs Without Root Domain In Another Sheet

I have a google spreadsheet with two sheets
Sitemaps - pull the URLs from two sites
Second sheet I need help to extract and URLs from Sitemap1 without root domain in URLMatch Sheet (C Column) and Add URLs in D column from Site2 without root domain but add only exactly matching URLs
Here is the sheet link, and I have no idea how to achieve or do this, kindly help and guide.
Sheet URL: https://docs.google.com/spreadsheets/d/1ii9gzC1p8e_7WFSFtUSftM1iJ11Ep3Ucqvy9KA2E3ws/edit#gid=1115391463
Many Thanks,
You can easily use regexextract to get the urls without root domain.
Typically, this in cell C3 of your URLMatch sheet:
=arrayformula(if(Sitemaps!B4:B<>"",sort(regexextract(Sitemaps!B4:B,"\.\w+(\/.*)"),1,1),))
Not sure about what sort of match you want between col C and Col D?
If you want Col D to be the same regex, use this in cell D3:
=arrayformula(if(Sitemaps!D4:D<>"",sort(regexextract(Sitemaps!D4:D,"\.\w+(\/.*)"),1,1),))
If you want to match values from Col C where they exist in Col D, then delete contents of B3:B936 and put this in cell B3:
=arrayformula(if(C3:C<>"",if(countif(D:D,C3:C)>=1,true,false),))

Return only the values of a Concatenate Formula

I looking to have the concatenate function to return only the values, so that the return may be used for an ImportXML.
I have column A displaying URLs: (https://example.com/admin/v3/suggestions/19658686/)
Column B pulls data from the URL in Column A: (/19658686/)
Column C displays a concatenated version of text + Column B to create a new URL (via formula): (https://example.com/forums/suggestions/19658686/)
Column B: =RIGHT(A1,LEN(A1)-SEARCH("s/",A1))
Column C: =CONCATENATE("https://example.com/forums/suggestions",B1)
I want to use ImportXML to do a lookup using the URL in Column C, but since it is technically a formula it won't work.
I am certainly interested to see if there is a workaround, or even a more efficient method to do this via script. Appreciate the help in advance.
let be B1:
=ARRAYFORMULA(IFERROR(RIGHT(A1:A, LEN(A1:A)-SEARCH("s/", A1:A))))
and C1:
=ARRAYFORMULA(IF(LEN(A1:A), "https://example.com/forums/suggestions"&B1:B, ))
where D1:
=IFERROR(IMPORTXML(C1, "//*"))
and drag down...

Fetch Row of Value From Other Spreadsheet Google Sheets

I would like to access data from one Google Spreadsheet on another using strictly formulas.
Currently, I am able to import data using the =IMPORTRANGE(), but need to take this a couple steps further.
The data that I have looks like this:
Spreadsheet 1: Each sheet is for a different day, and has people and the number of fruits they pick from a farm (this is example data). However, the people are not necessarily organized exactly the same way on each day.
Spreadsheet 2: Each sheet is organized by person. Row A has the day (which will be used to lookup from the other spreadsheet), and a function exists in the second spreadsheet to find the persons name (=sheetName()).
What I have so far is [for Spreadsheet 2]:
=IMPORTRANGE(Master!A1, A2 & "!B2")
Where Master!A1 refers to the link of the other spreadsheet, A2 refers to the Day1. However, the part I am looking to replace is the 2 in the B2 to find the row of the person's name in the sheet Day1 from the first spreadsheet.
I feel like I have to do something like this:
=IMPORTRANGE(Master!A1, A2 & "!B" & MATCH(IMPORTRANGE(Master!A1,A2 & "!B1:B100"),sheetName(),0))
, but this gives me the error that it "Did not find value 'Apples' in match evaluation"
Here is the example folder with the two spreadsheets.
https://drive.google.com/drive/folders/0B8lJN2vmKeTBV1JYR2ZoZlVfQUU
All help is appreciated!
I can't find the sample data that you attached but here's what you need to do.
1. Link of the other spreadsheet
2. Name of the sheet to import from
3. =importrange(link,sheet!A:D) [for the sake of an example]
4. =query(importrange(link, sheet!A:D),"select * where Col1 = 'Person's_Name' ",1)
Share a sheet if you are not able to put it together on your data. Cheers!!

how can I format a cell in google spreadsheets

I have a spreadsheet that have a column containing github issue numbers, how can I make all the fields in that column a url to the issue on github.
lets say https://github.com/myaccount/myrepo/issues/ is where the issues exist, I want to make all those fields link to "https://github.com/myaccount/myrepo/issues/{existing-issue-nb-here}"
e.g: in line 54, column B(github issue #) should be a hyperlink to https://github.com/myaccount/myrepo/issues/652
If you never overwrite the first row of the column with the links you can use the HYPERLINK formula inside of an array formula
={"github issue #";
ARRAYFORMULA(IF(LEN(B2:B),
HYPERLINK("https://github.com/myacco‌​unt/myrepo/i‌​ssues/" & B2:B,
B2:B), ""))}
If you are importing / copy pasting Column B and want to replace it with a link you need to do that with a script that, for every cell does
setFormula("=HYPERLINK(CONCATENATE(https://github.com/myacco‌​unt/myrepo/i‌​ssues/ ,bugId), bugId)")
Where bug ID is either read from the row in column B or in the data you retrieved via script.

Resources