Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
KH_GS
 
Posts: n/a
Default Check my IF function


I'm suppose to catch words that end with "ing".

In this case it only catches words that end with "ing(space)", and not
the word at the end.

= IF(OR((ISERROR( FIND("ing ",A3))), (ISERROR(RIGHT(A3, 3)= "ing"))),
"",A3)

Data:
playing ball
running shoe
battling
resist running
box
carton milk

Output:
playing ball
running shoe


My ideal output is:
playing ball
running shoe
battling
resist running


--
KH_GS
------------------------------------------------------------------------
KH_GS's Profile: http://www.excelforum.com/member.php...o&userid=32920
View this thread: http://www.excelforum.com/showthread...hreadid=529128

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Check my IF function

=IF(ISNUMBER( FIND("ing ",A3)),TRIM(A3),IF(RIGHT(A3, 3)="ing",A3,""))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"KH_GS" wrote in
message ...

I'm suppose to catch words that end with "ing".

In this case it only catches words that end with "ing(space)", and not
the word at the end.

= IF(OR((ISERROR( FIND("ing ",A3))), (ISERROR(RIGHT(A3, 3)= "ing"))),
"",A3)

Data:
playing ball
running shoe
battling
resist running
box
carton milk

Output:
playing ball
running shoe


My ideal output is:
playing ball
running shoe
battling
resist running


--
KH_GS
------------------------------------------------------------------------
KH_GS's Profile:

http://www.excelforum.com/member.php...o&userid=32920
View this thread: http://www.excelforum.com/showthread...hreadid=529128



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete_UK
 
Posts: n/a
Default Check my IF function

Try this variation:

= IF(ISERROR(FIND("ing ",A3)),"",IF(ISERROR(RIGHT(A3, 3)=
"ing"),"",A3))

Hope this helps.

Pete

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
KH_GS
 
Posts: n/a
Default Check my IF function


This does not capture single words that ends with "ing".



Pete_UK Wrote:
Try this variation:

= IF(ISERROR(FIND("ing ",A3)),"",IF(ISERROR(RIGHT(A3, 3)=
"ing"),"",A3))

Hope this helps.

Pete



--
KH_GS
------------------------------------------------------------------------
KH_GS's Profile: http://www.excelforum.com/member.php...o&userid=32920
View this thread: http://www.excelforum.com/showthread...hreadid=529128

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Check my IF function

Have you tried my suggestion?

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"KH_GS" wrote in
message ...

This does not capture single words that ends with "ing".



Pete_UK Wrote:
Try this variation:

= IF(ISERROR(FIND("ing ",A3)),"",IF(ISERROR(RIGHT(A3, 3)=
"ing"),"",A3))

Hope this helps.

Pete



--
KH_GS
------------------------------------------------------------------------
KH_GS's Profile:

http://www.excelforum.com/member.php...o&userid=32920
View this thread: http://www.excelforum.com/showthread...hreadid=529128





  #6   Report Post  
Junior Member
 
Posts: 7
Default

This works for me:

=IF(RIGHT(TRIM(A8),3)="ing",A8,IF(ISERROR(FIND("in g ",A8)),"",A8))
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
KH_GS
 
Posts: n/a
Default Check my IF function


Yes it works!


Bob Phillips Wrote:
Have you tried my suggestion?

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"KH_GS" wrote in
message ...

This does not capture single words that ends with "ing".



Pete_UK Wrote:
Try this variation:

= IF(ISERROR(FIND("ing ",A3)),"",IF(ISERROR(RIGHT(A3, 3)=
"ing"),"",A3))

Hope this helps.

Pete



--
KH_GS

------------------------------------------------------------------------
KH_GS's Profile:

http://www.excelforum.com/member.php...o&userid=32920
View this thread:

http://www.excelforum.com/showthread...hreadid=529128



--
KH_GS
------------------------------------------------------------------------
KH_GS's Profile: http://www.excelforum.com/member.php...o&userid=32920
View this thread: http://www.excelforum.com/showthread...hreadid=529128

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Check my IF function

Great.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"KH_GS" wrote in
message ...

Yes it works!


Bob Phillips Wrote:
Have you tried my suggestion?

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"KH_GS" wrote in
message ...

This does not capture single words that ends with "ing".



Pete_UK Wrote:
Try this variation:

= IF(ISERROR(FIND("ing ",A3)),"",IF(ISERROR(RIGHT(A3, 3)=
"ing"),"",A3))

Hope this helps.

Pete


--
KH_GS

------------------------------------------------------------------------
KH_GS's Profile:

http://www.excelforum.com/member.php...o&userid=32920
View this thread:

http://www.excelforum.com/showthread...hreadid=529128



--
KH_GS
------------------------------------------------------------------------
KH_GS's Profile:

http://www.excelforum.com/member.php...o&userid=32920
View this thread: http://www.excelforum.com/showthread...hreadid=529128



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
VBA function for "Mean" using Array as argument ASokolik Excel Worksheet Functions 21 March 28th 06 10:05 PM
Is there a way for excel to recognise that €0.00 = 0 for the purposes IF function ? CmTaz Excel Discussion (Misc queries) 4 March 6th 06 03:45 AM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
What function will check a row for a series of specific numbers? PuzzledK Excel Discussion (Misc queries) 1 May 11th 05 09:20 PM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM


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