kelly mort
Well-known Member
- Joined
- Apr 10, 2017
- Messages
- 2,169
- Office Version
- 2016
- Platform
- Windows
Hi,
I am challenged here and need a tech support team:
In column C I want to compare it's first two characters in each cell with the contents of cells in column D to see if those characters exist in the cell content then hide all rows that don't have a match.
So say I have "only" in C2 and "Money" in D2, the "on" can be found in "money" so the match is found. The characters in column D should follow each other. "on" <>"no"
For the same "only" from column C, if there is the word "column" in column D, there should be no match since the "o" and "n" are not consecutive.
Then move down to C3 and compare it's first two characters to D3 etc
I am looking for a macro to do that for me.
Thanks
I am challenged here and need a tech support team:
In column C I want to compare it's first two characters in each cell with the contents of cells in column D to see if those characters exist in the cell content then hide all rows that don't have a match.
So say I have "only" in C2 and "Money" in D2, the "on" can be found in "money" so the match is found. The characters in column D should follow each other. "on" <>"no"
For the same "only" from column C, if there is the word "column" in column D, there should be no match since the "o" and "n" are not consecutive.
Then move down to C3 and compare it's first two characters to D3 etc
I am looking for a macro to do that for me.
Thanks