+ Reply to Thread
Results 1 to 3 of 3

Counting Text in one column that matches another column

  1. #1
    Registered User
    Join Date
    09-19-2012
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    6

    Post Counting Text in one column that matches another column

    Hello,

    I was trying to accomplish the following task and could use some support with the formula for it in Excel. As you can see below, I need to count the cities that appear in column A that match column B as a total number. I will have other words in column A that I do not want counted. I have been trying to use the CountIFS and SUMIF Functions and haven't had any success.

    Column A
    Las Vegas
    San Diego
    Las Vegas
    Orlando
    Phoenix
    Phoenix
    Florida

    Column B
    Las Vegas
    San Diego
    Orlando
    Phoenix

    Total = 6



    I would really appreciate the help!

    Thank you

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,812

    Re: Counting Text in one column that matches another column

    You can use this array* formula:

    =SUM(COUNTIF(A1:A7,B1:B4))

    adjust the ranges to suit.

    *An array formula must be confirmed using the key combination of Ctrl-Shift-Enter (CSE) rather than the usual <Enter>

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    09-19-2012
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Counting Text in one column that matches another column

    HI Pete,

    Thanks so much for the advice. This works great. I came across this type of formula before and couldn't get it to work right. But, you helped. Thanks again!

+ 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