Skip to main content

Hi,



How do I get currency (ie. $22.00) to display the cents “.00” when exporting? I have an integromat automation that links Airtable to email and when I use mapping for my dollar amount it only shows the whole number (ie. $22.00 shows 22 – $22.50 shows 22.5).



Thanks!

I know this is probably easy, but I just can’t figure it out. I have been searching and searching, but no luck 😦 Any help would be greatly appreciated. I just need my dollars to show cents (ie. “.00” in plain text even when the last numbers are zero. Thank you.


I know this is probably easy, but I just can’t figure it out. I have been searching and searching, but no luck 😦 Any help would be greatly appreciated. I just need my dollars to show cents (ie. “.00” in plain text even when the last numbers are zero. Thank you.


I figured it out finally.



For those who need in future:



IF(NOT(FIND(’.’,{REFERENCED NUMBER}&’’)),{REFERENCED NUMBER}&’.00’,


IF(FIND(’.’,RIGHT({REFERENCED NUMBER}&’’,2)),{REFERENCED NUMBER}&""&‘0’,{REFERENCED NUMBER}&""))


I figured it out finally.



For those who need in future:



IF(NOT(FIND(’.’,{REFERENCED NUMBER}&’’)),{REFERENCED NUMBER}&’.00’,


IF(FIND(’.’,RIGHT({REFERENCED NUMBER}&’’,2)),{REFERENCED NUMBER}&""&‘0’,{REFERENCED NUMBER}&""))


For future reference, @W_Vann_Hall has demonstration base for formatting numbers as currency to deal with these types of issues.




For future reference, @W_Vann_Hall has demonstration base for formatting numbers as currency to deal with these types of issues.






Thank you. I used formula in his base instead 🙂


I figured it out finally.



For those who need in future:



IF(NOT(FIND(’.’,{REFERENCED NUMBER}&’’)),{REFERENCED NUMBER}&’.00’,


IF(FIND(’.’,RIGHT({REFERENCED NUMBER}&’’,2)),{REFERENCED NUMBER}&""&‘0’,{REFERENCED NUMBER}&""))


Nice! 

I was looking for this for ages and couldn't find it anywhere. I wanted a slight variation where "If the cents = .00, truncate it, else, leave the cents in. 

e.g. $32.00 --> $32 | $32.10 --> $32.10

For anyone wanting this solution in the future, here's the slightly adjusted code snippet:

IF(NOT(FIND('.',{COLUMN_NAME}&"")),{COLUMN_NAME}&'',

IF(FIND('.',RIGHT({COLUMN_NAME}&"",2)),{COLUMN_NAME}&""&'0',{COLUMN_NAME}&""))

 

 

Cheers 😎


Also, if you use Make (formerly known as Integromat) for your automations — as the original author above said that he was using — you can use Make’s formatNumber function to format the numbers correctly.


@Frazer_McLeodRegular expressions are simpler, e.g.:

REGEX_REPLACE({Amount pretty}, '\.00$', '')

 


Reply