I'm trying to match data from Sheet1 (Column H) to Sheet2 (Column A).
When the values match, output the value in Column K (from Sheet2) to Column M of Sheet1.
If the values do not match, output a '0'.
I'm trying to match data from Sheet1 (Column H) to Sheet2 (Column A).
When the values match, output the value in Column K (from Sheet2) to Column M of Sheet1.
If the values do not match, output a '0'.
Twelve hours to get any sort of a reply. Suggestion: next time, please provide a better explanation or (better still, for really fast answers) attach a sample sheet. Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).
1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.
2. Make sure that your desired solution is also shown (mock up the results manually).
3. Make sure that all confidential information is removed first!!
4. Try to avoid using merged cells. They cause lots of problems!
Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
However, for this time, this formula should be what you want:
=IFERROR(VLOOKUP(H2,Sheet2!$A$2:$K$10,11,FALSE),0)
See sheet.
Glenn
None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.
Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh
Suppose all data in row 2 onword.
In cell "M2"Formula:Please Login or Register to view this content.
atul
If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.
Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".
Hi. Whole column references in MATCH are NOT a good idea, unless you have 1,000,000-plus rows.... The "" around the 0 are not required, either...
=IFERROR(VLOOKUP(H2,Sheet2!$A$2:$K$10,11,FALSE),0)
Can you explain what the different parts of this formula mean?
Specifically, can this portion be explained?
$K10,11,FALSE
=IFERROR(VLOOKUP(H2,Sheet2!$A$2:$K$10,11,FALSE),0)
splits up into:
=IFERROR(blah blah,0)
This just means if blah blah results in an error, return zero.
and
VLOOKUP(H2,Sheet2!$A$2:$K$10,11,FALSE)
This means look up the value in H2 in the first column of the range A2 to K10 and return the corresponding value in the 11th column (K).
the FALSE bit merely means "Look for an exact match".
You may need to amend the range K10 to suit your actual data. You didn't tell us the range your data covered, nor did you post a sample sheet. So, I made a guess.
If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.
It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks