Counting # of characters before a certain character

  • Thread starter Thread starter NickPro72
  • Start date Start date
N

NickPro72

Here is my example:

1 - fksdlafjd
2 - dklsafj
3 - lkdfjad
.......
.....
10 - salkjdfjdsl
11 - dklsafjsdj;lfdf

I am trying to grab the beginning # and put it in a different cell. This is
the formula that I am trying: =value(left(cell_ref,??????)). This is not
working for me. Any other ideas?
 
Maybe something like this:

=LEFT(A1,FIND(" ",A1)-1)*1

This assumes that the number is always followed by a space and there are no
spaces before the number.

HTH,
Paul
 

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