+ Reply to Thread
Results 1 to 2 of 2

CountIF(s) on Merged Cells

  1. #1
    Forum Contributor
    Join Date
    02-19-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    110

    CountIF(s) on Merged Cells

    Hello,

    I will have one of the letters below inputted to a merged cell M8 to P8 - but obviously when I click on them, they are represented by column 'M' as that's the first column I captured when I merged cells.

    R
    R/A
    R/C
    R/I
    R/A/C
    R/A/I
    R/C/I
    R/A/C/I


    I'm trying to write a formula in cell M6 to say: Count only the words used above within the range of M8:M140

    How can I write that? I tried something like: =COUNTIFS($M$8:$M$140,"R",$M$8:$M$140,"R/A"...{goes on to cover all 8 words mentioned above}) and it didn't work.

    Thank you in advance.
    Last edited by clprdctn; 09-24-2014 at 08:37 AM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: CountIF(s) on Merged Cells

    =SUM(COUNTIF(M1:M140,{"r","r/a","r/c","r/i","r/a/c","r/a/i","r/c/i","r/a/c/i"}))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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. Macro adjustment needed: merged cells & countif match
    By djvent in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-23-2014, 04:03 PM
  2. Replies: 1
    Last Post: 06-28-2012, 11:53 AM
  3. Countif with Merged Cells
    By Alexander_Read in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-08-2008, 07:29 AM
  4. how do i link merged cells to a merged cell in another worksheet.
    By ibbm in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-27-2006, 06:45 PM
  5. [SOLVED] Errors in COUNT, COUNTA, COUNTIF when counting merged cells
    By Outback in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-07-2006, 12:35 PM

Tags for this Thread

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