Skip to content

Instantly share code, notes, and snippets.

@mareku
Created January 3, 2016 11:34
Show Gist options
  • Save mareku/10307195a941137ed3d3 to your computer and use it in GitHub Desktop.
Save mareku/10307195a941137ed3d3 to your computer and use it in GitHub Desktop.
スプレッドシート関数使用例
■年間配当利回り %
=iferror(REGEXextract(REGEXreplace(index (importhtml(concatenate("https://www.google.com/finance?q=",$A3), "table", 2), 1, 2); "[()]"; "") ; "/([^/]*)"),"-")
■直近配当金額、配当利回り% を、2セルに分割して表示
=split(ImportXML(concatenate("http://finance.google.com/finance?q=",A3), "//td[@data-snapfield='latest_dividend-dividend_yield']/following-sibling::*"),"/")
■過去5年の増配平均/年  (5-yr Dividend CAGR)
=index ( importhtml("http://www.gurufocus.com/dividend/"&A3&"", "table", 4), 2, 3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment