Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Copying data that has been formated


This topic is 5557 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a field that is a text calculation. What it does is takes several other field's info, and puts it all together here.

The problem is, two of my other fields are numbers, that have been formatted as currency, so they show the decimal places and a $ sign. But my calculation in the main field only copies the raw data. I want it to copy the $ and the decimal places.

  • Newbies
Posted

There may be a better way, but I'd structure the calculation to format the number as it calculates:

ie: Text + " $" + Round(Amount;2)

where "Text" is your other text fields and "Amount" is your currency field.

  • Newbies
Posted

Sorry, I should add that to always force 2 decimal places you need to either use a hidden calculation field that corrects the "Amount" as a properly formatted text string or use the following calculation in your field calculation:

Text & " $" & Round(Amount;2) & Case(Position(Round(Amount;2);".";1;1) = 0;".00"; Position(Round(Amount;2);".";1;1) = Length(Round(Amount;2))-1;"0";"")

Note I foolishly used "+" in my previous post when it should have been "&"..... :-(

This topic is 5557 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.