Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3634752
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:49:06+00:00 2026-05-19T00:49:06+00:00

I have this issue: here is my table ColA ColB te Y te Y

  • 0

I have this issue: here is my table

ColA  ColB      
te     Y
te     Y
alo    
te     Y
te     
bb     Y
aa     Y

I want to count how many records in ColA, which has value “Y” in Col B. and if two duplicate record in A that also have same Y then just count one. (in this case, te record we just count one time)
Many thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T00:49:07+00:00Added an answer on May 19, 2026 at 12:49 am

    I am not sure is there is a simple formula to achieve what you want, though it may be possible with an array formula of some kind.

    The simplest way in my view would be:

    1. Select your data
    2. Select Data > Filter > Advanced Filter
    3. Check the Unique Records Only checkbox
    4. Select a range you would like to copy the results to in Copy to
    5. Now hit OK
    6. Now use =COUNTIF with criteria =Y to get number of unique records that also have Y

    Edit – Array Formula Solution

    I did some googling and found a site that shows how to return unique rows using an array formula. See here.

    We can use that to return all unique rows in your rows in columns A and B, including rows where column B is blank. (I assume your data is in cell A2:B8)

    =SUM(IF(((MATCH(A2:A8&B2:B8,A2:A8&B2:B8,0)) >=(ROW(A2:A8)-(MIN(ROW(A2:A8))-1)))=TRUE,1,0))
    

    Once we know the total number of unique rows, if we subtract from that number the cells in column B that are blank (i.e. not equal to Y) then this should give us the total number of unique rows that have a Y in column B. We can now update the above formula as follows:

    =SUM(IF(((MATCH(A2:A8&B2:B8,A2:A8&B2:B8,0)) >=(ROW(A2:A8)-(MIN(ROW(A2:A8))-1)))=TRUE,1,0)) - COUNTIF(B2:B8,"<>Y")
    

    Type this formula in C1 and then press CTRL + SHIFT + ENTER as this is an array formula.

    I tested this and it seemed to work ok.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having some weird issue here. I have a database table which has
Has anyone come across this issue? Seems MS have broken it with their own
I have this html... <select id=View name=View> <option value=1>With issue covers</option> <option value=0>No issue
I have searched google but it seems no one has come across this issue.
I do not currently have this issue , but you never know, and thought
I have this strange issue with my web app. You see, I'm using jQuery
Continuing my problem from yesterday, the Silverlight datagrid I have from this issue is
This issue is driving me mad. I have several tables defined, and CRUD stored
Ok so I've spent a couple hours trying to resolve this issue and have
This would be my issue I have a drop down that's not displaying fully.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.