flapjacks Posted February 3, 2006 Posted February 3, 2006 Anyone know of a way to preserve number formating when e-mailing? Thanks, John
flapjacks Posted February 3, 2006 Author Posted February 3, 2006 Thanks Lee, I also need the comma for thousands. John
Lee Smith Posted February 3, 2006 Posted February 3, 2006 Okay, then maybe this is better. Let ( [ Amount = Round ( Amount ; 2 ) ; A = Int ( Amount ) ; L = Length ( A ) ; R = If ( Amount > A ; Left ( Amount - A & "000" ; 3 ) ; ".00" ) ] ; "$ " & Case ( L=9 ; Left(A;3) &","& Middle(A;4;3) &","& Right(A;3) ; L=8 ; Left(A;2) &","& Middle(A;4;3) &","& Right(A;3) ; L=7 ; Left(A;1) &","& Middle(A;4;3) &","& Right(A;3) ; L=6 ; Left(A;3) &","& Right(A;3) ; L=5 ; Left(A;2) &","& Right(A;3) ; L=4 ; Left(A;1) &","& Right(A;3) ; A ) //end Case & R ) //end Let Lee [color:Blue]I usually have record of who contributed these calculation, but I didn't in this case. Sorry.
flapjacks Posted February 4, 2006 Author Posted February 4, 2006 Lee I knew you would show the way! Thanks! John
Recommended Posts
This topic is 6859 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 accountSign in
Already have an account? Sign in here.
Sign In Now