Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Trying to reference a cell in importxml

My B3 is CULP. It’s a stock ticker symbol. This import XML is supposed to get the annual dividend yield number which is 5.76%, but I’m getting an error instead which states "imported content is empty" Getting the annual dividend yield works when I don’t try to reference the B3 cell so scraping is compatible with this webpage. There’s something wrong with how its trying to get a value from B3.

=IMPORTXML("https://finviz.com/quote.ashx?t="&B3, "/html/body/div[4]/div/table[2]/tbody/tr[8]/td[2]/b/span")

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

try:

=SUBSTITUTE(INDEX(IMPORTHTML(
 "https://finviz.com/quote.ashx?t="&B3, "table", 7), 8, 2), "*", )

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading