+ Reply to Thread
Results 1 to 7 of 7

Counting multple criteria in multiple cells.

  1. #1
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Counting multple criteria in multiple cells.

    I have been a lurker for a while, but this is my first post .
    I have not a hope of explaining this without a pic, so I hope this helps.

    In the attachment at the bottom of the page I want to count the symbols in the blue selected area when they are apear into the cells in the red selected area. The catch is that I want to treat the each of the "RED", "BLUE", "GREEN" as a single colum so to speak and have a value "1" or "0" apear in the back circled area.

    Eg, For MrB there is nothing in the "RED" column (B7:D7) so that gives a value of zero in cell cell "P7". In the "BLUE" column (E7:G7) there is a circle which will give a value of "1" in cell "Q7". In the "GREEN" column (H7:I7) there is a double circle and a square symbol and that will return a value of "1".



    I hope this makes sense. I have tried to do this with counta, but that will also count cells when a space bar is used and that makes it difficult to make sure that I am getting the right info. I also tried VLOOKUP and COUTIF but this is beyond my level. I hope someone can help.Cherrs.
    Attached Images Attached Images
    Last edited by JapanDave; 05-12-2009 at 01:34 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Counting multple criteria in multiple cells.

    can you uplaod an workbook example?

  3. #3
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Counting multple criteria in multiple cells.

    Quote Originally Posted by zbor View Post
    can you uplaod an workbook example?
    I will try, give me a few hours.

  4. #4
    Registered User
    Join Date
    02-10-2008
    Posts
    13

    Re: Counting multple criteria in multiple cells.

    Hi NipponDave,

    With regards to your pic, in cell P 6, you could put the following formula:

    =IF(AND(ISBLANK(B6)=TRUE,ISBLANK(C6)=TRUE,ISBLANK(D6)=TRUE)=TRUE,0,1)

  5. #5
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Counting multple criteria in multiple cells.

    Quote Originally Posted by Clark View Post
    Hi NipponDave,

    With regards to your pic, in cell P 6, you could put the following formula:

    =IF(AND(ISBLANK(B6)=TRUE,ISBLANK(C6)=TRUE,ISBLANK(D6)=TRUE)=TRUE,0,1)
    Thanks so much for formula Clark! I have made a formula similar to this one, however the problem I encountered was that when people(My staff use this form) select the symbol and press the space bar these formulas register the cell as text. There is no way to garrentee that someone won't use the space bar so I was looking for a formula that actually counted the symbols.

    Zbor, sorry being so slow but I was snowed with work.

    Here is the sample book. BTW I am on 2007, but I uploaded the book in 2003 format.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,014

    Re: Counting multple criteria in multiple cells.

    You can use trim & len function to solve it. see attached.

    Hope this helps,

    windknife
    Attached Files Attached Files

  7. #7
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Counting multple criteria in multiple cells.

    Quote Originally Posted by windknife View Post
    You can use trim & len function to solve it. see attached.

    Hope this helps,

    windknife
    Thanks so much, that is what I was looking for!

    And thanks to everyone else who helped out.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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