简体   繁体   中英

How to count text based on other cell value in Google Sheets

How to count text in Google sheet based on other cell value, I want to count Column B if Column C indicates that Column B have Duplicate Value in Column E like bellow. How I can count text.

在此处输入图像描述

In F2 try

=query(B2:C, "Select count(B) where B <> '' pivot(C)")

or if you want to count unique values for 'Done' and 'Duplicate', in D3 try

=countunique(filter($B$2:$B, $C$2:$C=E$2))

and drag to the right for the duplicates count.

I hope that helps?

D3 cell:

=COUNTIF(C2:C, D2)

0


E3 cell:

=COUNTIF(C2:C, E2)

0


=ARRAYFORMULA(SUM(N(COUNTIFS(B2:B, B2:B, ROW(B2:B), "<="&ROW(B2:B))>1)))

0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM