Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ripple919
 
Posts: n/a
Default formula to count numbers of certain values

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!
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

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)


"Ripple919" wrote in message
...
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!



  #3   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

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.

Ripple919 wrote:
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!

  #4   Report Post  
Ripple919
 
Posts: n/a
Default

Thank you!!! It works again!

"Bob Phillips" wrote:

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)


"Ripple919" wrote in message
...
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!




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count number of Unique values Alan Excel Worksheet Functions 4 January 6th 05 08:05 PM
Displaying numbers used in formula SeeFar Excel Discussion (Misc queries) 2 December 28th 04 07:05 PM
How do I create formula to count numbers in a range of cells? EmilyJ Excel Worksheet Functions 1 December 8th 04 05:24 AM
manipulating formula values Ramy Excel Worksheet Functions 4 November 19th 04 04:54 PM
Count If Formula Mimi Excel Worksheet Functions 0 November 5th 04 11:55 AM


All times are GMT +1. The time now is 05:41 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"