Sumif/countif

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

have a range of of 8000 rows organized by zip codes
have formula to calculate distance from inputed specific zipcode--- named
"distance"
have 12 columns that use vlookup to see if specific stores are within that
zipcode, if yes places an "X" else blank. (could change to "1")

while it seems simple enough to countif [if value is X countif <=distance]
but am getting incorrect results...the formula
countif(ae9:ae8000,"<distance",ag9:ag8000) where distance is entered
 
I prefer SUMPRODUCT, but I bet some COUNTIF would work.

SUMPRODUCT(--(ae9:ae8000<distance))

Where Distance is numeric.
 
Thank you , I'll give it a try

Barb Reinhardt said:
I prefer SUMPRODUCT, but I bet some COUNTIF would work.

SUMPRODUCT(--(ae9:ae8000<distance))

Where Distance is numeric.
--
HTH,
Barb Reinhardt



reno said:
have a range of of 8000 rows organized by zip codes
have formula to calculate distance from inputed specific zipcode--- named
"distance"
have 12 columns that use vlookup to see if specific stores are within that
zipcode, if yes places an "X" else blank. (could change to "1")

while it seems simple enough to countif [if value is X countif <=distance]
but am getting incorrect results...the formula
countif(ae9:ae8000,"<distance",ag9:ag8000) where distance is entered
 
Back
Top