formula to count numbers of certain values

R

Ripple919

I created a workshett some time ago with the help of someone here in the news
group. The goal was to count employees who made between 8 and 9 dollars and
hour, between nine and 10 dollars an hour etc. The formula looked like this
=SUM((K$4:K$111>=8)*(K$4:K$111<9)) Then you hit some keys at the end to make
excel change it to look like this {=SUM((K$4:K$111>=8)*(K$4:K$111<9))} I
can't for the life of me remember what keys to hit so that it puts that
around it. With out it it just returns an error. Help please!
 
B

Bob Phillips

Ctrl-Shift-Enter, as it is an array formula.

But you could use

=SUMPRODUCT(--(K$4:K$111>=8).--(K$4:K$111<9))

which is not an array formula, so only needs Enter.

--

HTH

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

Aladin Akyurek

Control+shift+enter.

Alternatively, using the usual enter...

=COUNTIF(K$4:K$111,">=8")-COUNTIF(K$4:K$111,">=9")

=COUNTIF(K$4:K$111,">="&X4)-COUNTIF(K$4:K$111,">="&Y4)

with X4 set to 8 and Y4 to 9.
 
R

Ripple919

Thank you!!! It works again!

Bob Phillips said:
Ctrl-Shift-Enter, as it is an array formula.

But you could use

=SUMPRODUCT(--(K$4:K$111>=8).--(K$4:K$111<9))

which is not an array formula, so only needs Enter.

--

HTH

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

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

Top