I am trying to use importXML to get an automatic sector update and industry for my stocks in google sheets. In this case, in cell A5, is the name of the ticker. Normally, I would expect the following website:
https://eresearch.fidelity.com/eresearch/evaluate/snapshot.jhtml?symbols=AAPL
Where instead of AAPL, I wish to insert "A5"
Furthermore, I wish to receive the "Information Technology" in one formula and "Technology Hardware, Storage & Peripherals" in another subheading.
The formula I have created is the following:
=ALS(ISLEEG(A5);"";importxml("https://eresearch.fidelity.com/eresearch/goto/evaluate/snapshot.jhtml?symbols="&A5;"/html/body/table/tbody/tr/td[4]/table[2]/tbody/tr/td[1]/div[3]/div[8]"))
It is however, not working, can someone please help me?
Thanks much in advance.
