You are viewing a single comment's thread from:RE: 이제 다운보팅으로 0을 맞추기 시작하는군요View the full contextView the direct parenteversloth (62)in #totd • 6 years ago 그나저나 밤에 좀 일찍 자야지 생각만 하면서 안 자네요
구글 스프레드시트 함수나 좀 더 조사해보고 자야지..
query() 좀 편하게 쓰고 싶은데...
count query 의 헤더를 날리기 위해 sumif 함수 사용. condition은 ">0". index를 사용할 경우 결과가 없을 때 error handling 을 해줘야 함
쿼리 조건은 Col1, Col2 이런 이름으로 접근. 결과 순서를 바꾸거나 하는 식으로 활용 가능
쿼리 매뉴얼 https://developers.google.com/chart/interactive/docs/querylanguage#scalar_functions
=IF(OR(sumif(query(importrange(C$1,CONCATENATE(C$2,":",C$3)), concatenate("select count(Col1) where Col1 = ",mid($A8, 3, 1)," and Col2 = ",right($A8, 2)), ">0")>0, COUNTIFS(importrange(C$1,CONCATENATE(C$4,":",C$4)),"*"&$B8&"*")>0)),,"★")