Need Excel Function that will return # of char in preceding cell

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I used it before and cant remeber the function command that will allow me to
copy just the 1st 5 numbers in a cell to another cell. Thes cells are like C
& D.

Thanks for your help. Command just slipping my mind.
 
Are you perhaps talking about:

In D1, enter,

=LEFT(C1,5)
OR
=--LEFT(C1,5)
to retain numerical format.
 
The 'first' 5 numbers can be interpreted in two ways:

123456
=LEFT(C1,5) ---> "12345" (this is a text)
=--LEFT(C1,5) --->12345 (this is a number)

654321
=RIGHT(C1,5) ---> "54321" (this is a text)
=--RIGHT(C1,5) --->54321 (this is a number)

HTH
Ola Sandströ
 

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