I have a spreadsheet that includes an ID and a Name. I'd like to have a procedure that (when the user enters a specific ID) will find the most recent instance of that code in the same column, then will check the next column row if its empty. For example:
ID | Name
SD123456 | John
DF989899 | Alice
SD123456 | Jason
KA452331 | Wilson
SD123456 |
DF456790 | Jack
As you can see, the ID 'SD123456'
has a missing name, therefore I would like to know if its possible to search for the ID 'SD123456'
and get the last row of that ID and check the next column row if its missing. I've tried using xlDown
and xlUp
but to no avail.
EDIT: In summary, my whole VBA purpose is to search for the ID, then check if that latest ID has a name to it, if not, alert the user that, the ID has a missing name.