+ Reply to Thread
Results 1 to 6 of 6

Count Unique Cell Once In Five Columns

  1. #1
    Registered User
    Join Date
    11-30-2019
    Location
    England
    MS-Off Ver
    2010
    Posts
    7

    Question Count Unique Cell Once In Five Columns

    Hi Guys,

    I have a question regarding an issue, that I cannot seem to find an answer to.

    I have 6 columns, where column A got the filenames i need to check, and report the issues on five different columns B:F based on their issues.

    Issues count are five and they are as below:
    • Ad
    • Black Screen
    • Floating Ad
    • No Ep
    • Title Ad

    Please find an example of the sheet in the attached, to better understand my question.

    The thing is, if an issue was mentioned for any file before, it must be counted once. Like the cell A2 or Show 1, it has the same issue in Column B and Column C, so the issue must be counted once not twice.

    Appreciate your fast help.

    Thanks.
    Attached Files Attached Files
    Last edited by eddgtx; 11-30-2019 at 08:29 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Count Unique Cell Once In Five Columns

    You did not explain what you want as your answer. One count per row, or one for the whole table. This gives a unique count per row:

    =SUMPRODUCT(1/COUNTIF(B2:F2,B2:F2&""))-1

    in G2, copied down.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    11-30-2019
    Location
    England
    MS-Off Ver
    2010
    Posts
    7

    Re: Count Unique Cell Once In Five Columns

    One for the whole table, with each issue having its own counter.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Count Unique Cell Once In Five Columns

    OK. With the issues in H2:H6, this array formula in I6:

    =SUM(--(MMULT(--($B$2:$F$19=H2),TRANSPOSE(COLUMN($B$2:$F$19)))>0))

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-30-2019
    Location
    England
    MS-Off Ver
    2010
    Posts
    7

    Re: Count Unique Cell Once In Five Columns

    Thanks it worked

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Count Unique Cell Once In Five Columns

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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. [SOLVED] Count unique from three columns
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 05-05-2019, 04:12 AM
  2. [SOLVED] Count unique date from two columns
    By TK2013 in forum Excel General
    Replies: 10
    Last Post: 08-16-2016, 04:26 AM
  3. [SOLVED] Count Unique Items in a Column Based on Unique Items in Two Other Columns
    By HangMan in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-31-2015, 04:48 PM
  4. [SOLVED] Count unique from three columns
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-28-2015, 09:08 PM
  5. [SOLVED] Sort and Count Unique List Across Multiple Columns - Student Count
    By BuntyMac in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 08-17-2014, 07:00 AM
  6. [SOLVED] Count unique value for each row in a number of Columns
    By rickyilas in forum Excel General
    Replies: 6
    Last Post: 05-23-2012, 09:14 PM
  7. Count values where unique in both columns
    By krabople in forum Excel General
    Replies: 2
    Last Post: 06-24-2009, 06:08 AM

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