Extracting a number from a string and converting it into an Intege

S

Sumeet Benawra

Hi

I have a text string from which I would like to extract a particular value,
that is the number at the end, and then convert it into an integer value. The
String is;

Total item(s) found: 1

From which I want to be able to take the number at the end and convert it
into an integer.

Can anyone please assist in formulating a solution for doing that.

Thanks

Sumeet
 
I

Ian P

Assuming that sometimes you are going to have numbers greater than 9:

=RIGHT(A1,LEN(A1)-21)

This should work.

Ian
 
S

Sumeet Benawra

Thanks Ian,

That hit the spot.

Sumeet

Ian P said:
Assuming that sometimes you are going to have numbers greater than 9:

=RIGHT(A1,LEN(A1)-21)

This should work.

Ian
 

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