#1   Report Post  
Posted to microsoft.public.excel.misc
A.S.
 
Posts: n/a
Default Word Extraction

anyone know how i can write a formula that would extract part of a word from
a cell, but if doesn't have the word it returns anything but a #VALUE!?

Ex: Afghanistan
Afghanistan - Cellular
So the formula would return a 1 or 0 or anything but #Value! and the second
would return the wor cellular. The list would would go down so next would be
let's say:
American Samoa
American Samoa - Cellular

Again, 1st would return anything and second would return cellular

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default Word Extraction

Perhaps something like this:

For text in A1
B1: =IF(COUNTIF(A1,"*cellular*"),"Cellular","Other")

Copy that formula down as far as needed.

Is that something you can work with?

***********
Regards,
Ron

XL2002, WinXP-Pro


"A.S." wrote:

anyone know how i can write a formula that would extract part of a word from
a cell, but if doesn't have the word it returns anything but a #VALUE!?

Ex: Afghanistan
Afghanistan - Cellular
So the formula would return a 1 or 0 or anything but #Value! and the second
would return the wor cellular. The list would would go down so next would be
let's say:
American Samoa
American Samoa - Cellular

Again, 1st would return anything and second would return cellular

Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.misc
jim
 
Posts: n/a
Default Word Extraction

To add to Ron's comment, you could wrap whatever formula you're using
to extra the word in an ISERROR function.

Something like: =IF(ISERROR(extraction_formula),"Value you'd rather
see",extraction_formula).

Alternatively, you could specify the error (here using RIGHT instead of
COUNTIF):

=IF(RIGHT(cell,8)="Cellular","Cellular","What you'd rather see")

  #4   Report Post  
Posted to microsoft.public.excel.misc
CLR
 
Posts: n/a
Default Word Extraction

=IF(RIGHT(A1,8)="cellular","Cellular","No")

Vaya con Dios,
Chuck, CABGx3



"A.S." wrote:

anyone know how i can write a formula that would extract part of a word from
a cell, but if doesn't have the word it returns anything but a #VALUE!?

Ex: Afghanistan
Afghanistan - Cellular
So the formula would return a 1 or 0 or anything but #Value! and the second
would return the wor cellular. The list would would go down so next would be
let's say:
American Samoa
American Samoa - Cellular

Again, 1st would return anything and second would return cellular

Thanks.

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
Paste Table from Word in Excel - 2000 -vs- 2002 PeteW Excel Discussion (Misc queries) 3 April 27th 06 07:36 AM
Extract MS Excel Data embedded in MS Word qualityprocess Excel Discussion (Misc queries) 0 April 20th 06 05:52 PM
Linking table in Excel to word travis Links and Linking in Excel 1 November 19th 05 02:30 PM
how do you get Word to open documents in it's own window(s)? othree7 Excel Discussion (Misc queries) 0 November 16th 05 04:21 PM
Print Excel charts in Word 2003 with fixed size Phil Charts and Charting in Excel 1 November 3rd 05 04:24 AM


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

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

About Us

"It's about Microsoft Excel"