Hi Carolyn!
With the populations in column A
One way using COUNTIF:
=COUNTIF(A1:A10,">=800000")-COUNTIF(A1:A10,">1000000")
Or another using implicit if statement structures in SUMPRODUCT
=SUMPRODUCT((A1:A10>=800000)*(A1:A10<=1000000))
Or you may prefer the explicit IF function approach that uses SUM
=SUM(IF(A1:A10>=800000,1,0)*IF(A1:A10<=1000000,1,0))
Entered as an array by pressing and holding down Ctrl + Shift and then
pressing Enter.
Appears as:
{=SUM(IF(A1:A10>=800000,1,0)*IF(A1:A10<=1000000,1,0))}
--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
(e-mail address removed)
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.
Carolyn said:
How can I write a function statement to calculate a range of
informatin. IE., a list of populations for cities, and I need to know
how many cities have a population between 800,000 and 1,000,000?