Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default SumIf will not work in this case

How Do I use SUMIF

A:A = "Apple" and B:B = 50% then sum C:C


Let me know if there is other solution other then SUMIF also
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default SumIf will not work in this case

SUMIF is a wrong choice. If you use XL-2007 then use SUMIFS(), prior to
XL-2007 use SUMPRODUCT()

=SUMPRODUCT(--(A1:A100="Apple"),--(B1:B100=0.5),C1:C100)

You can't not use a whole column unless you use XL-2007



"Need help with sumif" wrote:

How Do I use SUMIF

A:A = "Apple" and B:B = 50% then sum C:C


Let me know if there is other solution other then SUMIF also

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default SumIf will not work in this case

If you have more than one criteria then you can't use SUMIF - use
SUMPRODUCT instead. If you are using XL2003 or earlier then you can't
use full-column references with SP, and it is better to keep the
ranges just as large as required to cover your data. Something like
this:

=SUMPRODUCT(--(A1:A100="Apple"),--(B1:B100=50%),C1:C100)

The -- converts True and False to 1 and 0 respectively for each
element. Another way of writing it is:

=SUMPRODUCT((A1:A100="Apple")*(B1:B100=50%),C1:C1 00)

or even:

=SUMPRODUCT((A1:A100="Apple")*(B1:B100=50%)*(C1:C 100))

where * is equivalent to AND.

Hope this helps.

Pete

On Nov 11, 1:19*am, Need help with sumif
wrote:
How Do I use SUMIF

A:A = "Apple" and B:B = 50% then sum C:C

Let me know if there is other solution other then SUMIF also


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default SumIf will not work in this case

=SUMPRODUCT(--(A1:A100="Apple"),--(B1:B10050%),(C1:C100))

"Need help with sumif" wrote:

How Do I use SUMIF

A:A = "Apple" and B:B = 50% then sum C:C


Let me know if there is other solution other then SUMIF also

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default SumIf will not work in this case

With two or more criteria, always think SUMPRODUCT():

=SUMPRODUCT((A1:A100="Apple")*(B1:B100=50%)*(C1:C 100))

--
Gary''s Student - gsnu200812


"Need help with sumif" wrote:

How Do I use SUMIF

A:A = "Apple" and B:B = 50% then sum C:C


Let me know if there is other solution other then SUMIF also



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default SumIf will not work in this case

Well

let me rephrase my question maybe I explained wrong

I'm trying to find only "Apple" in column A also find only it's sale is
more than 50% in column B then sum C column that's in a same row

"Teethless mama" wrote:

SUMIF is a wrong choice. If you use XL-2007 then use SUMIFS(), prior to
XL-2007 use SUMPRODUCT()

=SUMPRODUCT(--(A1:A100="Apple"),--(B1:B100=0.5),C1:C100)

You can't not use a whole column unless you use XL-2007



"Need help with sumif" wrote:

How Do I use SUMIF

A:A = "Apple" and B:B = 50% then sum C:C


Let me know if there is other solution other then SUMIF also

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default SumIf will not work in this case

Thanks

"Sheeloo" wrote:

=SUMPRODUCT(--(A1:A100="Apple"),--(B1:B10050%),(C1:C100))

"Need help with sumif" wrote:

How Do I use SUMIF

A:A = "Apple" and B:B = 50% then sum C:C


Let me know if there is other solution other then SUMIF also

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default SumIf will not work in this case

Thank you it works perfect

"Need help with sumif" wrote:

Well

let me rephrase my question maybe I explained wrong

I'm trying to find only "Apple" in column A also find only it's sale is
more than 50% in column B then sum C column that's in a same row

"Teethless mama" wrote:

SUMIF is a wrong choice. If you use XL-2007 then use SUMIFS(), prior to
XL-2007 use SUMPRODUCT()

=SUMPRODUCT(--(A1:A100="Apple"),--(B1:B100=0.5),C1:C100)

You can't not use a whole column unless you use XL-2007



"Need help with sumif" wrote:

How Do I use SUMIF

A:A = "Apple" and B:B = 50% then sum C:C


Let me know if there is other solution other then SUMIF also

  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default SumIf will not work in this case

Thank you very much

"Gary''s Student" wrote:

With two or more criteria, always think SUMPRODUCT():

=SUMPRODUCT((A1:A100="Apple")*(B1:B100=50%)*(C1:C 100))

--
Gary''s Student - gsnu200812


"Need help with sumif" wrote:

How Do I use SUMIF

A:A = "Apple" and B:B = 50% then sum C:C


Let me know if there is other solution other then SUMIF also

  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default SumIf will not work in this case

Thank you for the details

"Pete_UK" wrote:

If you have more than one criteria then you can't use SUMIF - use
SUMPRODUCT instead. If you are using XL2003 or earlier then you can't
use full-column references with SP, and it is better to keep the
ranges just as large as required to cover your data. Something like
this:

=SUMPRODUCT(--(A1:A100="Apple"),--(B1:B100=50%),C1:C100)

The -- converts True and False to 1 and 0 respectively for each
element. Another way of writing it is:

=SUMPRODUCT((A1:A100="Apple")*(B1:B100=50%),C1:C1 00)

or even:

=SUMPRODUCT((A1:A100="Apple")*(B1:B100=50%)*(C1:C 100))

where * is equivalent to AND.

Hope this helps.

Pete

On Nov 11, 1:19 am, Need help with sumif
wrote:
How Do I use SUMIF

A:A = "Apple" and B:B = 50% then sum C:C

Let me know if there is other solution other then SUMIF also





  #11   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,344
Default SumIf will not work in this case

Hi,

In 2007 you can use SUMIFS for this example it would be

=SUMIFS(C1:C100,A1:A100,"Apple",B1:B100,"=50%")

--
Thanks,
Shane Devenshire


"Pete_UK" wrote:

If you have more than one criteria then you can't use SUMIF - use
SUMPRODUCT instead. If you are using XL2003 or earlier then you can't
use full-column references with SP, and it is better to keep the
ranges just as large as required to cover your data. Something like
this:

=SUMPRODUCT(--(A1:A100="Apple"),--(B1:B100=50%),C1:C100)

The -- converts True and False to 1 and 0 respectively for each
element. Another way of writing it is:

=SUMPRODUCT((A1:A100="Apple")*(B1:B100=50%),C1:C1 00)

or even:

=SUMPRODUCT((A1:A100="Apple")*(B1:B100=50%)*(C1:C 100))

where * is equivalent to AND.

Hope this helps.

Pete

On Nov 11, 1:19 am, Need help with sumif
wrote:
How Do I use SUMIF

A:A = "Apple" and B:B = 50% then sum C:C

Let me know if there is other solution other then SUMIF also



  #12   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default SumIf will not work in this case

You're welcome.

Pete

On Nov 11, 1:55*am, Need help with sumif
wrote:
Thank you for the details



"Pete_UK" wrote:
If you have more than one criteria then you can't use SUMIF - use
SUMPRODUCT instead. If you are using XL2003 or earlier then you can't
use full-column references with SP, and it is better to keep the
ranges just as large as required to cover your data. Something like
this:


=SUMPRODUCT(--(A1:A100="Apple"),--(B1:B100=50%),C1:C100)


The -- converts True and False to 1 and 0 respectively for each
element. Another way of writing it is:


=SUMPRODUCT((A1:A100="Apple")*(B1:B100=50%),C1:C1 00)


or even:


=SUMPRODUCT((A1:A100="Apple")*(B1:B100=50%)*(C1:C 100))


where * is equivalent to AND.


Hope this helps.


Pete


On Nov 11, 1:19 am, Need help with sumif
wrote:
How Do I use SUMIF


A:A = "Apple" and B:B = 50% then sum C:C


Let me know if there is other solution other then SUMIF also- Hide quoted text -


- Show quoted text -


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
how to make whole work sheet in to upper case Mahesh Excel Discussion (Misc queries) 4 July 5th 08 03:09 PM
Anyone actually get Case statement to work ... ? ForestFeeder Excel Worksheet Functions 3 April 21st 06 04:14 PM
special case of sumif delali Excel Worksheet Functions 4 March 24th 06 06:41 PM
Change the text from lower case to upper case in an Excel work boo dave01968 Excel Discussion (Misc queries) 2 December 9th 05 09:09 AM
Complicated SUMIF Case John Excel Discussion (Misc queries) 9 October 14th 05 10:08 AM


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