How to Pull a Stock's Industry Into Google Sheets

Поделиться
HTML-код
  • Опубликовано: 3 янв 2025

Комментарии •

  • @jessehoffman1044
    @jessehoffman1044 4 года назад +2

    Good stuff man! been working on my own spreadsheet to track my stocks and came across one of your videos the other night, helped me a lot. This video just solved one of my problems I've been trying to fix for a few days. (industry) Keep it up! Subbed & Liked!

    • @ThinkStocks
      @ThinkStocks  4 года назад +1

      Thanks bro, and glad my videos helped you out! Thanks for the like and sub!

  • @lovehk
    @lovehk 10 месяцев назад

    Your explaination was very clear. Thank you so much.

  • @murators4732
    @murators4732 Год назад

    Your Sheets are amazing. Helped me a lot mate. Appreciate your work and effort very much! Keep on doin!

  • @SharkShank
    @SharkShank 7 месяцев назад +1

    Thank you so much for making such a useful and knowledgeable video bro. God bless you 🙏❤😊

  • @TradingWithCJ
    @TradingWithCJ 4 года назад +3

    Ahh this was pretty cool to know! Excel / spreadsheet king! 🔥haha

  • @richardluna1996
    @richardluna1996 4 года назад

    Thanks, I have been looking for a way to add this information to my spreadsheet. You da man.

  • @nikunjpatel-eb8cn
    @nikunjpatel-eb8cn 3 года назад

    Thank you for this trick. I was looking for something industry of a stock since quite long

  • @janearteaga9700
    @janearteaga9700 3 года назад

    Thank you, you are awesome! I have been struggling with this for weeks.

    • @ThinkStocks
      @ThinkStocks  3 года назад

      You're welcome!

    • @Edward_ZS
      @Edward_ZS 3 года назад

      @@ThinkStocks Can we do this just with pulling info from yahoo finance or seeking alpha?

  • @ronakpatel123
    @ronakpatel123 3 года назад

    Thank you for teaching me new formulas. You are awesome. Subscribed and liked.

  • @VinnyJoeShow
    @VinnyJoeShow 3 года назад +4

    This was very helpful thank you and you just got a new subscriber. I am having trouble with part 2 however, I'm not sure if fidelity changed the layout but I cannot locate that exact phrase. I also tried just copying yours but I'm getting an error message.

  • @MohammedJalalUddin
    @MohammedJalalUddin 3 года назад +2

    Great video! Any ideas of how to get the industry sector for UK companies? I am trying to figure out how to use yahoo finance but I can't seem to get it to work...

  • @j.redulfin3905
    @j.redulfin3905 3 года назад +1

    Thanks, this is an excellent tutorial. would really like to pull the industry instead of the sector. this is pulling the sectors not the industry.

  • @JBS7551
    @JBS7551 2 года назад +2

    This isnt working any longer, I think fidelity updated the site. Any idea how to fix it?? @thinkstocks

  • @fvgoya
    @fvgoya 3 года назад

    THAT's what I was looking for!!!!!! Thank you very much!!!

    • @jakeeaglen5754
      @jakeeaglen5754 3 года назад

      Did it work ok for you? i have tried to copy the link in description and entering it automatic?

  • @cliffhernan6433
    @cliffhernan6433 3 года назад +2

    the code doesn't work for ETFs. I have tried on different way but it doesn't work for ETFs

  • @mgersoukiasyan3626
    @mgersoukiasyan3626 3 года назад

    Amigo - y`re the best, thank you

  • @PassiveIncomeGeneratorPIG
    @PassiveIncomeGeneratorPIG 4 года назад

    This is a big help. Thank you!

  • @patrickbradsher9559
    @patrickbradsher9559 Год назад

    Thank you so much for doing this, but I can not get the industry script to work. Is there an update? Thank you

  •  2 года назад +2

    YES! Thanks so much man! I keep googling things like that and keep being suggested your videos. You've already helped me so much with several of your videos, you have no idea! Might as well subscribe! ✅
    BTW, if you then want to pull the Industry, rather than the Sector, just change the "1" to a "2" at the end of that function. I did it and it works.

  • @sberry00
    @sberry00 3 года назад +3

    is your Industry code still working? Mine comes up with Imported Content is Empty

    • @matthewsodetola9359
      @matthewsodetola9359 3 года назад +1

      After you get the Inspect Link, on the right side of your screen, right click on the link then click on "Copy Full Xpath", you will then paste that in the place of "//div......"
      =if(isblank(A2),"",importxml("eresearch.fidelity.com/eresearch/goto/evaluate/snapshot.jhtml?symbols=​"&A2,"/html/body/table/tbody/tr/td[4]/table[2]/tbody/tr/td[1]/div[3]/div[8]/span/a")

  • @TheroSetlhare-wo9nv
    @TheroSetlhare-wo9nv 7 месяцев назад

    How to use Google finance function of Asian stocks in google sheets?

  • @titarenkogm
    @titarenkogm 3 года назад

    Thanks bro!

  • @hongtaozhu7207
    @hongtaozhu7207 3 года назад

    An awesome approach! Like to pick your brain a little more...any ways to get the stock option data? Thanks.

  • @kenjigarcia1753
    @kenjigarcia1753 3 года назад +1

    Does anyone have any code for Canadian stocks? TIA

  • @pasoonhellamand5364
    @pasoonhellamand5364 3 года назад +3

    Unfortunatly the code is giving me an 'empty' result. Even if I try the solution of Mathew, I get no result. Any advice?

    • @pasoonhellamand5364
      @pasoonhellamand5364 3 года назад +5

      So for those of you who are still searching for the answer, I managed to find a formula which works for me (EU).
      For industry:
      =IMPORTXML("eresearch.fidelity.com/eresearch/evaluate/snapshot.jhtml?symbols="&A2;"/html/body/table/tbody/tr/td[4]/table[2]/tbody/tr/td[1]/div[3]/div[13]/span")
      For sector:
      =IMPORTXML("eresearch.fidelity.com/eresearch/evaluate/snapshot.jhtml?symbols="&A2;"/html/body/table/tbody/tr/td[4]/table[2]/tbody/tr/td[1]/div[3]/div[8]/span")
      Change semi-column (;) to comma (,) for US.

    • @davider52
      @davider52 3 года назад

      I had the same thing happen to me - apparently its a "bug" in google sheets - just have to refresh the page and it should work - Worked for me!

    • @gdekatya285
      @gdekatya285 3 года назад

      Hi, thank you! Could you please help? In the video you took Sector info, how to get Industry info, it is in row below on Fidelity web. I believe I have to change second part of formula, but can't figure out what exactly.

    • @pasoonhellamand5364
      @pasoonhellamand5364 3 года назад +1

      @@gdekatya285 I did not make this video, but I did write the formula for industry in the comment above

    • @gdekatya285
      @gdekatya285 3 года назад

      @@pasoonhellamand5364 oh thank you so much! Unfortunately it didn't work. I don't now why.

  • @IzyaschnyPopakrut
    @IzyaschnyPopakrut 3 года назад

    You're GOD! Thanks! Very needed that function, but couldn't find the solution. Until saw your video 👍

  • @rbcbcl3929
    @rbcbcl3929 2 года назад +1

    Seems Fidelity changed their website structure so this won't work no more. Can't even retrieve data from it using that technique. Maybe an Update on this feature?
    Ps: I'm using same technique using Benzinga but won't retrieve no more than 3-4 data points on the spreadsheet.
    Cheers

  • @heron4474
    @heron4474 6 месяцев назад

    Great video, although i can't create my sector spreadsheet by simply copying the link, not sure why

  • @bosunbob123
    @bosunbob123 3 года назад +1

    This doesn’t 100% work for me. For a start, most of my stocks say N/A and a lot of the others take so long to load it’s ridiculous. Is there any fix for this? Mainly the fact that they show up as N/A

  • @patriciofazm.6153
    @patriciofazm.6153 3 года назад

    Thank you sir!

  • @jackthebeanstalkdelohio5146
    @jackthebeanstalkdelohio5146 3 года назад

    Is the historical price data accurate? Other than the weekends and holidays, it seems as if some of the data is omitted. Have u noticed? Thx. Please feel free to reply.

  • @eduardty
    @eduardty 2 года назад

    Feature not longer available in Fidelity site... any other idea? thank you very much for your vids! really helpful!

  • @DrMichaelCote
    @DrMichaelCote 3 года назад

    Thank you for this!
    Do you know if there's something like fidelity to pull data for the Toronto stock exchange by any chance?
    I'm inputting everything manually, but if I could automate it like this it would save so much time!

  • @williamwbauer9340
    @williamwbauer9340 3 года назад

    It worked for me, just need to correct the formula he entered for us to copy.... he is missing some entries after eresea...

  • @ivanl8408
    @ivanl8408 4 года назад

    just found this channel i subed and like thank bro

  • @issalem
    @issalem 2 года назад

    is it possible to sort the sectors by their market value so you have them in order

  • @friscosaratoga4441
    @friscosaratoga4441 3 года назад +9

    Looks like this method is already broken by Fidelity changing it's code.

    • @matthewsodetola9359
      @matthewsodetola9359 3 года назад

      On the Inspect Link, right click on the link then click on "Copy Full Xpath", you will then paste that in the place of "//div......"
      =if(isblank(A2),"",importxml("eresearch.fidelity.com/eresearch/goto/evaluate/snapshot.jhtml?symbols=​"&A2,"/html/body/table/tbody/tr/td[4]/table[2]/tbody/tr/td[1]/div[3]/div[8]/span/a")

    • @derrickschroepfer9173
      @derrickschroepfer9173 3 года назад

      @@matthewsodetola9359 thank you so much! It helps to know the proper steps to do it.

    • @StevenYeh
      @StevenYeh 3 года назад

      @@matthewsodetola9359 Do you have an updated version of this? Currently not working. Much appreiated.

  • @amitabh4u
    @amitabh4u 3 года назад

    Hello, Thanks for the video. I followed but get error "Imported Content is Empty" Do you why I am getting the error. I entered the code 100% the same.

  • @gsghotra46
    @gsghotra46 2 года назад +3

    is anyones industry column not working now?

    • @JBS7551
      @JBS7551 2 года назад

      Yeah wont work now, any workaround?

  • @gdekatya285
    @gdekatya285 3 года назад

    Thank you for the video! Could you please help? In the video you took sector info. How to get industry info? It's row below on Fidelity web. I believe, I have to change second part of formula, but can't figure out how.

  • @christopherchatman2551
    @christopherchatman2551 4 года назад

    Hello, is there any possible way to pull a stocks options chain?

  • @mfatihd88
    @mfatihd88 10 месяцев назад

    thank you

  • @nakedtraitor1802
    @nakedtraitor1802 2 года назад

    That's really interesting. Might you know how to pull this info for UK stocks, please?

  • @anddocster
    @anddocster 3 года назад

    Very helpful tutorial By the way, what number Yahoo table is used for ETFs It is not 7 Thank you for all

  • @Edward_ZS
    @Edward_ZS 3 года назад

    Can we do this just with pulling info from yahoo finance or seeking alpha?

  • @umangmodi9451
    @umangmodi9451 Год назад

    hi, how can I calculate sma using Google finance

  • @jmpdo5957
    @jmpdo5957 3 года назад

    how did you generate part 2 of de equation?

  • @C_m0nkey
    @C_m0nkey 4 года назад +1

    Does this work for ETF's too?

    • @SimplyJack3
      @SimplyJack3 3 года назад

      only comes up as N/A you can adjust the formula to replace with ETF
      =ifna(if(isblank(A3),"",index(importxml("eresearch.fidelity.com/eresearch/goto/evaluate/snapshot.jhtml?symbols="&A3&"","//div[@class='sub-heading']//span[@class='right']"),2)),"ETF")

  • @ashishkakkar7137
    @ashishkakkar7137 6 месяцев назад

    How much will u charge fees... for customise things for india stocks ??? Plz reply BIG BROTHER

  • @rafaelvelez8197
    @rafaelvelez8197 3 года назад

    Hello!! nice video.. now, i am opcions seller, how can i import to a google sheet the ASK price, current price, in real time always of any stock??

  • @kevincarney9328
    @kevincarney9328 3 года назад

    Thank you for the very informative video. I have subscribed to your channel and look forward to more great videos. I hadn't heard of scraping with Google sheets but this was a good introducing to that. I wanted to know what part of the industry the stock was in such as Bank, Airline, Pharmaceuticals, Automobiles, etc. I found that if I changed the 1 at the end of the formula to a 2 it gave me that information. Again, thank you and I look forward to more videos.

  • @melina3257
    @melina3257 3 года назад

    Thank you so much for these videos! I'm new at this so bare with me... I have copied everything, but I am getting an error saying "resource at URL not found" Can you give some guidance and help me figure out what I am doing wrong?? Thank you so much!

  • @ciprianrotaru8684
    @ciprianrotaru8684 3 года назад

    Nice video and Info. There is a way to import the Market name also?

    • @ThinkStocks
      @ThinkStocks  3 года назад

      Thanks, and try =googlefinance(A2,"Name")

    • @ciprianrotaru8684
      @ciprianrotaru8684 3 года назад

      @@ThinkStocks thank you for your answer, but I mean Market name like NYSE or NASDAQ, or DAX, London Exchange....etc
      You know what I mean? If we have more stocks from more markets?

    • @ThinkStocks
      @ThinkStocks  3 года назад +1

      Ohh okay. So to automatically pull that information ill have to look into that for you and see if I can come up with something

  • @sangamkhandelwal2199
    @sangamkhandelwal2199 3 года назад

    Please tell how I can add sector of the company of NSE india index, the provided link is not working for NSE india index. Please help 🙏🏼

  • @mrawesome9501
    @mrawesome9501 3 года назад

    How would I pull Industry for mutual funds?

  • @nytmare124
    @nytmare124 2 года назад

    Hey its not working now, does the syntax need updating?

  • @bocarider123
    @bocarider123 4 года назад

    Hi - I am getting the "Resource at url not found" error message. When I do the "inspect" of the Fidelity page, it definitely shows the "
    " as you show it, so I know I am telling google to go to the right place. Any thoughts? Your other videos on webscraping have been invaluable to me - thanks for the great info. Please comment on this issue if you can. Thanks.

    • @ThinkStocks
      @ThinkStocks  4 года назад +1

      Hmm that is interesting, I just tested the function to make sure it is still good and it's still working on my end. It could be one of three things. Google sheets is acting up on your end, there is something missing in the function or the stock you are trying to pull data from might not have the sufficient data. Which stock are you trying to pull and did you copy and paste the function in the description or write it out yourself?

    • @bocarider123
      @bocarider123 4 года назад +1

      @@ThinkStocks So I followed your suggestion and laboriously typed out the whole string and it worked!! Thanks very much for the quick reply. Your content is excellent.

    • @ThinkStocks
      @ThinkStocks  4 года назад +2

      Glad it worked and thanks! I have some more awesome sheets coming out over the next few weeks!

  • @123cana456
    @123cana456 4 года назад +1

    Extremely helpful! Thanks for the tutorial.
    For some reason whenever I close, and re-open the sheet, some of the cells say "Loading..." while others do show the industry. Anyone having the same problem?

    • @ThinkStocks
      @ThinkStocks  4 года назад +2

      Glad you enjoyed it! And Its just google sheets pulling all the data from the sight (which might take a few second upon start up). Its not a perfect system but its the best we got for now

    • @123cana456
      @123cana456 4 года назад +1

      @@ThinkStocks You the man

  • @JamesSmith-xm2hg
    @JamesSmith-xm2hg 3 года назад

    Hi I tried your for google function for pulling stock industry and it won't work?

  • @AlokKumarSingh
    @AlokKumarSingh 3 года назад +1

    It doesn't work for Indian stock exchange NSE

  • @GregandScarlet
    @GregandScarlet 3 года назад

    Is there an updated code for pulling sector into Sheets? I'm not having any luck

    • @andresnunez2740
      @andresnunez2740 3 года назад

      Angela Wymer
      code works fine as of 1-2-2022 - See in comments

  • @JohnnyWalkerYT
    @JohnnyWalkerYT 3 года назад

    I have etf's in my portfolio and when i import industry it doesn't give me anything because there isn't an industry. My question is how do i substitute the #N/A to lets say the word "other"?

  • @DavidCastro-pg3hz
    @DavidCastro-pg3hz 2 года назад

    Hey Bro, Great video, can you make an update code to pull the stock's Industry name? PLS

    • @JBS7551
      @JBS7551 2 года назад

      Follow this video and you can figure it out! I use Finviz as the url now ruclips.net/video/BLa9HKGos8U/видео.html

  • @nikswell8834
    @nikswell8834 3 года назад +1

    doesn't work for me anymore :(

  • @jhadinger
    @jhadinger Год назад

    "A nice graph"
    *shows a 3d chart*
    All joking aside, great video and very helpful! :) I'm sure you could scrape the code from your personal accounts (i.e. Fidelity, Robinhood, etc) to update how many shares you own of each stock as well couldn't you?

  • @Hey-Fortune
    @Hey-Fortune Год назад

    it doesnt work for me , the code is different

  • @challso4147
    @challso4147 3 года назад

    Thanks :)

  • @cbg1992
    @cbg1992 3 года назад

    You should tell us how to import //div[@class='sub-heading']//span[@class='right']"),1))
    from inspect session not just leave code like this ... so.. how to get that code from inspector? I want to do like this on my other sheets. thanks

    • @cbg1992
      @cbg1992 3 года назад

      please reply.........

    • @andresnunez2740
      @andresnunez2740 3 года назад

      Angela Wymer
      code works fine as of 1-2-2022

  • @tommyrana382
    @tommyrana382 3 года назад

    Tried this now, gives me a resourse at url not found. :( To bad, i really love this videos's

  • @numisipe
    @numisipe 4 года назад

    How you solve this error "could not fetch url"?

    • @numisipe
      @numisipe 4 года назад

      I use importxml and importhtml from diferent websites. And sometimes i get this error

    • @ThinkStocks
      @ThinkStocks  4 года назад +1

      It depends the website you are pulling from. Some are easier than others. Yahoo Finance and finviz are very simple. Websites like seeking alpha on the other hand are not. Which websites are you having trouble with?

    • @numisipe
      @numisipe 4 года назад

      @@ThinkStocks dividendinvestor

    • @ThinkStocks
      @ThinkStocks  4 года назад

      Yeah the source code might be a bit tricky on that one. Not saying it's impossible. I'll look into it and see if I can figure it out!

    • @numisipe
      @numisipe 4 года назад

      @@ThinkStocks sometimes works but other times no. i think the problem is i have a lot of request and the websites block my requests

  • @srortega
    @srortega 2 года назад +3

    This no longer works, Fidelity changed something.

  • @giandigiandomenico9179
    @giandigiandomenico9179 3 года назад +1

    Doesn't work.

  • @Anoyzify
    @Anoyzify 2 года назад

    doesn't work anymore. N/A for all stocks

  • @trade5149
    @trade5149 Год назад +2

    November 2023 and this no longer works.

  • @GiZeeGis
    @GiZeeGis 9 месяцев назад

    Unfortunately this didn't work

  • @RamRam-cg3rq
    @RamRam-cg3rq Год назад

    It stopped working for me guys!!! is it still working with you or there is something changed??

    • @juniorcorrea8511
      @juniorcorrea8511 Год назад +1

      Fidelity uses Java to prevent web scrapping, meaning that =importxml cannot pull information from Fidelity. You will have to find an alternative webpage.

  • @BigBossvai
    @BigBossvai 10 месяцев назад

  • @ashishkakkar7137
    @ashishkakkar7137 6 месяцев назад

    Plz reply brother

  • @mrm8818
    @mrm8818 Год назад

    02:30 come to see how to pull stocks into google sheets and get told that "these are functions i should aleady know" and doesn't explain, like wtf is this lmao

  • @Vibes2me
    @Vibes2me 11 месяцев назад

    Doesn’t work