+ Reply to Thread
Results 1 to 3 of 3

Count cells depending on multiple factors

  1. #1
    Registered User
    Join Date
    04-14-2014
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    2

    Count cells depending on multiple factors

    2014-04-15_0221.png

    As seen to the picture above, I have 6 columns with data;
    - the first two displaying the name
    - the third column displaying the gender
    - the fourth column displaying the e-mail adress
    - the last column displaying the size of shirt

    The two last columns "mannen" and "vrouwen"; M or V (respectively male and female in dutch), are supposed to display how many of each shirtsize there are, but males and females separated.

    Currently, the formula i use and thought that was working for the left (mannen) is:

    ="XS: "&IF($C$4:$C$8="M";COUNTIF($F$4:$F$8;"XS");0)

    Only this formula displays all values, even of the sizes that are not male.

    I've tried multiple other things that didn't work, I'm not an absolute Excel pro either, who can help me with this?

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Count cells depending on multiple factors

    Hi coco and welcome to the forum,

    This is a perfect place for a Pivot Table. I've created some sample data and a Pivot to show what I mean.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    04-14-2014
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Count cells depending on multiple factors

    MarvinP, thank you very much! this is indeed the perfect solution!

+ 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. Ranking depending on several factors
    By vicentiu in forum Excel General
    Replies: 3
    Last Post: 12-07-2012, 09:28 AM
  2. [SOLVED] Sum of values depending on two factors
    By Joe O Ceadaigh in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-27-2012, 02:36 PM
  3. Replies: 1
    Last Post: 10-28-2011, 01:39 PM
  4. Replies: 9
    Last Post: 11-04-2009, 08:21 AM
  5. Replies: 6
    Last Post: 07-31-2009, 10: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