+ Reply to Thread
Results 1 to 11 of 11

Count cells containing Yes if another cell says yes

  1. #1
    Registered User
    Join Date
    05-18-2016
    Location
    London
    MS-Off Ver
    Office 2010
    Posts
    16

    Count cells containing Yes if another cell says yes

    Hi

    I'm trying to count cells If(G4="yes" ) then count cells in J4:M4 containing yes

    Cells in G4 will say yes or no, cells in J4:M4 will only contain Yes

    I just can't seem to work out a formula to get it to count

    Grateful for any help you can give please

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Count cells containing Yes if another cell says yes

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    OR
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Either of these will count the number of "yes" in J4:M4 only if G4 = "yes" and will return nothing if G4 does not = "yes".

    Does that help at all?

    BSB

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Count cells containing Yes if another cell says yes

    Use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Registered User
    Join Date
    05-18-2016
    Location
    London
    MS-Off Ver
    Office 2010
    Posts
    16

    Re: Count cells containing Yes if another cell says yes

    Hi

    Either way works lovely, thanks for your quick response and help on this :-)

  5. #5
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Count cells containing Yes if another cell says yes

    No problem. Happy to help

    BSB

  6. #6
    Registered User
    Join Date
    05-18-2016
    Location
    London
    MS-Off Ver
    Office 2010
    Posts
    16

    Re: Count cells containing Yes if another cell says yes

    sorry to be a pain as this formula works great, I now have to put this in a table format also

    =IF(G4:G150="yes",COUNTIF(I4:L150,"yes"),"") the cell shows up as value? I'm not sure what to do

  7. #7
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Count cells containing Yes if another cell says yes

    Not sure what you're trying to accomplish with that. Could you explain a little? Perhaps a sample workbook showing expected results would be helpful.

    BSB

  8. #8
    Registered User
    Join Date
    05-18-2016
    Location
    London
    MS-Off Ver
    Office 2010
    Posts
    16

    Re: Count cells containing Yes if another cell says yes

    I've uploaded a test sheet for you.
    Attached Files Attached Files

  9. #9
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Count cells containing Yes if another cell says yes

    Try this in C55 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    BSB
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    05-18-2016
    Location
    London
    MS-Off Ver
    Office 2010
    Posts
    16

    Re: Count cells containing Yes if another cell says yes

    Hi BadlySpelledBuoy

    That's fantastic, I'd would never have got the correct way the way you've done this. I'm so grateful to you :-)

  11. #11
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Count cells containing Yes if another cell says yes

    Only easy when you know how!

    Glad I could help.

    BSB

+ 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: 2
    Last Post: 05-25-2016, 12:46 PM
  2. [SOLVED] How to Count Cells based on another cell
    By jebindavidson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-09-2015, 01:41 AM
  3. [SOLVED] Count Cells in a merged Cell
    By 23-zeros in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-04-2015, 01:41 AM
  4. [SOLVED] Count cells in row based on cell value, highlight row if wrong number or cells.
    By gutterball in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-11-2014, 04:00 PM
  5. 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
  6. How to count cells until first non-blank cell
    By FoxIII in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-31-2012, 06:56 AM
  7. Count one cell and then count 52 cells later...
    By ArnyVee in forum Excel General
    Replies: 6
    Last Post: 03-05-2009, 03:47 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