View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Leo Heuser Leo Heuser is offline
external usenet poster
 
Posts: 266
Default Count in two columns

skrev i en meddelelse
oups.com...
I want to count non-blank cells in two columns, but count only one of
them if both are non-blank.
The following example would yield 4
4 t
3
5 y
u


One way:

=COUNTA(A2:B20)-SUMPRODUCT((A1:A20<"")*(B1:B20<""))


--
Best regards
Leo Heuser

Followup to newsgroup only please.