Data scraping using data from excel to retrieve more specific data on website

choc415

New Member
Joined
Oct 19, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hello all,

I am unfamiliar with coding and am looking for an automated method to save time. I am trying to work with gene data and switch the general gene id (ENSDARG00000036482) to the gene description (HEXIM P-TEFb complex subunit 1) that is actually useful to me. I am currently opening excel, copying the data (it is all in column L), and pasting into Ensembl genome browser 110 in the search bar at the top right. I am then clicking the first link to the data. I copy the gene description (HEXIM P-TEFb complex subunit 1) and paste it back into excel. Is this something that can be automated with VBA or a macro? Sorry if this is not the most descriptive, I could maybe upload a video if that would help.

Thanks for any and all help!
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
The text parsing formula bit is a bit grotty, but you can do this with a formula. Assuming gene id in L1:
Excel Formula:
=LET(json,WEBSERVICE("https://www.ensembl.org/Multi/Ajax/search?q="&L1),start,FIND("description"":""",json)+14,MID(json,start,FIND("""",MID(json,start,1000))-1))
 
Upvote 0

Forum statistics

Threads
1,215,089
Messages
6,123,058
Members
449,091
Latest member
ikke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top