count if

A

alexsmalley

I have a time series of wave data comprising wave height, period,
direction etc. I need to count the occurences of waves of a certain
height and period.

For example I would like to count the occurence of waves with a height
of 0.5-1.0m and a period of 3-4 secs. I have tried using the countif
function and the count function with a nested if function but with no
luck.

Here is an example of the series of data I have

height period
(m) (s)
0.3 5.4
0.4 5.6
0.4 6
0.3 -
0.3 4.4
0.3 4
0.3 4
0.3 4.1
0.3 3.7
0.3 4.1
0.3 3.5
0.3 3.6
0.3 3.6
0.3 4.2
0.3 4.1
0.3 3.8
0.3 3.8
0.3 3.5
0.3 3.7
0.3 4
0.3 3.8
0.3 4
0.3 3.6
0.3 4.2
0.3 4.2
0.3 3.7
0.3 4
0.3 4.3
0.3 4.5
0.3 4.5
0.3 4.2


Any ideas would be greatly appreciated

Thanks

Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top