Extracting part of the data from a single Excel cell

N

nigelbarham

I have a column of cells:

ABC-1--2.00---0786759021----33
JYP-1--0.76---0786759021----54
NUJ-1--112.30---0786759021----18
....

How can I extract the data between "--" and "---" (in the case of the
first cell "2")?

Thanks in advance.
 
D

Don Guillett

If you want a formula solution.

=MID(C8,FIND("--",C8)+2,FIND("---",C8)-FIND("--",C8)-2)
 
N

nigelbarham

One more question. How would I extract the data after "----" (so, in
the case of the first cell, "33")?
 
D

Don Guillett

Glad to help.
See how much better it is to figure it out yourself. Post you final
solution.
 

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

Top