Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have one column that contains budgets and another that contains actuals. How can I get a count in a cell above the actuals column that will tell me how many of them are under their budgets? Example: If 10 out of 100 of them are under budget, what formula would I write that would give me a total of "10"?

share|improve this question

Try this:

=SUMPRODUCT(--(B2:B101<A2:A101))

Where your actuals are in B2:B101 and the budgets are in A2:A101.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .