I am attempting to make an adjacent cell auto populate with the last name of a police officer when the officers badge number is entered. The number of officers is over 100, and right now the excel spreadsheet is set up with a sheet for each day of the week. What I want to do is find a vba code that I can type in the Badge Number and the Officer name will populate in the next cell over. I know entering all the officers in the code will be a little time consuming, but is not an issue. And If I can't apply it to the entire workbook, but need to put it on each page, that isn't a problem either.
I attached a copy. But it looks similar to the following:
Beat Badge Name
1 346 Gunther
2 376 Lamantia
I can't use a function because the number of officers working varies and rows get added and deleted based on the number working on a daily basis and several coworkers use this form, not just me.
Any help would be greatly appreciated.
Bookmarks