+ Reply to Thread
Results 1 to 6 of 6

Countif Two Text Conditions

  1. #1
    Registered User
    Join Date
    09-05-2008
    Location
    RSA
    Posts
    39

    Countif Two Text Conditions

    Hi

    I know that countif questions are amongst the most common, but I have searched for an answer and still can't work it out.

    I have a column with a list of employers(A) and in col B they show if they get paid weekly or monthly.

    A B
    Alex M
    Alex M
    Alex W
    John W
    Paul M
    Paul M
    Paul M
    Paul W
    Sipho W

    I want a formula to count how many times Paul pays people monthly (M).
    I.e. 3.
    So it should look like this:
    A B C
    Person Monthly(M) Weekly (w)
    Alex 2 3
    John 0 1
    Paul 3 1
    Sipho 0 1

    I use an autofilter to remove the duplicate names.

    Any ideas what countif,dcounta, or array forumla I can use to do this?

    Regards

    Alex
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    Try:

    Please Login or Register  to view this content.
    Obviously, adjust the ranges to suit.

  3. #3
    Forum Contributor
    Join Date
    07-10-2007
    Location
    Portland, OR USA
    Posts
    135
    A pivot table would be very fast and powerful in a situation like this and will accomodate data changes within your spreadsheet. Attached is a quick & dirty table based on the data in your Paysheet report file.

    Your post example and the spreadsheet data didn't match so I assumed Calvin Bowles to be Paul. I also deleted a couple hundred rows of data because when I added the pivot table the size grew above upload limits.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-05-2008
    Location
    RSA
    Posts
    39
    Thanks Bigbas, I used your formula and it works fantastically!

  5. #5
    Registered User
    Join Date
    09-05-2008
    Location
    RSA
    Posts
    39
    Hi

    What does this mean "(--" in a function?

    Can you explain how the sumproduct formula is working and the logic behind it?

    Regards

    Alex

  6. #6
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Hi,
    this site will provide a nice explanation

    HTH

+ 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. Find row number of text string in a range of cells
    By Steven Fleck in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-06-2013, 08:38 PM
  2. countif nested conditions
    By soldsomebeef in forum Excel General
    Replies: 13
    Last Post: 08-30-2007, 09:11 AM
  3. Mutliplying text and number values Macro with mutliple conditions
    By antimel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-24-2007, 05:27 PM
  4. COUNTIF "Seeing" text - as in "*"
    By abrazee in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-12-2006, 03:23 PM
  5. Getting range of cells with specific text colour, then using in a COUNTIF formulae
    By cheekyflash in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-11-2006, 08:58 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