View Single Post
  #5   Report Post  
Mike
 
Posts: n/a
Default

This method worked out, thanks to all.

Next step. Now that this is working I also want sort by a year.

So if I sort all the items in this range, then I want to sort by a year?

Do I use a Count(If + the above function?

Thanks.

"Peo Sjoblom" wrote:

Try

=COUNTIF('Crash data'!$K$2:$K$462,"="&C5)-COUNTIF('Crash
data'!$K$2:$K$462,""&C6)

Regards,

Peo Sjoblom


"Mike" wrote:

Ok here is my code.

=COUNTIF('Crash data'!$K$2:$K$462,"=12.33")-COUNTIF('Crash
data'!$K$2:$K$462,"12.43")

This works fine. Problem that I am having is when I change the 12.33 (for
example) to a cell reference (say C5) and I change 12.43 to a reference it
does not work.

Any ideas?

Thanks.