John-S Pretorius
asked on
Remove a preceding zero from report in crystal
I have a field in Crystal Reports 2011 with serial numbers : (No grouping is being done, only sorting accending - so they show up first)
123456789
987564321
023456789
I need to create a formula that checks each number and if it has a preceding zero, to remove it and just show the remaining numbers :
023456789
will be changed to
23456789
123456789
987564321
023456789
I need to create a formula that checks each number and if it has a preceding zero, to remove it and just show the remaining numbers :
023456789
will be changed to
23456789
ASKER
Keep getting an error that a number is required here, it seems that the {serial} number field I'm applying this formula too is a string.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The second formula worked great.
Thank you.
Thank you.
ASKER
Thank you, like always - that was perfect.
IF LEFT(field,1) = 0 THEN
MID(field,2)
ELSE
field