+ Reply to Thread
Results 1 to 8 of 8

CountIf multiple conditions - need help please!

  1. #1
    Registered User
    Join Date
    07-17-2012
    Location
    Paris
    MS-Off Ver
    Excel 2010
    Posts
    18

    CountIf multiple conditions - need help please!

    Hello,

    Firstly, thanks for reading my message.

    I'm trying to calculate something using Countif but it doesn't seem to be working.

    Sheet 1. In column A, I have a list of countries, for example, Ireland, United Kingdom, Brazil etc..; . In columns B,C,D,E,F I have types of companies, for example, Marketing, Advertising, Transport etc...

    Sheet 2. I have the list of Countries descending in Column A3 and down and in B2,B3,B4 etc... I have the types of companies.

    So if in Sheet 2 A3 is Brazil, I would like to calculate in B3 the number of times the word Marketing is in the columns B,C,D,E,F of Sheet 1 in just Brazil.

    Any help would be greatly appreciated.

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: CountIf multiple conditions - need help please!

    Can you upload a sample document with how your data is setup?
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: CountIf multiple conditions - need help please!

    Not sure exactly how your data is laid out. Can you upload a small sheet showing sheet1 and sheet2 (Go Advanced>Manage Attachments)
    Sounds like SUMPRODUCT will work for you.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    07-17-2012
    Location
    Paris
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: CountIf multiple conditions - need help please!

    Copy of Excel Sample.xlsx

    Thanks in advance

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: CountIf multiple conditions - need help please!

    Based on the file you posted...

    In Sheet1 B3
    =SUMPRODUCT((Sheet2!$B$2:$B$3355=$A3)*(Sheet2!$C$2:$F$3355=B$2))
    Fill right/down.

  6. #6
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: CountIf multiple conditions - need help please!

    A different approach:

    B3 in Sheet1:

    Please Login or Register  to view this content.
    Drag down/across.

  7. #7
    Registered User
    Join Date
    07-17-2012
    Location
    Paris
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: CountIf multiple conditions - need help please!

    Thank you both for your help.

    I got it to work with Jonmo1 's formula.

    Thanks again Huge help

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: CountIf multiple conditions - need help please!

    You're welcome.

+ 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. Countif (multiple conditions)
    By Scott Rebman in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-12-2014, 02:37 PM
  2. Countif with multiple conditions
    By mubashir aziz in forum Excel General
    Replies: 3
    Last Post: 04-16-2009, 06:08 AM
  3. Countif multiple conditions
    By Carlos_82 in forum Excel General
    Replies: 9
    Last Post: 11-16-2008, 03:23 PM
  4. [SOLVED] Multiple conditions on a countif
    By Mr Mike in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  5. [SOLVED] Multiple conditions on a countif
    By Mr Mike in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-29-2005, 11:05 PM

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