+ Reply to Thread
Results 1 to 8 of 8

List all Matches between two columns

  1. #1
    Registered User
    Join Date
    03-05-2013
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2010
    Posts
    28

    List all Matches between two columns

    I want to list all the names from one column that have a number in the next column. If the name does not have a number skip and repeat until all the names have been checked. I want the list on the same worksheet and on the same columns. I have tried =Index(a1:a5, Match(a11,B1:b5,0)) but I get one answer not all of them. Any ideas?
    Example:

    A B
    1 Joe
    2 Frank 100
    3 Tom 50
    4 Pat
    5 Sue 120


    Answer I want is this
    A B
    11 Frank 100
    12 Tom 50
    13 Sue 120
    Last edited by ssminnow; 01-20-2017 at 06:11 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: List all Matches between two columns

    Have you tried a simple autofilter on column B for non blanks and then copying the filtered data and pasting it underneath your table?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    03-05-2013
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: List all Matches between two columns

    Not sure what you are saying.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: List all Matches between two columns

    Try this...

    Data Range
    A
    B
    1
    Joe
    2
    Frank
    100
    3
    Tom
    50
    4
    Pat
    5
    Sue
    120
    6
    7
    8
    ------
    ------
    9
    10
    11
    Frank
    100
    12
    Tom
    50
    13
    Sue
    120
    14


    This array formula** entered in A11:

    =IFERROR(INDEX(A:A,SMALL(IF($B$1:$B$5<>"",ROW(B$1:B$5)),ROWS(A$11:A11))),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy across to B11 then down until you get a row full of blanks.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    03-05-2013
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: List all Matches between two columns

    I guess I should have used the exact cells because when I run yours it works but when I run mine it does not work.
    To be exact, the fields are A12: A74 that contain the names and AE12:AE74 that contain the numbers. Does that make a difference?

  6. #6
    Registered User
    Join Date
    03-05-2013
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: List all Matches between two columns

    I guess I should have used the exact cells because when I run yours it works but when I run mine it does not work.
    To be exact, the fields are A12: A74 that contain the names and AE12:AE74 that contain the numbers. Does that make a difference?

  7. #7
    Registered User
    Join Date
    03-05-2013
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: List all Matches between two columns

    After great direction, I figured it out.. Thanks for your help

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: List all Matches between two columns

    Good deal. Thanks for the feedback!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Summing the matches of one column only if its corresponding description matches a list
    By bishop-jese-erl in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 02-19-2015, 04:26 PM
  2. Search 5 colums for 3 nrs and show all matches
    By ricklou in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-25-2014, 08:46 AM
  3. Macro to compare two colums and copy rows if data matches.
    By avinash.aswani in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-11-2013, 03:03 AM
  4. Macro to match values in 2 colums ,write matches
    By ricklou in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-03-2012, 01:55 PM
  5. Array Function- To find matches in two colums
    By Heather.Taylor in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-30-2011, 04:59 PM
  6. Formula to compare 2 colums looking for exact matches
    By Raisedwell in forum Excel General
    Replies: 7
    Last Post: 08-25-2010, 04:57 PM
  7. mark matches between colums
    By legolas in forum Excel General
    Replies: 3
    Last Post: 02-22-2010, 06:38 AM

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