excel - INDEX MATCH with different sizes of arrays -
i trying link dividends of several stocks range of dates. dividends several months apart, column date , column b amount of dividend. each stock has 10-20 dividend payments in last 5 years. trying distribute these dividend payouts across daily timeline, column shows daily dates today until 2005 (3818 rows).
i tried index/match following formula:
=index([a68u.si.csv]a68u.si!$b$2:$b$13,match([a68u.si.csv]a68u.si!$a2,$a2:$a3818))
however, #ref error. seems wrong approach. have idea? many thanks!
use vlookup:
=vlookup(a2,[a68u.si.csv]a68u.si!$a$2:$b$13,2,false)
to remove errors dates when there no paid dividends:
=iferror(vlookup(a2,[a68u.si.csv]a68u.si!$a$2:$b$13,2,false),"")
if have more 1 paid dividend on same date, have use different.
Comments
Post a Comment