ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Trim Function (https://www.excelbanter.com/excel-worksheet-functions/38841-trim-function.html)

Steved

Trim Function
 
Hello from Steved

I have 4 numerals say 1234 what trim function would I use please to return
a 3 numeral value ie 123

Thankyou.

Biff

=LEFT(A1,3)*1

Biff

"Steved" wrote in message
...
Hello from Steved

I have 4 numerals say 1234 what trim function would I use please to return
a 3 numeral value ie 123

Thankyou.




Steved

Thanks Biff

"Biff" wrote:

=LEFT(A1,3)*1

Biff

"Steved" wrote in message
...
Hello from Steved

I have 4 numerals say 1234 what trim function would I use please to return
a 3 numeral value ie 123

Thankyou.





SuperDave


Or divide by 10 and truncate to an integer...


--
SuperDave
------------------------------------------------------------------------
SuperDave's Profile: http://www.excelforum.com/member.php...o&userid=25935
View this thread: http://www.excelforum.com/showthread...hreadid=393091


Steved

Hello SuperDave from Steved

Could you please give me an example ie 1234 to 123 using divide by 10 and
truncate to an integer

Thankyou.

"SuperDave" wrote:


Or divide by 10 and truncate to an integer...


--
SuperDave
------------------------------------------------------------------------
SuperDave's Profile: http://www.excelforum.com/member.php...o&userid=25935
View this thread: http://www.excelforum.com/showthread...hreadid=393091



JE McGimpsey

One way:

=INT(1234/10)

In article ,
Steved wrote:

Hello SuperDave from Steved

Could you please give me an example ie 1234 to 123 using divide by 10 and
truncate to an integer

Thankyou.

"SuperDave" wrote:


Or divide by 10 and truncate to an integer...



All times are GMT +1. The time now is 10:47 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com