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.
BAsked:
Who is Participating?
 
Mike in ITConnect With a Mentor IT System AdministratorCommented:
I have added the formulas that I think would help you to the 2 sheets that you provided.

You can hide column S so that you don't see the concatenation of the columns. Then you can put in column A of sheet "Sample 1": "=T3"
Sample.xlsx
0
 
Mike in ITIT System AdministratorCommented:
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.
0
 
BAuthor Commented:
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
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
BAuthor Commented:
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.
0
 
Mike in ITConnect With a Mentor IT System AdministratorCommented:
The errors might be the difference in language. I used "," you might need to change them to "." or whatever your language specific delimiter is. If you change it in the first formula then you can just copy it down to all the rest.

What are the actual errors though, I might be able to help with them?
0
 
BAuthor Commented:
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!
0
 
Mike in ITIT System AdministratorCommented:
Glad that worked for you.
0
 
Mike in ITIT System AdministratorCommented:
My solution solved the OPs issue.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.