Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sumeet Benawra
 
Posts: n/a
Default Extracting a number from a string and converting it into an Intege

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

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ian P
 
Posts: n/a
Default Extracting a number from a string and converting it into an Intege

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

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

This should work.

Ian

"Sumeet Benawra" wrote:

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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sumeet Benawra
 
Posts: n/a
Default Extracting a number from a string and converting it into an In

Thanks Ian,

That hit the spot.

Sumeet

"Ian P" wrote:

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

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

This should work.

Ian

"Sumeet Benawra" wrote:

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
converting a string of information into excel cells H.W. Excel Worksheet Functions 5 April 18th 06 07:01 PM
Converting text string to a its proper time format Edmund Wong Excel Discussion (Misc queries) 3 October 21st 05 12:37 AM
converting number string to number with decimal rortiz Excel Worksheet Functions 2 September 15th 05 08:34 PM
Converting string of info in one cell into multiple bbrowning711 Excel Discussion (Misc queries) 1 June 15th 05 04:57 PM


All times are GMT +1. The time now is 02:39 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"