I am trying to write some code that will look up a value in a range of cells and copy the names in column A to another sheet.
I have attached a sample sheet which I hope explains what i am trying to achieve more clearly.
thanks
Vetequk
I am trying to write some code that will look up a value in a range of cells and copy the names in column A to another sheet.
I have attached a sample sheet which I hope explains what i am trying to achieve more clearly.
thanks
Vetequk
Last edited by Vetequk; 02-02-2010 at 04:27 AM.
Unfortunately, not so. You should have provided before and after examples showing which value was looked up and which name was returned....which I hope explains what i am trying to achieve more clearly. ...
As it is, though, the data range has many repeating values. For instance the value "11" is associated with
name5, name6 & name9, etc.
Ben Van Johnson
Look at this
----------------------------------
Люди, питающие благие намерения, как раз и становятся чудовищами.
Regards, ?Born in USSR?
Vusal M Dadashev
Baku, Azerbaijan
OK
if the number 11 was typed into the message box, the code would look for the number 11 within the range and when it find it goto column A where the name is located copy the name to cell A2 on sheet 2 then go onto the next 11 and copy that name to A3 and so on until the end.
I have attached a with the desired results on sheet 2 if 11 was typed in.
thanks
vetequk
Igor Shadow
I had a look at the file and that's just what I was looking for.
Thanks Vetequk
I was glad to help![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks