Greetings all,
New to this forum, and a (very) novice Excel Functions/VBA user. I work with a sales team that runs various incentive programs, many of which have prize drawings. Entrants often get multiple entries in the drawing.
Before I came on board in this job, people were running a physical drawing and hand-writing out tickets. I'm trying to automate the entire process.
So, I've added a few worksheets to the original. One simply mirrors data fields to give a simple two-column display of entrants and # of tickets.
The next sheet functions as a copy/paste/sort area (I know there is probably a cleaner way to do this, but as I said, I'm a novice).
The last sheet actually does the drawing. Column C shows the ticket range for each entrant, and cell C8 actually selects the ticket at random. The winner is displayed in the appropriate row in Column D.
My problem is: the people who will be conducting the drawing would like the winner's name to be displayed in D7, so as to not have to scroll down and look for it. (Picky, I know, but my boss's idiosyncracies are my responsibilities).
I figure that once the winner's name is displayed in Column D, I should be able to search the column for the one cell with text in it (there should be only one), and display the text within it in cell D7.
The problem is, I can't figure out how to do this. I looked at VLOOKUP, figuring I would look at the values from A10:A83 and search D10:D83 for any of the same strings. Nope, get a VALUE? error in D7 when I try that.
Is there a function that will do this? If so, can someone point me in the right direction? If not a function, am I looking at creating some sort of loop search in VBA? File attached with .doc extension, but is .xls file.
Many thanks for any assistance.
Bookmarks