Hello,
I have the following Excel data and I would like to return the repeated values found when the user searches for keywords.
It can be a formula and/or VBA code.
To be considered:
1. Column A and B have fixed values.
2. Column C and D are the keywords that the user will enter (not case sensitive).
3. Column E is what I would like to see. This cell will return the value from column A if matches were found anywhere on column B for values entered on columns C and D, considering:
[TABLE="class: grid, width: 800"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Ticket Number[/TD]
[TD]Description[/TD]
[TD]Search keyword 1 (user entry)[/TD]
[TD]Search keyword 2 (user entry *can be empty)[/TD]
[TD]Repeated Results[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]IN123456[/TD]
[TD]Site has a network issue[/TD]
[TD]network[/TD]
[TD][/TD]
[TD]IN777777[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]IN101010[/TD]
[TD]Application issue and server error[/TD]
[TD]application[/TD]
[TD]server[/TD]
[TD]IN222222,IN7777777[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]IN222222[/TD]
[TD]Hardware issue found on the server[/TD]
[TD]hardware[/TD]
[TD]server[/TD]
[TD]IN101010,IN7777777[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]IN777777[/TD]
[TD]Internet unavailable due to network or server issue[/TD]
[TD]internet[/TD]
[TD]network[/TD]
[TD]IN123456,IN333333[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]IN333333[/TD]
[TD]VPN not working due to internet issue[/TD]
[TD]VPN[/TD]
[TD]internet[/TD]
[TD]IN777777[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]IN444444[/TD]
[TD]Mobile phone issue[/TD]
[TD]mobile[/TD]
[TD][/TD]
[TD]not found[/TD]
[/TR]
</tbody>[/TABLE]
Thank you very much in advance for any help!
Rodri
I have the following Excel data and I would like to return the repeated values found when the user searches for keywords.
It can be a formula and/or VBA code.
To be considered:
1. Column A and B have fixed values.
2. Column C and D are the keywords that the user will enter (not case sensitive).
3. Column E is what I would like to see. This cell will return the value from column A if matches were found anywhere on column B for values entered on columns C and D, considering:
- Separated by comma if more than one value is found;
- Return "not found" if no repeated results found.
[TABLE="class: grid, width: 800"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Ticket Number[/TD]
[TD]Description[/TD]
[TD]Search keyword 1 (user entry)[/TD]
[TD]Search keyword 2 (user entry *can be empty)[/TD]
[TD]Repeated Results[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]IN123456[/TD]
[TD]Site has a network issue[/TD]
[TD]network[/TD]
[TD][/TD]
[TD]IN777777[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]IN101010[/TD]
[TD]Application issue and server error[/TD]
[TD]application[/TD]
[TD]server[/TD]
[TD]IN222222,IN7777777[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]IN222222[/TD]
[TD]Hardware issue found on the server[/TD]
[TD]hardware[/TD]
[TD]server[/TD]
[TD]IN101010,IN7777777[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]IN777777[/TD]
[TD]Internet unavailable due to network or server issue[/TD]
[TD]internet[/TD]
[TD]network[/TD]
[TD]IN123456,IN333333[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]IN333333[/TD]
[TD]VPN not working due to internet issue[/TD]
[TD]VPN[/TD]
[TD]internet[/TD]
[TD]IN777777[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]IN444444[/TD]
[TD]Mobile phone issue[/TD]
[TD]mobile[/TD]
[TD][/TD]
[TD]not found[/TD]
[/TR]
</tbody>[/TABLE]
Thank you very much in advance for any help!
Rodri