I'm working with pivot tables in excel and historical monthly returns for different mutual funds. I'm trying to calculate the historical monthly returns of each fund net of all management fees. So I have a series called 'MonthlyReturn' and one with the annual cost of each fund called 'MER'. Basically, what I'm having a hard time doing is to return empty cells within the pivot table for months where there are no data rather than just showing (0-'MER'/12)
which wouldn't be representative of the real returns. The fund was not negative 'MER'/12
, it just didn't exist back then.
The formula I've been using in my calculated field of the pivot table is the following: =IF(MonthlyReturn="","",(MonthlyReturn-(MER/100/12)))
. The problem is that this is returning 0s rather than showing blank cells for the months that don't have monthly returns data in them.
How would I go about making sure that if MonthlyReturn for a given fund in a given month has no data attached to it, that it would return an empty cell rather than attempting to calculate MonthlyReturn - Cost/12?
Thank you.
Any help is going to be extremely appreciated.
Gabriel