#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default Sumif Question

I have the following information:

a b
2 Carrie David 42.50
3 Chris David 63.00
4 David David 47.75
5 John David 36.00
6 Katy David 41.25
7 Mike David 40.00

In Call b9 I would like to sum b2:b7 if a2:a7 = Carrie David or David David
or Katy David.

Please help. Thanks
Johnnie
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Sumif Question

=SUMPRODUCT(--(A2:A7="Carrie David"),--(A2:A7="David David"),--(A2:A7="Katy
David"),B2:B7)


Note, if you had a list of names you wanted to include in Column C, you
could do this instead:
=SUMPRODUCT(--(ISNUMBER(MATCH(A2:A7,C:C,0))),B2:B7)
which would give you more flexibility for changes.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Johnnie" wrote:

I have the following information:

a b
2 Carrie David 42.50
3 Chris David 63.00
4 David David 47.75
5 John David 36.00
6 Katy David 41.25
7 Mike David 40.00

In Call b9 I would like to sum b2:b7 if a2:a7 = Carrie David or David David
or Katy David.

Please help. Thanks
Johnnie

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 561
Default Sumif Question

Didn't you mean:
=SUMPRODUCT((A2:A7="Carrie David")+(A2:A7="David David")+(A2:A7="Katy
David"),B2:B7)
Micky


"Luke M" wrote:

=SUMPRODUCT(--(A2:A7="Carrie David"),--(A2:A7="David David"),--(A2:A7="Katy
David"),B2:B7)


Note, if you had a list of names you wanted to include in Column C, you
could do this instead:
=SUMPRODUCT(--(ISNUMBER(MATCH(A2:A7,C:C,0))),B2:B7)
which would give you more flexibility for changes.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Johnnie" wrote:

I have the following information:

a b
2 Carrie David 42.50
3 Chris David 63.00
4 David David 47.75
5 John David 36.00
6 Katy David 41.25
7 Mike David 40.00

In Call b9 I would like to sum b2:b7 if a2:a7 = Carrie David or David David
or Katy David.

Please help. Thanks
Johnnie

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default Sumif Question

Thanks Mickie, the plus sign did the trick.

"מיכאל (מיקי) אבידן" wrote:

Didn't you mean:
=SUMPRODUCT((A2:A7="Carrie David")+(A2:A7="David David")+(A2:A7="Katy
David"),B2:B7)
Micky


"Luke M" wrote:

=SUMPRODUCT(--(A2:A7="Carrie David"),--(A2:A7="David David"),--(A2:A7="Katy
David"),B2:B7)


Note, if you had a list of names you wanted to include in Column C, you
could do this instead:
=SUMPRODUCT(--(ISNUMBER(MATCH(A2:A7,C:C,0))),B2:B7)
which would give you more flexibility for changes.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Johnnie" wrote:

I have the following information:

a b
2 Carrie David 42.50
3 Chris David 63.00
4 David David 47.75
5 John David 36.00
6 Katy David 41.25
7 Mike David 40.00

In Call b9 I would like to sum b2:b7 if a2:a7 = Carrie David or David David
or Katy David.

Please help. Thanks
Johnnie



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default Sumif Question

Luke
Thanks for the help. Your formula was returning a value of 0. Micky
suggested changing -- to + and it worked.

One more question, I have seen this -- on formulas I have received from
other spreadsheets. I looked it up in help and could not find out what this
symbolizes. Can you help on this?

Once again, thanks much.
Johnnie

"Luke M" wrote:

=SUMPRODUCT(--(A2:A7="Carrie David"),--(A2:A7="David David"),--(A2:A7="Katy
David"),B2:B7)


Note, if you had a list of names you wanted to include in Column C, you
could do this instead:
=SUMPRODUCT(--(ISNUMBER(MATCH(A2:A7,C:C,0))),B2:B7)
which would give you more flexibility for changes.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Johnnie" wrote:

I have the following information:

a b
2 Carrie David 42.50
3 Chris David 63.00
4 David David 47.75
5 John David 36.00
6 Katy David 41.25
7 Mike David 40.00

In Call b9 I would like to sum b2:b7 if a2:a7 = Carrie David or David David
or Katy David.

Please help. Thanks
Johnnie

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 834
Default Sumif Question

See http://xldynamic.com/source/xld.SUMPRODUCT.html for a detailed
explanation

HTH

Bob


"Johnnie" wrote in message
...
Luke
Thanks for the help. Your formula was returning a value of 0. Micky
suggested changing -- to + and it worked.

One more question, I have seen this -- on formulas I have received from
other spreadsheets. I looked it up in help and could not find out what
this
symbolizes. Can you help on this?

Once again, thanks much.
Johnnie

"Luke M" wrote:

=SUMPRODUCT(--(A2:A7="Carrie David"),--(A2:A7="David
David"),--(A2:A7="Katy
David"),B2:B7)


Note, if you had a list of names you wanted to include in Column C, you
could do this instead:
=SUMPRODUCT(--(ISNUMBER(MATCH(A2:A7,C:C,0))),B2:B7)
which would give you more flexibility for changes.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Johnnie" wrote:

I have the following information:

a b
2 Carrie David 42.50
3 Chris David 63.00
4 David David 47.75
5 John David 36.00
6 Katy David 41.25
7 Mike David 40.00

In Call b9 I would like to sum b2:b7 if a2:a7 = Carrie David or David
David
or Katy David.

Please help. Thanks
Johnnie



  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,522
Default Sumif Question

=SUMPRODUCT((TRIM(A2:A7)={"carrie david","david david","katy david"})*B2:B7)

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Johnnie" wrote in message
...
I have the following information:

a b
2 Carrie David 42.50
3 Chris David 63.00
4 David David 47.75
5 John David 36.00
6 Katy David 41.25
7 Mike David 40.00

In Call b9 I would like to sum b2:b7 if a2:a7 = Carrie David or David
David
or Katy David.

Please help. Thanks
Johnnie


  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default Sumif Question

Don,
Thanks, this works great as well.

You guys are so helpful. Very thankful you willing to share your knowledge!

Johnie

"Don Guillett" wrote:

=SUMPRODUCT((TRIM(A2:A7)={"carrie david","david david","katy david"})*B2:B7)

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Johnnie" wrote in message
...
I have the following information:

a b
2 Carrie David 42.50
3 Chris David 63.00
4 David David 47.75
5 John David 36.00
6 Katy David 41.25
7 Mike David 40.00

In Call b9 I would like to sum b2:b7 if a2:a7 = Carrie David or David
David
or Katy David.

Please help. Thanks
Johnnie


.



  #11   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 834
Default Sumif Question

Use

=SUM(SUMIF(A2:A7,{"Carrie David","David David","Katy David"},B2:B7))

HTH

Bob


"Johnnie" wrote in message
...
I have the following information:

a b
2 Carrie David 42.50
3 Chris David 63.00
4 David David 47.75
5 John David 36.00
6 Katy David 41.25
7 Mike David 40.00

In Call b9 I would like to sum b2:b7 if a2:a7 = Carrie David or David
David
or Katy David.

Please help. Thanks
Johnnie



  #12   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default Sumif Question

=SUM(SUMIF(A2:A7,{"Carrie","David","Katy"}&" David",B2:B7))


"Johnnie" wrote:

I have the following information:

a b
2 Carrie David 42.50
3 Chris David 63.00
4 David David 47.75
5 John David 36.00
6 Katy David 41.25
7 Mike David 40.00

In Call b9 I would like to sum b2:b7 if a2:a7 = Carrie David or David David
or Katy David.

Please help. Thanks
Johnnie

  #13   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Sumif Question

Guys,

One quick question on this. What if the column you are searching (in this case B) has several names and you want to use a wild card search for the name "David". Rather than = Carrie David, = David David, etc. can you help with a wild card that would search any field that includes the name David? Thanks guys!

---
frmsrcurl: http://msgroups.net/microsoft.public...Sumif-Question
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 NOT #VALUE Question Dax Arroway Excel Worksheet Functions 3 March 24th 09 11:58 PM
Help Please SUMIF question baz Excel Discussion (Misc queries) 1 February 14th 08 11:39 PM
SUMIF Question juliejg1 Excel Worksheet Functions 3 January 24th 08 04:23 AM
SUMIF Question Barb Reinhardt Excel Worksheet Functions 11 May 3rd 06 12:37 AM
sumif Question Jason Excel Discussion (Misc queries) 4 March 15th 05 04:11 PM


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"