View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Don Guillett Don Guillett is offline
external usenet poster
 
Posts: 10,124
Default COUNTIF to compare one range versus another range

try this NON-array entered formula
=SUMPRODUCT((d7:d18<b7:b18)*1)

--
Don Guillett
SalesAid Software

"Phil" wrote in message
ups.com...
Okay I know how array formulas work but I'm having trouble with the
following. I want to count the number of times each value in column D
is less than each corresponding value in column B. What I have is

{=COUNTIF(D2:D100, "<B2:B100")}

but it doesn't work (it always returns 0).

Any ideas?