View Single Post
  #1   Report Post  
Pete
 
Posts: n/a
Default Counting Occurences

I was given the array formula below to count the occurences of "12" &
"11.5" in a column of numbers.

=SUM(COUNTIF(OFFSET(G$1,{0,13,25,37},,12),{12;11.5 }))

The number of teams competing can vary, the above example assumes 12
teams. If there is a dead heat, the points are shared so they get 11.5
each.

I have a cell AN1 that now holds the number of teams competing, so I
would like to change the {12;11.5} above to {$AN$1;$AN$1-0.5}, but keep
getting an error. If I can do this, then instead of changing all my
formulas, all I need to do is change the value in AN1.

Hope that makes sense

Pete