+ Reply to Thread
Results 1 to 5 of 5

Array Function- To find matches in two colums

Hybrid View

Heather.Taylor Array Function- To find... 09-29-2011, 04:16 PM
davegugg Re: Array Function- To find... 09-29-2011, 05:25 PM
Colin Legg Re: Array Function- To find... 09-29-2011, 05:37 PM
Heather.Taylor Re: Array Function- To find... 09-30-2011, 04:41 PM
davegugg Re: Array Function- To find... 09-30-2011, 04:59 PM
  1. #1
    Registered User
    Join Date
    07-28-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    21

    Array Function- To find matches in two colums

    I have names of customers in column A for 2010. I have names of customers in column B for 2011. I have column C open for names of customers that were in 2010 and 2011. What is an array function to give me this information in column C and not leave any spaces between lines

  2. #2
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: Array Function- To find matches in two colums

    Do you have to use a formula? On the data tab there is a Remove Duplicates tool. Put all customers from 2010 and from 2011 in column C and then run the tool.
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

  3. #3
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256

    Re: Array Function- To find matches in two colums

    Dave's suggestion would give you a distinct list of customers from either 2010 or 2011. Is that what you want, or do you only want a list of customers who appeared in both 2010 and 2011?
    Hope that helps,

    Colin

    RAD Excel Blog

  4. #4
    Registered User
    Join Date
    07-28-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Array Function- To find matches in two colums

    Correct Colin. I need to show what customers appeared in both 2010 and 2011. See example.
    Attached Files Attached Files
    Last edited by Heather.Taylor; 09-30-2011 at 04:43 PM.

  5. #5
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: Array Function- To find matches in two colums

    Sorry I misinterpreted your original request. This formula is the best way I know how:

    =IF(ISERROR(MATCH(A2,$B$2:$B$5,0)),"",INDEX($B$2:$B$5,MATCH(A2,$B$2:$B$5,0),1))
    It will display the names that match and blanks for any names that don't match.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1