ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   COUNTIF (https://www.excelbanter.com/excel-discussion-misc-queries/24477-countif.html)

adamcal

COUNTIF
 
I want to count how many numbers in a range are less than a given value.
However, I don't want that given value to be hardcoded in the COUNTIF formula.

For example: I want this formula: =COUNTIF(P4:P1073,"=-0.0045")
to look something like: =COUNTIF(P4:P1073,"=V4")

However that second formula doesnt seem to work. Any ideas?


Bob Phillips

=COUNTIF(P4:P1073,"="&V4)


--

HTH

RP
(remove nothere from the email address if mailing direct)


"adamcal" wrote in message
...
I want to count how many numbers in a range are less than a given value.
However, I don't want that given value to be hardcoded in the COUNTIF

formula.

For example: I want this formula: =COUNTIF(P4:P1073,"=-0.0045")
to look something like: =COUNTIF(P4:P1073,"=V4")

However that second formula doesnt seem to work. Any ideas?





All times are GMT +1. The time now is 05:12 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com