View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
gitcypher[_25_] gitcypher[_25_] is offline
external usenet poster
 
Posts: 1
Default Array Formula in VBA

If you want to count the number of cells that meet the 100 to 20
criteria,
=COUNTIF(A1:G1,"=100")-COUNTIF(A1:G1,"200")

If you want to add the numbers,
=SUMIF(A1:G1,"=100")-SUMIF(A1:G1,"200")

-gitcyphe

--
Message posted from http://www.ExcelForum.com