Link to home
Start Free TrialLog in
Avatar of B
B

asked on

Look up part of a row in a range on a different sheet and copy a value.

Hello everyone,

I'm not an excel expert but I'am trying to become better in it. However I'm stuck and I can't find the right way to solve my problem. What I want to do is the following:

I have two excel tabs with both almost the same content, they slightly differ though. One of these tabs has a unique value per row and the otherone doesn't. I now want to make a formula that looks up a part of a row inside the other sheet and if it matches returns the unique row number.

I tried: {=Vlookup(Sheet1!B5:Q5,Sheet2!$A$5:$Q$4298,1,0)}
But this doesn't return the right value (I do get a value but not the right one). Is there anyone that can help me out?

Thanks in advance!
B.
Avatar of Mike in IT
Mike in IT
Flag of United States of America image

If you are trying to find a unique set, a combination of several cells in a row, then you should just combine them in another column. You could use Concat(B5:Q5), Though that would make them all connected with no delimiter. You would have to do that on both sheets. Then in the column next to that on the sheet with the unique value just put it there like =A5. Then in you vlookup you would do vlookup(R5,Sheet2!$R$5:$S$4298,2,0).

If you attach a sample file I can get more specific and show what I'm talking about.
Avatar of B
B

ASKER

Thanks for your feedback. I think concat doesn't work because the lookup range is a combination of text and numbers (though I can be wrong).

I attached a sample of my file.

What I forgot to mention is that most of the rows do not have a unique number because they are of no value to me. If the formula matches the search it shouldn't return anything (copy that cell). Hopefully this doesn't make it harder (otherwise i can always give the empty cells a easily recognizable value).

Also what might be good to know is that my Excel uses the Dutch language.

Yet again thanks for looking into this!

B
Sample.xlsx
ASKER CERTIFIED SOLUTION
Avatar of Mike in IT
Mike in IT
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of B

ASKER

Oeh this seems very interesting! I'll check it out tonight (the formulas give errors as soon as I want to do something). Thanks for your help so far. I'll let you know if I succeed in getting everything to work.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of B

ASKER

Got it all working :). It was no effort at all! The concat function was still in english and that was all. Thanks a million for your help!
Glad that worked for you.
My solution solved the OPs issue.