Hi,
I'm using the Bloomberg Excel Addon and trying to figure out on how to remove the #N/A N/A values from a BDH (Bloomberg Data History) function, which is a function that refers to a single cell but will give me the price history from a specified range i.e 4/12/2012 to 18/12/2013. Due to the fact that some of the securities have data history starting later than the specified start date, I'm getting #N/A N/A values when the data is not available and this messes up with my calculations. I would need to change the #N/A N/A values to a blank values instead.
As I'm downloading the price history of several hundreds of components, and the excel spreadsheets are getting really large, I would want to avoid creating unnecessary check cells.
I could get around my problem by creating an extra vector for each component where I have the original column, and on the right side I have a cell that checks whether the cell is #N/A N/A. i.e in B4 I have:
=BDH("security name";"PX_LAST";"12.4.2012";"18.12.2013";"Days=A";"Dts=H";"Fill=P";"FX=EUR";"UseDPDF=N";"CshAdjNormal=n";"CshAdjAbnormal=n";"CapChg=n";"cols=1;rows=615").
This will give me the price on day 12.4.2012 on B4, 13.4.2012 on B5 and so on.
For C4 I could type
=IF(B4="#N/A N/A";"";B4)
However, this would have to be created for every cell (C5, C6, C7, ...) , for a long price history, and for several hundreds of securities creating tens of thousands of checks to the excel spreadsheet. So I'm wondering if the original formula could be adjusted to keep my sheet lighter?
Bookmarks