#1   Report Post  
Posted to microsoft.public.excel.programming
Ron Ron is offline
external usenet poster
 
Posts: 250
Default find word

Hi all,

i have a worksheet containing rows of jobs and their respective
descriptions. In some instances, where the job description says 'Pump
Replacement' I would like to insert the words 'high prioirity' in an
additional cell at the end of the row. Sometimes there are numbers or other
words before or after the job description so I need to search fot the term
'pump description' as opposed to using instr or LEFT functions.

Does anybody know how to do this?

Regards
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 644
Default find word

In a cell formula:
=IF(ISERROR(FIND("Pump Replacement",A1)),"","High Priority")

In VB
If InStr(1,Range("A1"),"Pump Replacement") 0 Then
'Found
Else
'Not Found
End If

Charles


Ron wrote:
Hi all,

i have a worksheet containing rows of jobs and their respective
descriptions. In some instances, where the job description says 'Pump
Replacement' I would like to insert the words 'high prioirity' in an
additional cell at the end of the row. Sometimes there are numbers or other
words before or after the job description so I need to search fot the term
'pump description' as opposed to using instr or LEFT functions.

Does anybody know how to do this?

Regards


  #3   Report Post  
Posted to microsoft.public.excel.programming
Ron Ron is offline
external usenet poster
 
Posts: 250
Default find word

GREAT! thank you die!

"Die_Another_Day" wrote:

In a cell formula:
=IF(ISERROR(FIND("Pump Replacement",A1)),"","High Priority")

In VB
If InStr(1,Range("A1"),"Pump Replacement") 0 Then
'Found
Else
'Not Found
End If

Charles


Ron wrote:
Hi all,

i have a worksheet containing rows of jobs and their respective
descriptions. In some instances, where the job description says 'Pump
Replacement' I would like to insert the words 'high prioirity' in an
additional cell at the end of the row. Sometimes there are numbers or other
words before or after the job description so I need to search fot the term
'pump description' as opposed to using instr or LEFT functions.

Does anybody know how to do this?

Regards



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
How to find a particular word? Jack Excel Worksheet Functions 20 December 2nd 09 12:04 PM
Script to find the word END Gary Prescott via OfficeKB.com Excel Programming 2 November 18th 05 03:16 PM
Find last word in cell aph Excel Programming 5 October 17th 05 02:29 PM
Find word and copy Duncan_J Excel Programming 1 August 28th 04 11:47 PM
Find Whole Word Only Lonely[_3_] Excel Programming 2 December 11th 03 04:41 PM


All times are GMT +1. The time now is 11:13 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"