Sumproduct??

  • Thread starter Thread starter Sandy
  • Start date Start date
S

Sandy

Hi
I have a range A1:S1 with a series of integers and a range A2:S2 with
another series of integers. How can I count all the instances where the
equivalent cell in the second range is equal to two less than that in the
first range.

eg
6 4 9 7 8 etc
4 3 7 8 7 etc

the above would count 2 - Columns A and C

Thanks in advance
Sandy
 
Try:

=SUMPRODUCT(--(A2:S2=(A1:S1-2)))

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

(e-mail address removed)
Replace @mailinator.com with @tiscali.co.uk
 
Thanks guys,

Sandy
In Edinburgh, the current capital of Scotland
and the crowning glory of festivals :-)
 
Back
Top