+ Reply to Thread
Results 1 to 5 of 5

Countif a Cell Contains Specific Data - Return Data from Another Cell that Match Criteria

  1. #1
    Registered User
    Join Date
    05-01-2014
    Location
    ok
    MS-Off Ver
    Excel 2010
    Posts
    10

    Countif a Cell Contains Specific Data - Return Data from Another Cell that Match Criteria

    Example (lease counting).xlsx

    I need to count the number of cells that contain a certain value if another cell contains certain data.

    I first need to see if cells in a column contain certain data (the data is in a range)
    If a cell contains that data, then I need to see if another cell in that row equals a value (again in range). Then I need a count on how many cells have that value.

    Pretty sure this isn't a great explanation...please see the attached example.

    (the example is on limited data....my real life spreadsheet contains 18,000 rows)

    Thanks in advance for your help!!!

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Countif a Cell Contains Specific Data - Return Data from Another Cell that Match Crite

    Try this array formula. Enter with Ctrl + Shift + Enter keys together

    =SUM(IF($A$2:$A$25=F$2,IF(NOT(ISERROR(FIND($E3,$C$2:$C$25))),1,0)))
    Attached Files Attached Files

  3. #3
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: Countif a Cell Contains Specific Data - Return Data from Another Cell that Match Crite

    Non array solution.....
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-01-2014
    Location
    ok
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Countif a Cell Contains Specific Data - Return Data from Another Cell that Match Crite

    perfect - thanks so much!!!

  5. #5
    Registered User
    Join Date
    05-01-2014
    Location
    ok
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Countif a Cell Contains Specific Data - Return Data from Another Cell that Match Crite

    works great - thanks so much!!!

+ 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. Make COUNTIF function return blank cell if no data is there
    By jordan1214 in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 04-05-2015, 01:05 PM
  2. Replies: 3
    Last Post: 05-08-2013, 02:10 PM
  3. Replies: 0
    Last Post: 11-16-2012, 11:42 AM
  4. Match two criteria to return one cell data
    By rogersst33 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-16-2012, 09:32 AM
  5. Replies: 4
    Last Post: 06-27-2012, 03:04 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