ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   string function (https://www.excelbanter.com/excel-programming/419395-string-function.html)

dstiefe

string function
 
I have words that are in a cell. How do I count the first x letters of the
sentence?

JLGWhiz

string function
 
Say you want the first six characters of a string in A1:

=LEFT(A1, 6)

Put the formula in the cell where you want the six letters to appear.

In VBA, you can do:

Range("B1") = Left(Range("A1"), 6)

for the same effect.

"dstiefe" wrote:

I have words that are in a cell. How do I count the first x letters of the
sentence?



All times are GMT +1. The time now is 01:50 PM.

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