string function

  • Thread starter Thread starter dstiefe
  • Start date Start date
D

dstiefe

I have words that are in a cell. How do I count the first x letters of the
sentence?
 
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.
 

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