Counting Specific criteria using "or"

In a spreadsheet I need to count the number of times the value 7 or 8 appear in a defined range. The formula I use for counting the value 6 specifically is:

=COUNTIFS(E7:E249,"=6")

I’m sure the solution is simple, but so am I.

Thanks

=COUNTIF(E7:E249,7)+COUNTIF(E7:E249,8)
A pivot table can display the frequency of all values existing in E7:E249.

Thanks Villeroy, that’s perfect. Never heard of a pivot table before.

  • Put a column header in E6, say “Numbers”
  • Select E6:E249
  • Data>Pilot>Create…
  • Create from selection
  • Drag “Numbers” to row fields and to data fields.
  • Change Sum(Numbers) to Count(Numbers)
  • Confirm dialog.
1 Like