Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Removing Words from Cell

Hello - I have been able to successfully remove words (shown in column B) from a cell (in column A) using the below formula.

So for example, if Cell A2 Contains "Action Toy Figure" and Cell B2 contains "Toy", then the formula =SUBSTITUTE(A2,B2,"") would produce the desired result of "Action Figure"

However, the problem I am encountering is that the case (i.e., Proper, Lower, or sometimes a unique Upper case letter in the middle of the words that I am trying to remove) prevents the formula from actually finding the words in the cell.

Is there possibly another way (or improvement to this formula) that would allow me to simply remove text from a cell, regardless of the case of the text in either cell.


=SUBSTITUTE(A2,B2,"")

Thanks for any suggestions.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,872
Default Removing Words from Cell

Hi James,

Am Thu, 30 Aug 2018 13:04:02 -0700 (PDT) schrieb James:

So for example, if Cell A2 Contains "Action Toy Figure" and Cell B2 contains "Toy", then the formula =SUBSTITUTE(A2,B2,"") would produce the desired result of "Action Figure"

However, the problem I am encountering is that the case (i.e., Proper, Lower, or sometimes a unique Upper case letter in the middle of the words that I am trying to remove) prevents the formula from actually finding the words in the cell.


try:
=SUBSTITUTE(PROPER(A2),PROPER(B2),)


Regards
Claus B.
--
Windows10
Office 2016
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
Removing vowels from words... [email protected] Excel Programming 16 April 3rd 23 07:44 PM
Removing words from a string? McP Excel Programming 4 July 17th 09 10:57 AM
removing a space between words in a cell JenBasch Excel Worksheet Functions 3 September 20th 05 12:39 AM
removing cells with certain words in it Matthew Kramer Excel Programming 2 September 13th 04 10:14 AM
removing words/phrase from sentences Runt Excel Programming 7 August 23rd 04 07:51 AM


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