#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 157
Default SumIf Question

I have a list of names in cell a3:a25 and what to add the sum from column g.
please help
sumif (a3:a50,"Bob", g3:g50)
--
Tasha
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default SumIf Question

That looks right, that will add all values in G where the value in A is Bob.

Was there more to it?

--
__________________________________
HTH

Bob

"Tasha" wrote in message
...
I have a list of names in cell a3:a25 and what to add the sum from column
g.
please help
sumif (a3:a50,"Bob", g3:g50)
--
Tasha



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 157
Default SumIf Question

How can I alter this to work for 5 different names
--
Tasha


"Bob Phillips" wrote:

That looks right, that will add all values in G where the value in A is Bob.

Was there more to it?

--
__________________________________
HTH

Bob

"Tasha" wrote in message
...
I have a list of names in cell a3:a25 and what to add the sum from column
g.
please help
sumif (a3:a50,"Bob", g3:g50)
--
Tasha




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 60
Default SumIf Question

If you want one formula to sum for 5 different names...
here are a couple approaches:
=SUM(SUMIF(A5:A50,{"alpha","bravo","charlie","delt a","echo"},G5:G50))
or
=SUMPRODUCT((A5:A50={"alpha","bravo","charlie","de lta","echo"})*G5:G50)

Also, you could reference a list, instead of putting the values in the
formula
Example:
I1:I5 contains this list:
Alpha
Bravo
Charlie
Delta
Echo

and the formula would now be a combination of the two above methods:
=SUMPRODUCT(SUMIF(A5:A50,I1:I5,G5:G50))

Does that help?

Regards,

Ron Coderre
Microsoft MVP (Excel)
"Tasha" wrote in message
...
How can I alter this to work for 5 different names
--
Tasha


"Bob Phillips" wrote:

That looks right, that will add all values in G where the value in A is
Bob.

Was there more to it?

--
__________________________________
HTH

Bob

"Tasha" wrote in message
...
I have a list of names in cell a3:a25 and what to add the sum from
column
g.
please help
sumif (a3:a50,"Bob", g3:g50)
--
Tasha




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default SumIf Question

Hi,

There's nothing wrong with your formula so if it's not returning an answer
then suspect the data. First try this but note it will pick up Bob anywhere
in the cell

=SUMIF(A3:A50,"*Bob*",G3:G50)

If that doesn't work, try this. Put a 1 in an empty cell and copy it. Select
G3 - G50 and

Edit|Paste special - select 'Multiply' and click OK

Mike

"Tasha" wrote in message
...
I have a list of names in cell a3:a25 and what to add the sum from column
g.
please help
sumif (a3:a50,"Bob", g3:g50)
--
Tasha





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default SumIf Question


Tasha;277589 Wrote:
I have a list of names in cell a3:a25 and what to add the sum from
column g.
please help
sumif (a3:a50,"Bob", g3:g50)
--
TashaYou need to use SUMPRODUCT take a look here

http://www.xldynamic.com/source/xld.SUMPRODUCT.html for a great detailed
explanation with worked examples!


--
Simon Lloyd

Regards,
Simon Lloyd
'The Code Cage' (http://www.thecodecage.com)
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.thecodecage.com/forumz/member.php?userid=1
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=77552

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 Question Deb New Users to Excel 2 August 13th 08 11:55 PM
Sumif question lightbulb Excel Discussion (Misc queries) 2 July 23rd 08 07:21 PM
Sumif (sum if question) Tim Nealon Excel Worksheet Functions 5 May 25th 07 03:08 AM
SUMIF question Shan Excel Discussion (Misc queries) 1 December 3rd 06 03:34 AM
Sumif question J Shrimps, Jr. Excel Worksheet Functions 5 January 20th 06 05:26 PM


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