I am working on extracting a part of the URL to another column. Here are 2 URLs -
http://learn.reg.edu/degree-programs/religion-theology/?bm_source=facebook&bm_medium=ppc&bm_campaign_id=6086055048219&bm_adset_id=6086055734819&bm_ad_id=6094109509819&bm_placement=Facebook_Mobile_Feed
http://learn.regent.edu/home-2/?persist=1&bm_placement=an&bm_ad_id=%7B%7Bad.id%7D%7D&bm_adset_id=%7B%7Badset.id%7D%7D&bm_campaign_id=%7B%7Bcampaign.id%7D%7D&bm_campaign=rm&bm_medium=ppc&bm_source=facebook
So I wish to pull out text after "bm_placement=" and whatever it says (like in the above two urls, url 1 has "Facebook_Mobile_Feed" and url 2 has "an")
I am using this formula -
=RIGHT(ES16760,LEN(ES16760)-(FIND("bm_placement=",ES16760,1) +12))
It works fine for the first URL but for the second one, it pulls out everything after "an" which I do not want. Any suggestions on how to solve this?
Thanks!
Use MID with a lot of FINDs:
=MID(A1,FIND("bm_placement=",A1)+ LEN("bm_placement="),FIND("&",A1&"&",FIND("bm_placement=",A1))-(FIND("bm_placement=",A1)+ LEN("bm_placement=")))
Related
In the last week I couldn’t’ fix a problem with my app. The problem is I can’t figure out how to use pageview pages separately. Basically i want to add/subtract numbers in one page but don't want to change the numbers on the other ones.
This is my code:
https://gist.github.com/Matelevi12/1d847efe5ace8a25d4676a32332ebd85
Please help me it’s really annoying. I read every article online, but nothing.
You will need an array of numbers then for each page.
if you have 3 pages then store the numbers in an array like this
var arrayOfNumbers = [5,5,5];
Then access them using the page index. Use the PageController to access the currently selected page and call that index from the array to retrieve the value saved in the array for that page. If current page is 1 then use arrayOfNumbers[1] to get the specific value for that page.
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
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," ","+")
I have a document in Google Docs which has a lot of images numbered sequentially. Every time I add a new image in the middle of the document I have to renumber all the image numbers along the document along with its references. How could I renumber the following images automatically, like we can do in LibreOffice using variables?
so far it is not possible. You could take a look at Google Apps Scripts to create a macro that does that: https://developers.google.com/apps-script/
I've just finished creating a Google Docs Add-on (https://support.google.com/docs/answer/3641454?hl=en) that can number images and tables. It is going through the process of certification by Google and I hope to publish it soon :)
Regards
You can use Crossref. The way it works is that you higlight the text referring to a figure, which can be anything e.g. "Figure n" as the add on will replace it.
You then use Ctrl + K to make this into a link to a non existent bookmark such as "#figur_heights" where you can put any text you like after the "#figur_..." Do that for all the figures in the document and when you refer to a figure use an identical non existent bookmark, except it starts as "#fig_..." e.g. "#fig_heights". In this way it can number the figures consecutively and use matching numbers for the in text references.
Finally you then need to go to Add ons > Crossref > Update and it will go through and update all the text for those bookmarks to the sequentially numbered Figure 1, Figure 2 etc. You need to do that whenever you change the order of the figures in your document, add a new reference etc, anything that will change the way the figures are numbered.
I've been trying to figure this out for 5 days, searched this site, watched youtube tutorials, and it's just not coming together for me. I know very little excel and no visual basic.
I need to be able to pull specific info from a website and populate an excel sheet with that info.
User-entered data (the variable?) is an email address. I have a long list of email addresses. From this list I want to generate the web data pull.
My excel is currently set up as a form, Column 1=email, that is the info I have. What I want to pull is in columns 2-8: 2=id number, 3=first name, 4=last name, etc.
The site I am pulling from is an internal API, looks like: http://blah.web.blah.com/blah/blah/blah/emailAddress. This site displays each value that I seek as:
<id>12345</id>, <firstName>Joe</firstName>
The site has over 25 lines of info tagged like this, I am only interested in pulling 7 specific lines into the appropriate column and row, based on the email value in Column 1.
I can easily capture all 25+ lines of info, one at a time.
=HYPERLINK("blah.web.blah.com/blah/blah/blah/"&A3
I would prefer to do this as a batch where I paste the email addresses into Column 1 and walk away while the magic computer executes the batch.
...this seems like it should be easy, but I don't know how to do it and haven't found a solution that starts to function. And like a seasoned Russian once said, "What is hard? Everything you do not know."
If you have excel 2013 , you can use FilterXML function