# Very Easy - Countif problem

#### khbutts

##### New Member
Trying to do this:

=COUNTIF(B4:B87, ">B\$122")

but it looks like it won't work with a reference as the criteria....anyone know of a different formula to accomplish what I am trying to do?

Maybe it will require the sumproduct formula?

Thanks!

### Excel Facts

Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Try:

Code:
``=COUNTIF(B4:B87, ">"&B\$122)``

Try this:
=SUMPRODUCT(--(B4:B87>B122))

Thanks, guys....Andrew Poulsom's suggestion worked perfectly....it's sad how bad Excel help blows, but if it was good, we wouldn't have Mr. Excel, I guess!

Replies
1
Views
49
Replies
3
Views
436
Replies
14
Views
442
Replies
20
Views
542
Replies
1
Views
389

1,219,911
Messages
6,150,927
Members
450,994
Latest member
MacOrch

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back