nparkinglot
New Member
- Joined
- Jul 27, 2023
- Messages
- 2
- Office Version
- 365
- Platform
- Windows
I've found a lot of posts that get really close to what I'm trying to do but none that seem to cover key parts that I'm trying to suss out. I'm still basically a newbie so maybe this is obvious and I'm just missing it.
I'm trying to either create a formula or a vba module that will check the contents of a cell for a partial, exact match from a range on a separate worksheet, and if it finds a match, print that match in a cell in a separate column on the same row as the original cell. Then if I found a formula I'd drag it down the column and create a macro or if it's vba I'd need it to loop back around and do the next cell down.
The reason for the 'partial, exact' is I'm working with data output from a joint outlook calendar and I have very little control over what exactly people are putting in the column in question. For example, I might have 'AD- Off-Desk' in A2, I need it to find 'AD' from the range on the other worksheet ( StaffTaskData D2:D34) and print that in a new column (G, beginning row 2). I also might have 'AAD - PTO', here I need it to find 'AAD' in the range, not 'AD'.
Any help is greatly appreciated.
I'm trying to either create a formula or a vba module that will check the contents of a cell for a partial, exact match from a range on a separate worksheet, and if it finds a match, print that match in a cell in a separate column on the same row as the original cell. Then if I found a formula I'd drag it down the column and create a macro or if it's vba I'd need it to loop back around and do the next cell down.
The reason for the 'partial, exact' is I'm working with data output from a joint outlook calendar and I have very little control over what exactly people are putting in the column in question. For example, I might have 'AD- Off-Desk' in A2, I need it to find 'AD' from the range on the other worksheet ( StaffTaskData D2:D34) and print that in a new column (G, beginning row 2). I also might have 'AAD - PTO', here I need it to find 'AAD' in the range, not 'AD'.
Any help is greatly appreciated.