+ Reply to Thread
Results 1 to 8 of 8

Countif with 2 matching columns needed

  1. #1
    Registered User
    Join Date
    12-20-2022
    Location
    Sweden
    MS-Off Ver
    365 for Mac
    Posts
    6

    Countif with 2 matching columns needed

    I have the formula to create a 'countif' for one particular word in a column and count but how do you include a second word from another column if they match?

    Please see attached that I am trying to achieve.
    Basically to show a top list of countries but also matching the word 'Distribution' that comes from another column.





    Bok1.xlsxBok1.xlsx

  2. #2
    Forum Contributor
    Join Date
    05-03-2021
    Location
    Nashville
    MS-Off Ver
    MS Office 365
    Posts
    184

    Re: Countif with 2 matching columns needed

    I just used a helper column, There is probably a smarter person than I that could do it in one column but for me,
    I just use a helper column =CONCAT(B2,D2) in E2 Copy down
    Then in in Cell B18 =COUNTIF($E$2:$E$15,CONCAT(A18,"Distribution")) and copy down.
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: Countif with 2 matching columns needed

    Maybe:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Diana Tanase


    If the solutions offered helped you to solve your problem, then mark the thread as SOLVED (thread tools in the top menu) and you can click on * to add reputation to those who helped you, as a way to say thank you !

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Countif with 2 matching columns needed

    something like this ?

    country kind Count of country percent
    Abu Dhabi, UAE Distribution
    2
    22.22%
    France Distribution
    2
    22.22%
    Spain Distribution
    1
    11.11%
    UK Distribution
    1
    11.11%
    USA Distribution
    3
    33.33%
    Grand Total
    9
    100.00%

  5. #5
    Registered User
    Join Date
    12-20-2022
    Location
    Sweden
    MS-Off Ver
    365 for Mac
    Posts
    6

    Re: Countif with 2 matching columns needed

    Yes, that is perfect Sandy!

    What was the formula you used?

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Countif with 2 matching columns needed

    this is Pivot only
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-20-2022
    Location
    Sweden
    MS-Off Ver
    365 for Mac
    Posts
    6

    Re: Countif with 2 matching columns needed

    Not sure on how to use pivot - fyi, I'm pulling the data from a seperate tab....

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Countif with 2 matching columns needed

    Quote Originally Posted by pomeroi View Post
    fyi, I'm pulling the data from a seperate tab....
    it doesn't matter which tab is a source of data

    Quote Originally Posted by pomeroi View Post
    Not sure on how to use pivot
    have you never used Pivot table ?

+ 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. UserForm Idea Needed For Matching Columns and Changing Headers
    By spacle in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-02-2020, 09:14 AM
  2. Replies: 2
    Last Post: 05-02-2015, 10:49 AM
  3. VBA help needed in matching Formulas
    By boogyman00123 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-25-2014, 08:49 AM
  4. Data matching formula needed!
    By Rohan in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-21-2014, 11:25 AM
  5. VBA macro needed to delete duplicate entries matching across multiple columns
    By chicolocal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-01-2012, 02:34 PM
  6. Help Needed: VBA Code Matching
    By starcrostangel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-29-2012, 07:32 PM
  7. Field matching formula help needed.
    By andysmith in forum Excel General
    Replies: 11
    Last Post: 05-13-2009, 07:58 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