Hi there.
Here is the situation.
I have table like this in sheet no. 1
-------------------------------------------------
our | supplier | supplier
code | name | code
111000 Marko 902
121000 Marko 963
432000 Marko 952
232000 Marko 976
111000 Marko 965
121000 Marko 911
432000 Pero 10576
232000 Pero 10883
111000 Pero 10923
121000 Pero 10221
432000 Pero 10664
232000 Pero 10769
2nd table is in the sheet no. 2
-------------------------------------------
our | supplier | supplier
code | name | code
111000 Marko + THIS IS WHERE I NEED TO INSERT FUNCTION
121000 Marko
432000 Marko
232000 Marko
111000 Marko
121000 Marko
432000 Pero
232000 Pero
111000 Pero
121000 Pero
432000 Pero
232000 Pero
----------------------------------------------------------------------------------------------------------------------------------
Function needs to return value of the supplier code from the table in sheet 1 here in sheet 2, using our code and supplier name.
vlookup function is most similar to what i need but it returns 1st supplier name according to our code. Please notice that in our code list there are same codes but the supplier name is different. (green font as example)
In short words, I needs some function or macro that will return supplier code according to our code and supplier name. Problem with the vlookup function is that returns supplier code of the 1st our code that founds. It don't look to supplier name column.
If I haven't been clear enough please say it, I'll explain in more details.
Ty all in advance.
Dean
Bookmarks