Formula in a note?

I am making a detail stamp.  it is made from a note that has links to custom properties.  i want to grab the file name, and only use the last two digits as the detail number.  is there a way i can do this.  can i use an Excel formula inside a note?

Thanks!

SolidworksUser Interface