I need a simple excel formula

  • Thread starter Thread starter Ange
  • Start date Start date
A

Ange

Hello All.

I need a formula that will get rid of the decimals to the right side
of my period. The cells have to be in TEXT format.

85.10 must end up like 85

Please help,

regards
 
Hi Ange,

In Excel try:

=TEXT(TRUNC(A1),"0")

In VBA:

Dim sStr as String
sStr = CStr(Fix(85.52))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top