Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
JonZ
 
Posts: n/a
Default Basic: Looking up Data in Range

This is probably basic stuff.

I presently use COUNTIF to count the number of instances of the letter
"x" or "o" in a column:
=COUNTIF(B:B,"x")

I need to find totals of one condition in a column when another column
has another condition.

In the following data range, for example, I might need to find the
number of times "x" appears in column B during a particular month, like
February, or during a certain time of day.

A B C
January 4 x morning
January 4 o afternoon
January 12 o morning
January 15 o morning
January 15 x afternoon
February 2 x morning
February 2 x morning
Ferbrary 4 o morning
February 10 x morning

I might also like to count, for example, the number of times "x"
apppears in the morning in February.

Please write out examples. My date format is MM-DD-YY.

  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

=SUMPRODUCT((TEXT(A1:A9,"mmm")="Jan")*(B1:B9="x"))

Count all instance of "x" where month = January.

HTH
Jason
Atlanta, GA

-----Original Message-----
This is probably basic stuff.

I presently use COUNTIF to count the number of instances

of the letter
"x" or "o" in a column:
=COUNTIF(B:B,"x")

I need to find totals of one condition in a column when

another column
has another condition.

In the following data range, for example, I might need

to find the
number of times "x" appears in column B during a

particular month, like
February, or during a certain time of day.

A B C
January 4 x morning
January 4 o afternoon
January 12 o morning
January 15 o morning
January 15 x afternoon
February 2 x morning
February 2 x morning
Ferbrary 4 o morning
February 10 x morning

I might also like to count, for example, the number of

times "x"
apppears in the morning in February.

Please write out examples. My date format is MM-DD-YY.

.

  #3   Report Post  
JonZ
 
Posts: n/a
Default

According to my copy of EXCEL 2000, SUMPRODUCT is a math function and
returns sums of multiplications

SUMPRODUCT
Multiplies corresponding components in the given arrays, and returns the
sum of those products.

It would not work in doing what I want to do. You must have
misunderstood my question.




Jason Morin wrote:

=SUMPRODUCT((TEXT(A1:A9,"mmm")="Jan")*(B1:B9="x"))

Count all instance of "x" where month = January.

HTH
Jason
Atlanta, GA

-----Original Message-----
This is probably basic stuff.

I presently use COUNTIF to count the number of instances

of the letter
"x" or "o" in a column:
=COUNTIF(B:B,"x")

I need to find totals of one condition in a column when

another column
has another condition.

In the following data range, for example, I might need

to find the
number of times "x" appears in column B during a

particular month, like
February, or during a certain time of day.

A B C
January 4 x morning
January 4 o afternoon
January 12 o morning
January 15 o morning
January 15 x afternoon
February 2 x morning
February 2 x morning
Ferbrary 4 o morning
February 10 x morning

I might also like to count, for example, the number of

times "x"
apppears in the morning in February.

Please write out examples. My date format is MM-DD-YY.

.


  #4   Report Post  
Jason Morin
 
Posts: n/a
Default

No, I didn't misread your question. SUMPRODUCT is a
powerful alternative to array formulas as far as summing
and counting when multiple criterias are needed. But you
are right...it is simply a math function. To understand
what I'm talking about, read:

http://www.xldynamic.com/source/xld.SUMPRODUCT.html

Jason

-----Original Message-----
According to my copy of EXCEL 2000, SUMPRODUCT is a math

function and
returns sums of multiplications

SUMPRODUCT
Multiplies corresponding components in the given arrays,

and returns the
sum of those products.

It would not work in doing what I want to do. You must

have
misunderstood my question.




Jason Morin wrote:

=SUMPRODUCT((TEXT(A1:A9,"mmm")="Jan")*(B1:B9="x"))

Count all instance of "x" where month = January.

HTH
Jason
Atlanta, GA

-----Original Message-----
This is probably basic stuff.

I presently use COUNTIF to count the number of

instances
of the letter
"x" or "o" in a column:
=COUNTIF(B:B,"x")

I need to find totals of one condition in a column when

another column
has another condition.

In the following data range, for example, I might need

to find the
number of times "x" appears in column B during a

particular month, like
February, or during a certain time of day.

A B C
January 4 x morning
January 4 o afternoon
January 12 o morning
January 15 o morning
January 15 x afternoon
February 2 x morning
February 2 x morning
Ferbrary 4 o morning
February 10 x morning

I might also like to count, for example, the number of

times "x"
apppears in the morning in February.

Please write out examples. My date format is MM-DD-YY.

.


  #5   Report Post  
JonZ
 
Posts: n/a
Default

That explains it.
I need to figure out how to extract the month from the date field. My
date field contains a day, month and year. When I click on a date field
the format is: 1/12/2004.

Jason Morin wrote:

No, I didn't misread your question. SUMPRODUCT is a
powerful alternative to array formulas as far as summing
and counting when multiple criterias are needed. But you
are right...it is simply a math function. To understand
what I'm talking about, read:

http://www.xldynamic.com/source/xld.SUMPRODUCT.html

Jason

-----Original Message-----
According to my copy of EXCEL 2000, SUMPRODUCT is a math

function and
returns sums of multiplications

SUMPRODUCT
Multiplies corresponding components in the given arrays,

and returns the
sum of those products.

It would not work in doing what I want to do. You must

have
misunderstood my question.




Jason Morin wrote:

=SUMPRODUCT((TEXT(A1:A9,"mmm")="Jan")*(B1:B9="x"))

Count all instance of "x" where month = January.

HTH
Jason
Atlanta, GA

-----Original Message-----
This is probably basic stuff.

I presently use COUNTIF to count the number of

instances
of the letter
"x" or "o" in a column:
=COUNTIF(B:B,"x")

I need to find totals of one condition in a column when
another column
has another condition.

In the following data range, for example, I might need
to find the
number of times "x" appears in column B during a
particular month, like
February, or during a certain time of day.

A B C
January 4 x morning
January 4 o afternoon
January 12 o morning
January 15 o morning
January 15 x afternoon
February 2 x morning
February 2 x morning
Ferbrary 4 o morning
February 10 x morning

I might also like to count, for example, the number of
times "x"
apppears in the morning in February.

Please write out examples. My date format is MM-DD-YY.

.





  #6   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

=SUMPRODUCT(--(MONTH(A2:A200)=1),--(B2:B200="x"),--(C2:C200="morning"))


Regards,

Peo Sjoblom

"JonZ" wrote:

This is probably basic stuff.

I presently use COUNTIF to count the number of instances of the letter
"x" or "o" in a column:
=COUNTIF(B:B,"x")

I need to find totals of one condition in a column when another column
has another condition.

In the following data range, for example, I might need to find the
number of times "x" appears in column B during a particular month, like
February, or during a certain time of day.

A B C
January 4 x morning
January 4 o afternoon
January 12 o morning
January 15 o morning
January 15 x afternoon
February 2 x morning
February 2 x morning
Ferbrary 4 o morning
February 10 x morning

I might also like to count, for example, the number of times "x"
apppears in the morning in February.

Please write out examples. My date format is MM-DD-YY.


  #7   Report Post  
JonZ
 
Posts: n/a
Default

According to my copy of EXCEL 2000, SUMPRODUCT is a math function and returns
sums of multiplications

SUMPRODUCT
Multiplies corresponding components in the given arrays, and returns the sum
of those products.

It would not work in doing what I want to do. You must have misunderstood my
question.



Peo Sjoblom wrote:

=SUMPRODUCT(--(MONTH(A2:A200)=1),--(B2:B200="x"),--(C2:C200="morning"))

Regards,

Peo Sjoblom

"JonZ" wrote:

This is probably basic stuff.

I presently use COUNTIF to count the number of instances of the letter
"x" or "o" in a column:
=COUNTIF(B:B,"x")

I need to find totals of one condition in a column when another column
has another condition.

In the following data range, for example, I might need to find the
number of times "x" appears in column B during a particular month, like
February, or during a certain time of day.

A B C
January 4 x morning
January 4 o afternoon
January 12 o morning
January 15 o morning
January 15 x afternoon
February 2 x morning
February 2 x morning
Ferbrary 4 o morning
February 10 x morning

I might also like to count, for example, the number of times "x"
apppears in the morning in February.

Please write out examples. My date format is MM-DD-YY.



  #8   Report Post  
Dave Peterson
 
Posts: n/a
Default

Just wondering if you tried the suggestions before posting back that it wouldn't
work???

JonZ wrote:

According to my copy of EXCEL 2000, SUMPRODUCT is a math function and returns
sums of multiplications

SUMPRODUCT
Multiplies corresponding components in the given arrays, and returns the sum
of those products.

It would not work in doing what I want to do. You must have misunderstood my
question.



Peo Sjoblom wrote:

=SUMPRODUCT(--(MONTH(A2:A200)=1),--(B2:B200="x"),--(C2:C200="morning"))

Regards,

Peo Sjoblom

"JonZ" wrote:

This is probably basic stuff.

I presently use COUNTIF to count the number of instances of the letter
"x" or "o" in a column:
=COUNTIF(B:B,"x")

I need to find totals of one condition in a column when another column
has another condition.

In the following data range, for example, I might need to find the
number of times "x" appears in column B during a particular month, like
February, or during a certain time of day.

A B C
January 4 x morning
January 4 o afternoon
January 12 o morning
January 15 o morning
January 15 x afternoon
February 2 x morning
February 2 x morning
Ferbrary 4 o morning
February 10 x morning

I might also like to count, for example, the number of times "x"
apppears in the morning in February.

Please write out examples. My date format is MM-DD-YY.



--

Dave Peterson
  #9   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

So, you post a question, you get 2 similar answers, whereupon you disregard
both answers without trying the solutions,
pasting from excel help? Amazing!

Here's some info on SUMPRODUCT


http://www.xldynamic.com/source/xld.SUMPRODUCT.html

--
Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)



"JonZ" wrote in message ...
According to my copy of EXCEL 2000, SUMPRODUCT is a math function and
returns
sums of multiplications

SUMPRODUCT
Multiplies corresponding components in the given arrays, and returns the
sum
of those products.

It would not work in doing what I want to do. You must have misunderstood
my
question.



Peo Sjoblom wrote:

=SUMPRODUCT(--(MONTH(A2:A200)=1),--(B2:B200="x"),--(C2:C200="morning"))

Regards,

Peo Sjoblom

"JonZ" wrote:

This is probably basic stuff.

I presently use COUNTIF to count the number of instances of the letter
"x" or "o" in a column:
=COUNTIF(B:B,"x")

I need to find totals of one condition in a column when another column
has another condition.

In the following data range, for example, I might need to find the
number of times "x" appears in column B during a particular month, like
February, or during a certain time of day.

A B C
January 4 x morning
January 4 o afternoon
January 12 o morning
January 15 o morning
January 15 x afternoon
February 2 x morning
February 2 x morning
Ferbrary 4 o morning
February 10 x morning

I might also like to count, for example, the number of times "x"
apppears in the morning in February.

Please write out examples. My date format is MM-DD-YY.





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
Setting source data range with Charts D Charts and Charting in Excel 2 January 1st 06 02:51 AM
Help with data not getting plotted Scott Ehrlich Charts and Charting in Excel 1 January 23rd 05 05:15 PM
Vlookup of parts of a word in a range of Data Andre Croteau Excel Discussion (Misc queries) 3 December 19th 04 07:26 PM
Charting data ranges that change mikelee101 Charts and Charting in Excel 2 December 16th 04 11:07 PM
Running Data Table using an input that triggers DDE linked data [email protected] Excel Discussion (Misc queries) 1 December 16th 04 11:56 AM


All times are GMT +1. The time now is 09:22 AM.

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

About Us

"It's about Microsoft Excel"