+ Reply to Thread
Results 1 to 8 of 8

Match between two lists

Hybrid View

  1. #1
    Registered User
    Join Date
    04-27-2009
    Location
    Portland, USA
    MS-Off Ver
    Excel 2007
    Posts
    16

    Match between two lists

    Hi,

    I've got column A with 200 rows of zipcodes of all my clients, and column B with 15 rows of zipcodes within in a sales district.

    How do I use excel to find out how many of my clients in column A are located in the sales district column B? In another words, count the instances where a zip code from column A matches with the 15 rows of zipcodes in column B.

    Thank You!!

    Frank

  2. #2
    Forum Contributor
    Join Date
    04-01-2009
    Location
    Irvine, CA
    MS-Off Ver
    Excel 2010
    Posts
    280

    Re: Match between two lists

    You could just use a COUNTIF formula

    =COUNTIF($A$1:$A$200,$B1)
    Assumes B1 to B15 is your matched zipcodes and C1 (copied down) to C15 is where this formula is.

  3. #3
    Registered User
    Join Date
    04-27-2009
    Location
    Portland, USA
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Match between two lists

    Chance2,

    Thank you for your response! Yes, your answer does allow me to arrive at my answer, however, it'll take 2 steps for me to arrive at a total because I will have to sum up all the "countif" matches when your formula is applied.

    Do you know of any other way where I can apply a formula and have the total appear in 1 step?

    Thank You!

    Frank

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Match between two lists

    =sum(index(countif(a1:a200, b1:b15), 0))
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    04-27-2009
    Location
    Portland, USA
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Match between two lists

    Quote Originally Posted by shg View Post
    =sum(index(countif(a1:a200, b1:b15), 0))
    BEAUTIFUL!!!! thank you!!

  6. #6
    Forum Contributor
    Join Date
    04-01-2009
    Location
    Irvine, CA
    MS-Off Ver
    Excel 2010
    Posts
    280

    Re: Match between two lists

    How about a CSE formula...

    =SUM(COUNTIF($A$1:$A200,$B$1:$B$15))
    Enter this formula into C1 and then use Ctrl+Shift+Enter to get the brackets.

  7. #7
    Registered User
    Join Date
    04-27-2009
    Location
    Portland, USA
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Match between two lists

    Quote Originally Posted by Chance2 View Post
    How about a CSE formula...

    =SUM(COUNTIF($A$1:$A200,$B$1:$B$15))
    Enter this formula into C1 and then use Ctrl+Shift+Enter to get the brackets.
    This worked too!! I need to really dig into the CSE formula. I've heard of this in passing many times, and don't it well enough to know how to apply it.

    Thanks!

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Match between two lists

    Would you please mark the thread as Solved?

    Click the Edit button on your first post in the thread

    Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes

+ 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