SOLVED
Dynamic Formula to remove zeros from a specific column
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
calvincarr29
8 - Asteroid
‎12-12-2024
10:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
In Asset ID (Tax) column, zeros keep populating in front of the Asset ID which is throwing off a join tool that I have.
How do I write a formula that automatically gets rid of zeros in front of a number (integer)?
 
Solved! Go to Solution.
4 REPLIES 4
18 - Pollux
‎12-12-2024
10:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
If it was stored as a number, it wouldn't have those leading zeroes!
The function you would use is TRIMLEFT - TrimLeft([Asset ID (Tax)], "0")
‎12-12-2024
10:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
It's stored as a number
‎12-12-2024
10:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Is there a way to do it regardless of data type?
18 - Pollux
‎12-12-2024
11:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Please show me that it is being stored as a number - I believe what you are saying is impossible and I would like to see. But if you are needing the formula to work with numeric data for some reason, you can add ToString: TrimLeft(ToString([Asset ID (Tax)]), "0")
