Another Countif Formula

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi. I want to find the amount of numbers in a given set that are greater than
a specific cell. The hard part is, the range depends on a list of dates in
another column.
I have from a1:a200 a descending list of dates, starting from today. I want
a function that has the range start today (that's easy) and ends when the
date hits March 1st (for example). Then the formula would apply that range to
the column with the numbers. The reason the dates are not fixed is because
the data is automatically updated from the internet so March 1st (for
example) is always one cell lower.

Example:

Column A - 4/22/2005, 4/21/2005, etc.
Column B - 5, 7, 6, 8, etc.
Column C - The Number.

I want to find out how many numbers in Column B are greater than the cell in
Column C. The range depends on where March 1st (for example) ends in Column A.
Can this even be done?

Thanks so much for the help!
 
Hi
I think you'll need to use SUMPRODUCT() for this.
With your March 1st (for example) in D1, try:
=SUMPRODUCT((A2:A1000<TODAY())*(A2:A1000>D1)*(B2:B1000>C2))
When using SUMPRODUCT, you cannot use full column references and all
references must be the same size.
Hope this helps.
 
Andy, that worked great, thanks!

Could you also tell me the formula when the dates are not a concern.
I want to find the number of cells greater than a1 in the set from a2:a12.
Thanks!

Andy B said:
Hi
I think you'll need to use SUMPRODUCT() for this.
With your March 1st (for example) in D1, try:
=SUMPRODUCT((A2:A1000<TODAY())*(A2:A1000>D1)*(B2:B1000>C2))
When using SUMPRODUCT, you cannot use full column references and all
references must be the same size.
Hope this helps.
 
=COUNTIF(A2:A12,">"&A1)

--

HTH

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


Stephen said:
Andy, that worked great, thanks!

Could you also tell me the formula when the dates are not a concern.
I want to find the number of cells greater than a1 in the set from a2:a12.
Thanks!
 

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

Back
Top