excel - Handing N/A in Array Formulas -
i want figure out how handle n/a
in formulas use arrays. i'm using bloomberg data history add-in bdh
latest ex-div
date. in cases there n/a
in array, output n/a
instead of latest ex-div
date.
this formula using:
=if(an6="","",index(bds(am6,"dvd_hist_all","startcol=2","endcol=2","array=true"),match(min(abs(bds(am6,"dvd_hist_all","startcol=2","endcol=2","array=true")-$a$2)),abs(bds(am6,"dvd_hist_all","startcol=2","endcol=2","array=true")-$a$2),0)))
am6
sedolan6
check dataa2
today's date
have tried encapsulating entire thing iferror()
? become like
=iferror(if(an6="","",index(bds(am6,"dvd_hist_all","startcol=2","endcol=2","array=true"),match(min(abs(bds(am6,"dvd_hist_all","startcol=2","endcol=2","array=true")-$a$2)),abs(bds(am6,"dvd_hist_all","startcol=2","endcol=2","array=true")-$a$2),0))),$a$2)
Comments
Post a Comment