Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Want to Remove thousand separators and decimal points from a formula

Status
Not open for further replies.

Bunting

MIS
Mar 19, 2002
50
GB
I have a formula which returns a numeric value such as 1,234.00

The end result I am looking for is to have a fixed length field of 8 charcaters with no thousand separators or decimal points. For example 1,234.00 to show as 00123400

I think I'm O.k with building up to 8 characters with preceeding zeros, but I have a real problem removing ,.


 
Try:
replace(totext({Sales},"000000.00"),".","")
Andrew Baines
Chase International
 
Thnaks for the speedy response - it works - I'm happy.

Ta a lot
 
an easier way is simply: totext({Sales},2,"","") Jim
JimBroadbent@Hotmail.com
 
But then you don't get the leading zeroes. Andrew Baines
Chase International
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top