nielsnielsen
New Member
- Joined
- Sep 6, 2016
- Messages
- 3
Dear all wizards,
I have a list of cells with text strings (notes) and I need to check each cell if it contains a word from the search list. Each note will only contain one of the search words. If a note contain a search word, the function need to return a Level 1 text and a Level 2 text. If a note does not contain any of the search Words, the function must return "No L1" and "No L2".
The note can contain the search word in any part of the textstring and it can contain both letters, numbers and basic signs such as " . - , _ "
Thanks.
Example:
<tbody>
</tbody><colgroup><col><col><col span="4"><col><col><col></colgroup>
Notes in: A2:A7
Return of Level 1 in: B2:B7
Return of Level 2 in: C2:C7
Search words in: F2:F8
Level 1 return text in: G2:G8
Level 2 return text in: H2:H8
-The search words and their return text can be in other sheet...
I have a list of cells with text strings (notes) and I need to check each cell if it contains a word from the search list. Each note will only contain one of the search words. If a note contain a search word, the function need to return a Level 1 text and a Level 2 text. If a note does not contain any of the search Words, the function must return "No L1" and "No L2".
The note can contain the search word in any part of the textstring and it can contain both letters, numbers and basic signs such as " . - , _ "
Thanks.
Example:
A | B | C | D | E | F | G | H | |
1 | Note | Level 1 | Level 2 | Search word | Level 1 text | Level 2 text | ||
2 | 11SomeTextAA | One | First | AA | One | First | ||
3 | 22SomeText BB | One | Second | BB | One | Second | ||
4 | DD some text | Two | First | CC | One | Thrid | ||
5 | Some BD Text | No L1 | No L2 | DD | Two | First | ||
6 | 55 SomeText FF | Two | Third | EE | Two | Second | ||
7 | Text no letters | No L1 | No L2 | FF | Two | Thrid | ||
8 | - | No L1 | No L2 |
<tbody>
</tbody><colgroup><col><col><col span="4"><col><col><col></colgroup>
Notes in: A2:A7
Return of Level 1 in: B2:B7
Return of Level 2 in: C2:C7
Search words in: F2:F8
Level 1 return text in: G2:G8
Level 2 return text in: H2:H8
-The search words and their return text can be in other sheet...