#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default Sumif??

I have 3 columns...

A - defect description
B - number of defects
C - equipment

I am trying to sum the number of defects if both the defect description and
equipment match the criteria.

Thanks in advance!

Hope
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default Sumif??

=SUMPRODUCT(--($A$2:$A$100=description),--($C$2:$C$100=equipment),($B$2:$B$100))
--
** John C **
Please remember if your question is answered, to mark it answered :). It
helps everyone.


"Hope" wrote:

I have 3 columns...

A - defect description
B - number of defects
C - equipment

I am trying to sum the number of defects if both the defect description and
equipment match the criteria.

Thanks in advance!

Hope

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default Sumif??

What is the purpose of the dashes? My current result comes back as zero. Is
there a way for me to try part of the formula at a time to see which portion
is not functioning correctly?

"John C" wrote:

=SUMPRODUCT(--($A$2:$A$100=description),--($C$2:$C$100=equipment),($B$2:$B$100))
--
** John C **
Please remember if your question is answered, to mark it answered :). It
helps everyone.


"Hope" wrote:

I have 3 columns...

A - defect description
B - number of defects
C - equipment

I am trying to sum the number of defects if both the defect description and
equipment match the criteria.

Thanks in advance!

Hope

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default Sumif??

In SUMPRODUCT, when you compare a cell range ($A$2:$A$100) to some value
(such as your description), this will force a series of TRUE or FALSE. The
dashes change this value from TRUE or FALSE to 1 or 0. So you have 2 ranges
that will be 1 or 0 depending on whether or not they meet the criteria, then
the final range is the range you want 'summed'.
Understand also that my 2 variables of description and equipment are in
lowercase as you have to define those, either put the ones you are trying to
count for in separate cells or 'hardcode' the formula itself
Perhaps if you were to show your actual formula, and a snippet of your data
(sample is fine), that 'should' be calculating some results.
--
** John C **

"Hope" wrote:

What is the purpose of the dashes? My current result comes back as zero. Is
there a way for me to try part of the formula at a time to see which portion
is not functioning correctly?

"John C" wrote:

=SUMPRODUCT(--($A$2:$A$100=description),--($C$2:$C$100=equipment),($B$2:$B$100))
--
** John C **
Please remember if your question is answered, to mark it answered :). It
helps everyone.


"Hope" wrote:

I have 3 columns...

A - defect description
B - number of defects
C - equipment

I am trying to sum the number of defects if both the defect description and
equipment match the criteria.

Thanks in advance!

Hope

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default Sumif??

Somehow I fixed it. I don't really know how, but it's working now. Thanks
so much...

"John C" wrote:

In SUMPRODUCT, when you compare a cell range ($A$2:$A$100) to some value
(such as your description), this will force a series of TRUE or FALSE. The
dashes change this value from TRUE or FALSE to 1 or 0. So you have 2 ranges
that will be 1 or 0 depending on whether or not they meet the criteria, then
the final range is the range you want 'summed'.
Understand also that my 2 variables of description and equipment are in
lowercase as you have to define those, either put the ones you are trying to
count for in separate cells or 'hardcode' the formula itself
Perhaps if you were to show your actual formula, and a snippet of your data
(sample is fine), that 'should' be calculating some results.
--
** John C **

"Hope" wrote:

What is the purpose of the dashes? My current result comes back as zero. Is
there a way for me to try part of the formula at a time to see which portion
is not functioning correctly?

"John C" wrote:

=SUMPRODUCT(--($A$2:$A$100=description),--($C$2:$C$100=equipment),($B$2:$B$100))
--
** John C **
Please remember if your question is answered, to mark it answered :). It
helps everyone.


"Hope" wrote:

I have 3 columns...

A - defect description
B - number of defects
C - equipment

I am trying to sum the number of defects if both the defect description and
equipment match the criteria.

Thanks in advance!

Hope



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default Sumif??

If you post your formula(s), I can verify for you if everything will work
based on your conditions given, otherwise, glad you got it working :)
--
** John C **

"Hope" wrote:

Somehow I fixed it. I don't really know how, but it's working now. Thanks
so much...

"John C" wrote:

In SUMPRODUCT, when you compare a cell range ($A$2:$A$100) to some value
(such as your description), this will force a series of TRUE or FALSE. The
dashes change this value from TRUE or FALSE to 1 or 0. So you have 2 ranges
that will be 1 or 0 depending on whether or not they meet the criteria, then
the final range is the range you want 'summed'.
Understand also that my 2 variables of description and equipment are in
lowercase as you have to define those, either put the ones you are trying to
count for in separate cells or 'hardcode' the formula itself
Perhaps if you were to show your actual formula, and a snippet of your data
(sample is fine), that 'should' be calculating some results.
--
** John C **

"Hope" wrote:

What is the purpose of the dashes? My current result comes back as zero. Is
there a way for me to try part of the formula at a time to see which portion
is not functioning correctly?

"John C" wrote:

=SUMPRODUCT(--($A$2:$A$100=description),--($C$2:$C$100=equipment),($B$2:$B$100))
--
** John C **
Please remember if your question is answered, to mark it answered :). It
helps everyone.


"Hope" wrote:

I have 3 columns...

A - defect description
B - number of defects
C - equipment

I am trying to sum the number of defects if both the defect description and
equipment match the criteria.

Thanks in advance!

Hope

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Sumif??

Hi John-
I'm having a similar problem that I hope you can help with- wanting to sum
amounts in column B if column C has an R next to it: Example
A B C
3 $40
17 $5 R
11 $10 R
32 $30
12 $10 R

and so on..... Only want the $ amount for column B if C has an "R"

Thank you in advance for your help!



"John C" wrote:

If you post your formula(s), I can verify for you if everything will work
based on your conditions given, otherwise, glad you got it working :)
--
** John C **

"Hope" wrote:

Somehow I fixed it. I don't really know how, but it's working now. Thanks
so much...

"John C" wrote:

In SUMPRODUCT, when you compare a cell range ($A$2:$A$100) to some value
(such as your description), this will force a series of TRUE or FALSE. The
dashes change this value from TRUE or FALSE to 1 or 0. So you have 2 ranges
that will be 1 or 0 depending on whether or not they meet the criteria, then
the final range is the range you want 'summed'.
Understand also that my 2 variables of description and equipment are in
lowercase as you have to define those, either put the ones you are trying to
count for in separate cells or 'hardcode' the formula itself
Perhaps if you were to show your actual formula, and a snippet of your data
(sample is fine), that 'should' be calculating some results.
--
** John C **

"Hope" wrote:

What is the purpose of the dashes? My current result comes back as zero. Is
there a way for me to try part of the formula at a time to see which portion
is not functioning correctly?

"John C" wrote:

=SUMPRODUCT(--($A$2:$A$100=description),--($C$2:$C$100=equipment),($B$2:$B$100))
--
** John C **
Please remember if your question is answered, to mark it answered :). It
helps everyone.


"Hope" wrote:

I have 3 columns...

A - defect description
B - number of defects
C - equipment

I am trying to sum the number of defects if both the defect description and
equipment match the criteria.

Thanks in advance!

Hope

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 694
Default Sumif??

Hi
Try this : =SUMIF(C1:C5,"R",B1:B5) ajust range to your needs.
HTH
John
"smilemdj72" wrote in message
...
Hi John-
I'm having a similar problem that I hope you can help with- wanting to sum
amounts in column B if column C has an R next to it: Example
A B C
3 $40
17 $5 R
11 $10 R
32 $30
12 $10 R

and so on..... Only want the $ amount for column B if C has an "R"

Thank you in advance for your help!



"John C" wrote:

If you post your formula(s), I can verify for you if everything will work
based on your conditions given, otherwise, glad you got it working :)
--
** John C **

"Hope" wrote:

Somehow I fixed it. I don't really know how, but it's working now.
Thanks
so much...

"John C" wrote:

In SUMPRODUCT, when you compare a cell range ($A$2:$A$100) to some
value
(such as your description), this will force a series of TRUE or
FALSE. The
dashes change this value from TRUE or FALSE to 1 or 0. So you have 2
ranges
that will be 1 or 0 depending on whether or not they meet the
criteria, then
the final range is the range you want 'summed'.
Understand also that my 2 variables of description and equipment are
in
lowercase as you have to define those, either put the ones you are
trying to
count for in separate cells or 'hardcode' the formula itself
Perhaps if you were to show your actual formula, and a snippet of
your data
(sample is fine), that 'should' be calculating some results.
--
** John C **

"Hope" wrote:

What is the purpose of the dashes? My current result comes back as
zero. Is
there a way for me to try part of the formula at a time to see
which portion
is not functioning correctly?

"John C" wrote:

=SUMPRODUCT(--($A$2:$A$100=description),--($C$2:$C$100=equipment),($B$2:$B$100))
--
** John C **
Please remember if your question is answered, to mark it answered
:). It
helps everyone.


"Hope" wrote:

I have 3 columns...

A - defect description
B - number of defects
C - equipment

I am trying to sum the number of defects if both the defect
description and
equipment match the criteria.

Thanks in advance!

Hope


  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Sumif??

Thank you for the fast response!! Exactly what I needed.

"John" wrote:

Hi
Try this : =SUMIF(C1:C5,"R",B1:B5) ajust range to your needs.
HTH
John
"smilemdj72" wrote in message
...
Hi John-
I'm having a similar problem that I hope you can help with- wanting to sum
amounts in column B if column C has an R next to it: Example
A B C
3 $40
17 $5 R
11 $10 R
32 $30
12 $10 R

and so on..... Only want the $ amount for column B if C has an "R"

Thank you in advance for your help!



"John C" wrote:

If you post your formula(s), I can verify for you if everything will work
based on your conditions given, otherwise, glad you got it working :)
--
** John C **

"Hope" wrote:

Somehow I fixed it. I don't really know how, but it's working now.
Thanks
so much...

"John C" wrote:

In SUMPRODUCT, when you compare a cell range ($A$2:$A$100) to some
value
(such as your description), this will force a series of TRUE or
FALSE. The
dashes change this value from TRUE or FALSE to 1 or 0. So you have 2
ranges
that will be 1 or 0 depending on whether or not they meet the
criteria, then
the final range is the range you want 'summed'.
Understand also that my 2 variables of description and equipment are
in
lowercase as you have to define those, either put the ones you are
trying to
count for in separate cells or 'hardcode' the formula itself
Perhaps if you were to show your actual formula, and a snippet of
your data
(sample is fine), that 'should' be calculating some results.
--
** John C **

"Hope" wrote:

What is the purpose of the dashes? My current result comes back as
zero. Is
there a way for me to try part of the formula at a time to see
which portion
is not functioning correctly?

"John C" wrote:

=SUMPRODUCT(--($A$2:$A$100=description),--($C$2:$C$100=equipment),($B$2:$B$100))
--
** John C **
Please remember if your question is answered, to mark it answered
:). It
helps everyone.


"Hope" wrote:

I have 3 columns...

A - defect description
B - number of defects
C - equipment

I am trying to sum the number of defects if both the defect
description and
equipment match the criteria.

Thanks in advance!

Hope



  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 694
Default Sumif??

Your Welcome
All the best for the NewYear
John
"smilemdj72" wrote in message
...
Thank you for the fast response!! Exactly what I needed.

"John" wrote:

Hi
Try this : =SUMIF(C1:C5,"R",B1:B5) ajust range to your needs.
HTH
John
"smilemdj72" wrote in message
...
Hi John-
I'm having a similar problem that I hope you can help with- wanting to
sum
amounts in column B if column C has an R next to it: Example
A B C
3 $40
17 $5 R
11 $10 R
32 $30
12 $10 R

and so on..... Only want the $ amount for column B if C has an "R"

Thank you in advance for your help!



"John C" wrote:

If you post your formula(s), I can verify for you if everything will
work
based on your conditions given, otherwise, glad you got it working :)
--
** John C **

"Hope" wrote:

Somehow I fixed it. I don't really know how, but it's working now.
Thanks
so much...

"John C" wrote:

In SUMPRODUCT, when you compare a cell range ($A$2:$A$100) to some
value
(such as your description), this will force a series of TRUE or
FALSE. The
dashes change this value from TRUE or FALSE to 1 or 0. So you have
2
ranges
that will be 1 or 0 depending on whether or not they meet the
criteria, then
the final range is the range you want 'summed'.
Understand also that my 2 variables of description and equipment
are
in
lowercase as you have to define those, either put the ones you are
trying to
count for in separate cells or 'hardcode' the formula itself
Perhaps if you were to show your actual formula, and a snippet of
your data
(sample is fine), that 'should' be calculating some results.
--
** John C **

"Hope" wrote:

What is the purpose of the dashes? My current result comes back
as
zero. Is
there a way for me to try part of the formula at a time to see
which portion
is not functioning correctly?

"John C" wrote:

=SUMPRODUCT(--($A$2:$A$100=description),--($C$2:$C$100=equipment),($B$2:$B$100))
--
** John C **
Please remember if your question is answered, to mark it
answered
:). It
helps everyone.


"Hope" wrote:

I have 3 columns...

A - defect description
B - number of defects
C - equipment

I am trying to sum the number of defects if both the defect
description and
equipment match the criteria.

Thanks in advance!

Hope




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
sumif for multi conditions. i.e sumif(A1:A10,"Jon" and B1:B10,"A" Harry Seymour Excel Worksheet Functions 9 June 12th 07 10:47 PM
Embedding a Sumif in a sumif C.Pflugrath Excel Worksheet Functions 5 August 31st 05 07:31 PM
SUMIF Kip Excel Worksheet Functions 1 June 9th 05 12:55 PM
nested sumif or sumif with two criteria dshigley Excel Worksheet Functions 5 April 5th 05 03:34 AM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM


All times are GMT +1. The time now is 02:45 AM.

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"