how to write a custom function in excel 2007 buying history papers phd thesis smes master thesis proposal on evaluation of primary healthcare