LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default Need macro that analyses 2 columns . Delets row if same text is fo

A little bit tricky . Have column B with cells containing text . Have D
column with cells containing text . Example :

B1 : Mother D1 : Son and mother are going home
B2 : Father D2 : Rain in London
B3 : John and his uncle D3 : Some time ago John and his uncle did...
B4 : Mother and father D4 : Mother cooks great
B5 : Mother and son D5 : Mother and father and son

The macro should look in every cell in B column . If same text is found in
cell from D column , deletes the entire row . Else , keeps the row
Capitalisation should not matter

"Mother" from B1 is found in D1 . So delets the row
"Father" from B2 not to be found in D2 . Keeps the row
"John and his uncle" from B3 found in D3 . Delets the row
"Mother and father" from B4 not found in D4 . Keeps the row . Even though
"Mother" is found in D4 , not all words from B4 can be found in D4 (ex :
father)
"Mother and son" from B5 can be found in D5 , but not in the order they are
in B5 . So the macro keeps the row

I think i covered all possible cases
 
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
Macro analyses cells in 2 columns . If same text found , keeps row andrei Excel Programming 6 October 5th 09 04:50 PM
Macro analyses Cell . If text found , delets entire row andrei Excel Programming 6 October 1st 09 05:56 PM
Macro that analyses data from 3 columns and puts result in 4th andrei Excel Programming 2 September 30th 09 09:18 AM
Macro that delets all cells containg ALL words in bold andrei Excel Programming 3 September 29th 09 03:57 PM
Macro which searches for a character . When found delets what's be andrei Excel Programming 4 September 28th 09 06:09 PM


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