+ Reply to Thread
Results 1 to 7 of 7

I need to count cells if a different cell contains text

  1. #1
    Registered User
    Join Date
    11-25-2016
    Location
    Warrington
    MS-Off Ver
    2010
    Posts
    60

    Exclamation I need to count cells if a different cell contains text

    So...

    I'm new here this is my first post, so Hello everyone! hopefully you can help

    I have a spread sheet and I need to do the following:

    IF Cell D8 contains "Acc"
    then
    COUNT Cells E8:L8 IF they contain the word "Pass"

    The reason I am doing this is I work within a quality assurance department and I have Acc(accreditation) and BAU(Business as usual) checks, I need to calculate the % of Accreditation passes and the % of BAU passes but every time I try and do a formula I think will work it never happens.

    Please tell me someone can help?

  2. #2
    Forum Contributor
    Join Date
    10-30-2014
    Location
    England
    MS-Off Ver
    2007 / 365
    Posts
    279

    Re: I need to count cells if a different cell contains text

    =IF(D8="Acc",COUNTIF(E8:L8,"Pass"),"")

  3. #3
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: I need to count cells if a different cell contains text

    Also try as per below.
    ACC_AVK.JPG


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,343

    Re: I need to count cells if a different cell contains text

    @AVK: please post your formulae (and sample workbook if appropriate) NOT images.

  5. #5
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: I need to count cells if a different cell contains text

    Quote Originally Posted by JohnTopley View Post
    @AVK: please post your formulae (and sample workbook if appropriate) NOT images.
    Formula's as per below. Also attach sample file.
    In "A2" :
    Please Login or Register  to view this content.
    In "B2" :
    Please Login or Register  to view this content.
    In "C2" :
    =COUNTA(G2:N2)
    In "D2" :
    =IF($F2=$F2,COUNTIF($G2:$N2,D$1),"")
    In "E2" :
    =IF($F2=$F2,COUNTIF($G2:$N2,E$1),"")
    From "F2" to ""N2" Data record
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    11-25-2016
    Location
    Warrington
    MS-Off Ver
    2010
    Posts
    60

    Re: I need to count cells if a different cell contains text

    Brilliant all your ideas were really helpful using your input I have managed to solve the issue! thank you very much!

  7. #7
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: I need to count cells if a different cell contains text

    Dear Ahalliwell : If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

+ 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. Replies: 3
    Last Post: 08-16-2015, 07:03 PM
  2. [SOLVED] Count cells containing text - different cell text - one sum
    By oliver1712 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-10-2014, 08:02 PM
  3. Count cells containing unique text in cell A if cell B equals i.e. 1
    By killi3000 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-14-2014, 09:32 AM
  4. [SOLVED] Formula needed to only count total cells entered and not count adjacent text entered cells
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-07-2013, 06:22 PM
  5. [SOLVED] Count if the cells in a row contains the same text of another cell
    By Silvestre in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-20-2013, 06:46 PM
  6. [SOLVED] count cells that contain text but do not count cells containing only a formula
    By cprpacific in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-13-2013, 03:15 PM
  7. [SOLVED] Count cells that contain both numbers & text in same cell
    By cnjstewart in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-24-2012, 02:22 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