View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dav Dav is offline
external usenet poster
 
Posts: 1
Default Formula in Excel to show greater than 50, but less than 250?


if you wish to stick with sumif and countif also check if the and <
should be = or <= for your logic

=sumif(a1:A100,"50")-sumif(a1:a100,"250")
=countif(a1:A100,"50")-countif(a1:a100,"250")

or use sumproduct((a1:A10050)*(a1:a100<250)) for the count

or use sumproduct((a1:A10050)*(a1:a100<250)*(a1:a100)) for the sum

regards

Dav


--
Dav
------------------------------------------------------------------------
Dav's Profile: http://www.excelforum.com/member.php...o&userid=27107
View this thread: http://www.excelforum.com/showthread...hreadid=560027