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 sedol
  • an6 check data
  • a2 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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -