Feb 24, 2020 04:06 PM
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!
Solved! Go to Solution.
Feb 25, 2020 01:27 PM
For future reference, @W_Vann_Hall has demonstration base for formatting numbers as currency to deal with these types of issues.
Feb 25, 2020 10:52 AM
I know this is probably easy, but I just can’t figure it out. I have been searching and searching, but no luck :frowning: 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.
Feb 25, 2020 12:43 PM
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}&""))
Feb 25, 2020 01:27 PM
For future reference, @W_Vann_Hall has demonstration base for formatting numbers as currency to deal with these types of issues.
Feb 25, 2020 03:12 PM
Thank you. I used formula in his base instead :slightly_smiling_face:
Dec 07, 2022 01:58 PM
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 😎
Aug 16, 2023 03:36 AM
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.
Sep 25, 2023 07:35 PM