Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
jcrown
 
Posts: n/a
Default counting functions

Hello,
I am trying to get a function to calculate for me a group of numbers.
Example: I have in one column 38, 39, 37, 39. I want to know if there is a
function that I can use that will calculate out the amount of 39 & 37. (the
answer I am looking for would be 3). Please help. thanks, joe

  #2   Report Post  
Lewis Clark
 
Posts: n/a
Default

One way:

=SUMPRODUCT(--(A516:A519=37)) + SUMPRODUCT(--(A516:A519=39))

"jcrown" wrote in message
...
Hello,
I am trying to get a function to calculate for me a group of numbers.
Example: I have in one column 38, 39, 37, 39. I want to know if there is
a
function that I can use that will calculate out the amount of 39 & 37.
(the
answer I am looking for would be 3). Please help. thanks, joe



  #3   Report Post  
Max
 
Posts: n/a
Default

Assume the numbers are in col A, in A1 down

Put in say, B1: =SUMPRODUCT((A1:A100=37)+(A1:A100=39))

Adapt the ranges to suit, but note that entire col references (A:A, B:B,
etc) cannot be used in SUMPRODUCT
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"jcrown" wrote in message
...
Hello,
I am trying to get a function to calculate for me a group of numbers.
Example: I have in one column 38, 39, 37, 39. I want to know if there is

a
function that I can use that will calculate out the amount of 39 & 37.

(the
answer I am looking for would be 3). Please help. thanks, joe



  #4   Report Post  
bj
 
Posts: n/a
Default

Try
=countif(range,37)+countif(range,39)

"jcrown" wrote:

Hello,
I am trying to get a function to calculate for me a group of numbers.
Example: I have in one column 38, 39, 37, 39. I want to know if there is a
function that I can use that will calculate out the amount of 39 & 37. (the
answer I am looking for would be 3). Please help. thanks, joe

  #5   Report Post  
Bob Phillips
 
Posts: n/a
Default

or a bit simpler

=SUMPRODUCT(--(A1:A100={37,39}))

--
HTH

Bob Phillips

"Max" wrote in message
...
Assume the numbers are in col A, in A1 down

Put in say, B1: =SUMPRODUCT((A1:A100=37)+(A1:A100=39))

Adapt the ranges to suit, but note that entire col references (A:A, B:B,
etc) cannot be used in SUMPRODUCT
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"jcrown" wrote in message
...
Hello,
I am trying to get a function to calculate for me a group of numbers.
Example: I have in one column 38, 39, 37, 39. I want to know if there

is
a
function that I can use that will calculate out the amount of 39 & 37.

(the
answer I am looking for would be 3). Please help. thanks, joe







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

Some options...

=SUM(COUNTIF(Range,{37,39}))

=SUMPRODUCT(ISNUMBER(MATCH(Range,{37,39},0))+0)

If X2:Y2 houses the criterion numbers (i.e., 37, 39)...

=SUMPRODUCT(ISNUMBER(MATCH(Range,X2:Y2,0))+0)

jcrown wrote:
Hello,
I am trying to get a function to calculate for me a group of numbers.
Example: I have in one column 38, 39, 37, 39. I want to know if there is a
function that I can use that will calculate out the amount of 39 & 37. (the
answer I am looking for would be 3). Please help. thanks, joe

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
Counting Functions DLZ217 Excel Worksheet Functions 1 June 16th 05 10:13 PM
PASTE DOWN FUNCTIONS jackle Excel Worksheet Functions 0 May 25th 05 02:10 PM
3 questions about automated c++ com add-in worksheet functions gert Excel Worksheet Functions 0 March 10th 05 09:57 AM
counting functions Soz Excel Worksheet Functions 4 February 19th 05 10:01 AM
# of Functions per cell SUB-ZERO Excel Worksheet Functions 3 January 23rd 05 10:35 PM


All times are GMT +1. The time now is 12:56 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"