简体   繁体   中英

How to Importrange + CountIf on Google Sheets

I need to import information from another google sheet, COUNTIF that information under the criteria of one column saying "VIL" and another column saying "Pass"

I am using variations of the below: =countifs((IMPORTRANGE(E65, "Sheet1:A2,H200")):$E$2,$E$30," Passed ")

Where I am trying to have it display the count of boxes that have "Passed" from the other google sheet in E65. I am only getting error messages.

Any help on this would be appreciated!

run this first to connect your sheets:

=IMPORTRANGE(E65; "Sheet1!A2")

then try:

=ROWS(QUERY({IMPORTRANGE(E65; "Sheet1!A2:H200")}; 
 "where Col5 = 'Pass' and Col1 = 'VIL'"; ))

change Col1 to where the VIL is

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