A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

VLookup with multiple matches - need to combine



 
 
Thread Tools Display Modes
  #1  
Old June 23rd, 2004, 08:44 PM
Mark Wolven
external usenet poster
 
Posts: n/a
Default 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  
Old June 24th, 2004, 08:13 PM
fishergomz
external usenet poster
 
Posts: n/a
Default 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  
Old June 24th, 2004, 08:14 PM
fishergomz
external usenet poster
 
Posts: n/a
Default VLookup with multiple matches - need to combine

OOps, sorry. The reply was not intended for you.


---
Message posted from http://www.ExcelForum.com/

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 03:59 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.