View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips[_4_] Bob Phillips[_4_] is offline
external usenet poster
 
Posts: 834
Default simple countif formula

Try

=SUMPRODUCT(--(MOD(ROW(B1:B9),2)=1),--(B1:B9="H"))

HTH

Bob

"Brian" wrote in message
...
Column B in my spreadsheet consists of 10 rows with one letter in each
cell.

I would like a formula to count cells B1,B3,B5,B7 and B9 only if the value
in each of those cells is "H". I have tried a simple formula like this
=countif(B1,B3,B5,B7,B9,"H") but it does not work.

Thanks for your help with this formula.

--
Brian