Pro Tips: Formulas

micah —  March 14, 2011 — 3 Comments

Expense policies in Expensify offer the option to create custom report fields, which are appended inside each report. Users often ask us how they can include custom fields in a report which are complex and dynamically update with relevant information. There is actually a way to do this with Formulas, a little not-so-secret feature with powerful effects. When used right, formulas can help you achieve pretty much any output you’d want in a report. The best way to learn about formulas is with an example.

A Formulaic Example

Let’s suppose that we have three custom fields in our report, which the submitter of the report is required to fill in: Type of Expense, Client Name, and City.

Now, suppose we want to add a fourth field for our Accountant to use, so that he can code the Report appropriately in the accounting software. He needs the field to include the City name and the report total, along with the report submitter’s email. This new field, however, does not need to be filled in – it can be dynamically generated with the existing values using Formulas.

First, add the title of the new field.

Then, put the formula in the value of the field. Use the formulas help page as your cheat sheet. We can add the report submitter’s email with: {report:submit:from}. Let’s also include the City by accessing the field’s value: {field:City}. Finally, we add the report total’s reimbursable amount to the mix: {report:reimbursable}.

The Final Result

To recap, the value for the field Accounting Code is: {report:submit:from} – {field:City} – {report:reimbursable}. This ends up showing the report submitter’s email, the City field, and the reimbursable total. Moreover, this field will be automatically calculated on the fly inside the report.

To make the report title itself dynamic, just add a custom field named “Title.” You can check out our formulas, and other tips on how to use them, in our awesome guide here: Explore the power of formulas in your expense reports.

3 responses to Pro Tips: Formulas


    Thanks friend for this super site. Seems like there\’s always something new I learn even after being in the field for 10 years.


    Do you mind if I quote a couple of your posts as long as I provide credit and sources back
    to your site? My blog is in the very same niche as yours and my users would certainly benefit from some of the information you present
    here. Please let me know if this alright with you.


    You are more than welcome to link to our blog! Thanks for the interest!

Have something to say? Share your thoughts with us!

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s