Those are such amazing solutions. Kudos!
Looking at your code makes me inclined to use the VBA method as it is more feasible as well. I realized that formula would be very cumbersome in this situation.
However, I would request you to make some small changes based on the actual scenario. The data above was a related sample.
After reading the below, if you think another approach (a third option) is better, then I would certainly request you to suggest me the same.
Actual scenario.
Sheet 1 where the actual data entry happens and where the names in Column D has to match with the name in sheet 2
Book1 |
---|
|
---|
| D | E | F | G |
---|
1 | Name | Comments | Suggestions | |
---|
2 | Tom | | | |
---|
3 | Alan | | | |
---|
4 | Judy | | | |
---|
5 | Edwin | | | |
---|
6 | | | | |
---|
|
---|
Sheet 2 where the List is saved. (200 names)
Book1 |
---|
|
---|
| A |
---|
1 | 200 Names |
---|
2 | Tom Billow |
---|
3 | Alan C |
---|
4 | John D |
---|
5 | Mony Tom |
---|
6 | Will S |
---|
7 | H Tom |
---|
|
---|
I find people putting names in sheet 1 Column D which is not standardized (i.e. not in Sheet 2). This create trouble when I prepare reports at the end.
I tried Data Validation but then it is very difficult for them to go through a huge drop down list of 200 names that wold come in Data validation.
Your VBA code pointed toward a wonderful solution.
I think, the moment a person enters a name in Column D which is not matching with the list in sheet 2 (A2:A200), then the names related to that should appear as a suggestion in G1, H1, I1, J1 and so on. this will make it easier for them to copy and paste it in Column D. ---
new shortcut method
(As of now they have to go to Sheet 2 and then press (Ctrl + F) to search the names and then copy it and come back to sheet 1 and paste it) --
long old method
If the name entered is correct i.e. matching with any one of names in Sheet 2, then the suggestions need not appear.
Since I am not familiar with much of VBA. I cannot think of a solution to delete the suggestions.
For example,
A person enters Tom in D2, suggestions appear in G2:J2. Assuming he copies the one in H2 (the one that was needed) and pastes it in D2. The work gets completed.
Can it happen that once the correct name is entered in Sheet 1 Column D, the suggestion in that row will get deleted?
If both suggestion and deletion happens successfully, that would make my day.