View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Jacob Skaria Jacob Skaria is offline
external usenet poster
 
Posts: 8,520
Default Counting how many numbers and letters appear in a particular row

Try
=SUM(COUNTIF(B9:AF9,{1,2,3,"V","H","CC"}))

If this post helps click Yes
---------------
Jacob Skaria


"dcb1" wrote:

Here is an example of what I am trying to do: In row 9 col B to col
AF I have a drop down list. A person can choose the number 1, 2, or
3, or choose the following letters: V, H, F, T, S, CC, BR, A or leave
the cell blank. Therefore, a person can select only one of those 12
choices for each cell in that row. Therefore, I want to count each
cell that contains either a 1, 2 , 3, V, H or CC. If there were 12
cells in that row, and each cell in order contained the following: 2,
V, S, F, S, 1, 3, Blank, T, H, F, Blank. My count would then be 5
because I only wanted to count the 2, V, 1, 3, H. Please give me a
couple of solutions using the functions Count, CountIF and Sum. Thanks!