+ Reply to Thread
Results 1 to 4 of 4

Formel to count if not blank in a array, if another cell is equal to reference cell

  1. #1
    Registered User
    Join Date
    10-15-2014
    Location
    Copenhagen
    MS-Off Ver
    201, 2013, 365
    Posts
    42

    Formel to count if not blank in a array, if another cell is equal to reference cell

    Hi

    Hope you can help.

    I would like like to count if there is any activity, marked in any of the cells.

    Thinking something like

    If cells in array I21:I26, is not blank, count and type in "D" equals the corresponding C9-C19, type, then count the number of cells not blank.
    In the attached sheet I9 = 3, J9 = 1 etc...

    Hope this makes sense, I tried with if and counta but the logic is buggy me today.

    So reaching out.

    / Kristian
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,082

    Re: Formel to count if not blank in a array, if another cell is equal to reference cell

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

    Note: you might need to change commas to semi-colons.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    10-15-2014
    Location
    Copenhagen
    MS-Off Ver
    201, 2013, 365
    Posts
    42

    Re: Formel to count if not blank in a array, if another cell is equal to reference cell

    Wanted it also not to show when zero result with a "0", so just did this "=IF(COUNTIFS($D$21:$D$26;C11;I$21:I$26;"<>")=0;"";(COUNTIFS($D$21:$D$26;C11;I$21:I$26;"<>")))"
    Might be a smarter way, but this works - Thank you TMS

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,082

    Re: Formel to count if not blank in a array, if another cell is equal to reference cell

    You're welcome. Thanks for the rep.

    You could use a Custom Format to hide zero values.

    See: https://support.microsoft.com/en-us/...5-a00e9e476b03




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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: 03-22-2021, 10:21 AM
  2. [SOLVED] Function to Get Array Count from Cell Reference and Repeat
    By desertshore in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-05-2015, 01:49 PM
  3. Replies: 5
    Last Post: 04-19-2014, 10:09 PM
  4. Replies: 3
    Last Post: 01-23-2014, 12:19 PM
  5. Replies: 1
    Last Post: 11-28-2013, 02:16 AM
  6. Replies: 2
    Last Post: 09-23-2013, 01:09 AM
  7. when is equal not equal - cell reference results to blank cell
    By riwiseuse in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-10-2009, 09:44 AM

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