If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
VLookup with multiple matches - need to combine
Here's my dilemma - I have 2 worksheets.
One has data that needs to be normalized (4400 rows) and 40 colummns. The second sheet has the unique rows based on a 6 column key (2700 rows). I want to populate the remaining 34 fields on the second sheet by retrieving the values from the first sheet- frequently, there is more than one match in a VLOOKUP. I can do an simple COUNTIF to determine which records will have more than one match in a vlookup. A few columns of the data is numeric, and a simple SUMIF does the trick there. However, most of the columns are not numeric. For example, there are a number of boolean (true/false) columns. In this, the logic would be if any of the matches is true, the new value should be true. There is also a date column, where I'd want to retrieve the most recent date. Finally, there are some text columns, and I'd want to concatenate them together; the order is not really relevant there. What are my options? |
#2
|
|||
|
|||
VLookup with multiple matches - need to combine
Try this. It worked for me.
=IF(ISERROR(VLOOKUP(A1,Sheet2!$A$1:$B$1,2,FALSE)), VLOOKUP(A1,Sheet3!$A$1:$B$1,2,FALSE),VLOOKUP(A1,Sh eet2!$A$1:$B$1,2,FALSE)) --- Message posted from http://www.ExcelForum.com/ |
#3
|
|||
|
|||
VLookup with multiple matches - need to combine
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Vlookup across multiple sheets | Brian | Worksheet Functions | 6 | March 10th, 2004 11:05 PM |
Multiple values in excel's vlookup | EXCELlently Confused | Worksheet Functions | 1 | January 27th, 2004 05:49 PM |
Multiple VLOOKUP? | Rigel | Worksheet Functions | 3 | December 11th, 2003 01:36 AM |
VLOOKUP - "Close Matches" | John | Worksheet Functions | 6 | November 19th, 2003 02:57 PM |