Skip to main content
Solved

How to display formula as currency?

  • August 21, 2021
  • 3 replies
  • 482 views

Forum|alt.badge.img+14

I have a formula that’s doing what I want it to do. But I’d like the field {ACTUAL VALUE} to be currency formatted like {EST. VALUE} - I’d also like to get a SUM at the bottom of this column, so I need it to be a number.

This is what I have so far.

IF(STAGE="Executed", {EST. VALUE},"")

What do I need to add? Thank you so much in advance.

Best answer by Justin_Barrett

I think I just found the solution:

IF(STAGE="Executed", {EST. VAL.},"")+0

That allows me to format the formula field as a currency.
And all empty fields show up as $0, which is perfect.


The problem is the final empty string in your formula. That’s forcing the output to be a string, not a number. Long story short, the IF() function only outputs a single type of data. If one part outputs a number and another outputs a string, Airtable will force-convert the first part to be a string for consistency.

The solution is easy: leave out that ending empty string. If that third argument is omitted, Airtable will leave the field empty.

IF(STAGE="Executed", {EST. VAL.})

3 replies

Forum|alt.badge.img+14
  • Author
  • Inspiring
  • August 21, 2021

I think I just found the solution:

IF(STAGE="Executed", {EST. VAL.},"")+0

That allows me to format the formula field as a currency.
And all empty fields show up as $0, which is perfect.


Justin_Barrett
Forum|alt.badge.img+21

I think I just found the solution:

IF(STAGE="Executed", {EST. VAL.},"")+0

That allows me to format the formula field as a currency.
And all empty fields show up as $0, which is perfect.


The problem is the final empty string in your formula. That’s forcing the output to be a string, not a number. Long story short, the IF() function only outputs a single type of data. If one part outputs a number and another outputs a string, Airtable will force-convert the first part to be a string for consistency.

The solution is easy: leave out that ending empty string. If that third argument is omitted, Airtable will leave the field empty.

IF(STAGE="Executed", {EST. VAL.})

Forum|alt.badge.img+14
  • Author
  • Inspiring
  • August 21, 2021

The problem is the final empty string in your formula. That’s forcing the output to be a string, not a number. Long story short, the IF() function only outputs a single type of data. If one part outputs a number and another outputs a string, Airtable will force-convert the first part to be a string for consistency.

The solution is easy: leave out that ending empty string. If that third argument is omitted, Airtable will leave the field empty.

IF(STAGE="Executed", {EST. VAL.})

That’s even better and so much simpler. Thank you, @Justin_Barrett