I am trying to get "Ex-Dividend Date" in GoogleSheets, by using the following formula.
But it is giving me #NA error.
=if(isblank(A2),"",index(IMPORTHTML(CONCATENATE("https://finance.yahoo.com/quote/",A2),"table",2),7,2))
Is there a way to resolve this?
I tried changing table numbers and colums etc.