#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
b166er
 
Posts: n/a
Default sumif


hi members,

can i give criteria range for sumif funtion i tried but i couldn't
give criteria range.

if criteria range can not be given then how can we use or command to
give more than one arguments say i want sum in col B5 all the the sale
made by either of three salepersons(john,bush,kaven).
i dont mind if someone tell me some other function through which i
could solve that problem.


--
b166er
------------------------------------------------------------------------
b166er's Profile: http://www.excelforum.com/member.php...o&userid=34912
View this thread: http://www.excelforum.com/showthread...hreadid=553228

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
VBA Noob
 
Posts: n/a
Default sumif


Are you after sometime like this.

=SUMIF($A$5:$A$8,"John",$B$5:$B$8)

This website may help

http://www.j-walk.com/ss/excel/tips/tip74.htm


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=553228

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
b166er
 
Posts: n/a
Default sumif


thanks for reply buy i want

A1 john 5555
A2 bush 20
A3 kaven 50
A4 linda 10
A5 jams 50

i just want to sum the amount of john bush and kaven in one cell there
are more than 5000 enteries keep in mind that thing as well.


--
b166er
------------------------------------------------------------------------
b166er's Profile: http://www.excelforum.com/member.php...o&userid=34912
View this thread: http://www.excelforum.com/showthread...hreadid=553228

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
VBA Noob
 
Posts: n/a
Default sumif


=SUMIF($A$5:$A$8,"John",$B$5:$B$8)+SUMIF($A$5:$A$8 ,"bush",$B$5:$B$8)+
SUMIF($A$5:$A$8,"kaven",$B$5:$B$8)


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=553228

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Marcelo
 
Posts: n/a
Default sumif

hi, why not use:

=SUMIF($A$5:$A$5005,"John",$B$5:$B$5005)+SUMIF($A$ 5:$A$5005,"bush",$B$5:$B$5005)+SUMIF($A$5:$A$5005, "kaven",$B$5:$B$5005)

hope this helps
regards from Brazil
Marcelo





"b166er" escreveu:


thanks for reply buy i want

A1 john 5555
A2 bush 20
A3 kaven 50
A4 linda 10
A5 jams 50

i just want to sum the amount of john bush and kaven in one cell there
are more than 5000 enteries keep in mind that thing as well.


--
b166er
------------------------------------------------------------------------
b166er's Profile: http://www.excelforum.com/member.php...o&userid=34912
View this thread: http://www.excelforum.com/showthread...hreadid=553228




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
VBA Noob
 
Posts: n/a
Default sumif


or use an array

=SUM((IF((($A$5:$A$5005="john")+($A$5:$A$5005="bus h")+($A$5:$A$5005="Kaven")),1)*$B$5:$B$5005))

Use Ctrl +shift + enter to apply array


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=553228

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default sumif

=SUMPRODUCT(SUMIF(A1:A100,{"John","Bush","Kaven"}, C1:C100))

as shown in the other two groups that you posted in.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"b166er" wrote in
message ...

hi members,

can i give criteria range for sumif funtion i tried but i couldn't
give criteria range.

if criteria range can not be given then how can we use or command to
give more than one arguments say i want sum in col B5 all the the sale
made by either of three salepersons(john,bush,kaven).
i dont mind if someone tell me some other function through which i
could solve that problem.


--
b166er
------------------------------------------------------------------------
b166er's Profile:

http://www.excelforum.com/member.php...o&userid=34912
View this thread: http://www.excelforum.com/showthread...hreadid=553228



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
VBA Noob
 
Posts: n/a
Default sumif


Just spotted that too Bob.

Neat solution by the way


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=553228

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 use SUMIF to return sums between two values located in cells ScottBerger Excel Worksheet Functions 2 April 23rd 23 09:05 PM
Sumif of Sumif perhaps? Fred Excel Discussion (Misc queries) 2 March 29th 06 05:39 PM
SUMIF Ferg Excel Worksheet Functions 3 February 28th 06 03:37 AM
Embedding a Sumif in a sumif C.Pflugrath Excel Worksheet Functions 5 August 31st 05 07:31 PM
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 10:37 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"