ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Extracting a word from a text string (https://www.excelbanter.com/excel-discussion-misc-queries/113840-extracting-word-text-string.html)

Nadeem

Extracting a word from a text string
 
I have a text string describing a laptop "Toshiba 17" LCD black". There are
hundreds of tme with different sizes of the screen. I want to be able to
extract the screen size 17", 14" etc and put them in a new cell for further
analysis. Can anyone help?

Dave O

Extracting a word from a text string
 
With your laptop description in cell A1, you can use this formula to
pull the screen size. This formula assumes the screen size will ALWAYS
include a double quote to indicate inches, and will ALWAYS be three
characters long.
=MID(A1,SEARCH(CHAR(34),A1,1)-2,3)


Dave O

Extracting a word from a text string
 
With your laptop description in cell A1, you can use this formula to
pull the screen size. This formula assumes the screen size will ALWAYS
include a double quote to indicate inches, and will ALWAYS be three
characters long.
=MID(A1,SEARCH(CHAR(34),A1,1)-2,3)


Nadeem

Extracting a word from a text string
 
Thanks a ton Dave. It helped.

"Dave O" wrote:

With your laptop description in cell A1, you can use this formula to
pull the screen size. This formula assumes the screen size will ALWAYS
include a double quote to indicate inches, and will ALWAYS be three
characters long.
=MID(A1,SEARCH(CHAR(34),A1,1)-2,3)




All times are GMT +1. The time now is 12:09 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com