+ Reply to Thread
Results 1 to 8 of 8

count with multiple criteria and a word search in one column

  1. #1
    Registered User
    Join Date
    09-13-2012
    Location
    nyc, ny
    MS-Off Ver
    Excel 2007
    Posts
    3

    count with multiple criteria and a word search in one column

    Hi. I am trying to do a count with multiple criteria. One criteria is the year, another is the text lapse in a cell (the column is either client or lapse" and the last criteria is to count the number of times the text 5PR shows up in a column, although it may not be the only text in any of the cells.

    I have tried
    =COUNTIFS($Z$2:$Z$1876,$C$1929,$AA$2:$AA$1876,"lapse",$I$3:$I$1876,E1928)
    If I do this with only the =COUNTIFS($Z$2:$Z$1876,$C$1929,$AA$2:$AA$1876,"lapse") the formula works, it is when I add the last piece, which is search to match the text in F1928 in the column of I.

    I have also tried =SUMPRODUCT(--($Z$2:$Z$1876=$C$1929),--($AA$2:$AA$1876="lapse"),--(COUNTIF($I$3:$I$1876,"*5PR*"))) and again if I remove the last criteria it works. Lastly, I used =SUMPRODUCT(($Z$2:$Z$1876=$C$1929)*($AA$2:$AA$1876="lapse")*(COUNTIF($I$3:$I$1876,$E$1928))) this did return a value, but it is incorrect....

    Help!!!

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: count with multiple criteria and a word search in one column

    Can you post the sheet (or a small part of it)?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

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

    Re: count with multiple criteria and a word search in one column

    Try

    =COUNTIFS($Z$2:$Z$1876,$C$1929,$AA$2:$AA$1876,"lapse",$I$2:$I$1876,"*"&E1928&"*")

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: count with multiple criteria and a word search in one column

    Oh pooh Jonmo1... Rep to you from me if that's the answer...

  5. #5
    Registered User
    Join Date
    09-13-2012
    Location
    nyc, ny
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: count with multiple criteria and a word search in one column

    Hi Glenn

    Sure... Below is a small sample

    Old Expiration Old pkg Contract yr client/lapse Client Years

    4/30/2011 1PR, 5PR 2011 lapse 1
    4/30/2011 1PR, 5PR, 7PR 2011 client 3
    5/31/2011 GFS, UNL 2011 lapse 2
    5/31/2011 1PR, 5PR, 7PR 2011 client 11
    5/31/2011 UNL 2011 client 6
    5/31/2011 1PR, 5PR, 7PR 2011 client 12
    4/30/2012 5PR, 7PR 2012 client 8
    4/30/2012 2PR, 5PR, 7PR 2012 client 10
    4/30/2012 1PR, 5PR, 7PR 2012 client 8
    4/30/2012 5PR, 7PR, TRD 2012 client 7
    4/30/2012 5PR, 6PR 2012 lapse 10
    4/30/2012 1PR, 5PR 2012 client 5

  6. #6
    Registered User
    Join Date
    09-13-2012
    Location
    nyc, ny
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: count with multiple criteria and a word search in one column

    Thank you. That seems to work.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: count with multiple criteria and a word search in one column

    It's hard, from your post, to see what is in what cells (actually, it's impossible ). Can you post a spread sheet (Go advanced, Manage attachments & select the file). But check out Jonmo1's solution - does that solve your problem?

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

    Re: count with multiple criteria and a word search in one column

    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. Multiple Criteria search and COUNT FOR TEXT across multiple sheet ARRAY's
    By akaushik25 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-25-2014, 08:58 AM
  2. [SOLVED] Count of Multiple criteria with single word match
    By sswapnill in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-27-2012, 02:22 AM
  3. Multiple criteria search and count
    By txmedic712 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-20-2010, 01:25 PM
  4. Row count, for multiple criteria, with string search.
    By AshJolie in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-20-2009, 02:38 PM
  5. search and count based on multiple criteria
    By themax16 in forum Excel General
    Replies: 1
    Last Post: 04-23-2008, 04:47 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