Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default SUMIF with the criteria range

I have problem to use formula SUMIF(RANGE, CRITERIA, RANGE)
I want to summarize range according to criteria which is range.
In my case Criteria is range A1:A5
I know that i can write formula in this way: =SUMIF(RANGE, A1, RANGE)
+SUMIF(RANGE, A2, RANGE)+SUMIF(RANGE, A3, RANGE)+SUMIF(RANGE, A4,
RANGE)+SUMIF(RANGE, A5, RANGE)

Can i write this formula in a easier way? sometimes i have criteria
range long list and i want to write compact formula. Can you help me?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 168
Default SUMIF with the criteria range

On Nov 13, 11:22*pm, Lado Kiknadze wrote:
I have problem to use formula SUMIF(RANGE, CRITERIA, RANGE)
I want to summarize range according to criteria which is range.
In my case Criteria is range A1:A5
I know that i can write formula in this way: =SUMIF(RANGE, A1, RANGE)
+SUMIF(RANGE, A2, RANGE)+SUMIF(RANGE, A3, RANGE)+SUMIF(RANGE, A4,
RANGE)+SUMIF(RANGE, A5, RANGE)

Can i write this formula in a easier way? sometimes i have criteria
range long list and i want to write compact formula. Can you help me?


where b1:b2 has your criteria. An ARRAY formula that must be entered
using ctrl+shift+enter


=SUM(IF(ISERROR(MATCH(A1:A8,B1:B2,0))=FALSE,C1:C8, 0))
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default SUMIF with the criteria range

On Nov 14, 7:49*pm, Don Guillett Excel MVP
wrote:
On Nov 13, 11:22*pm, Lado Kiknadze wrote:

I have problem to use formula SUMIF(RANGE, CRITERIA, RANGE)
I want to summarize range according to criteria which is range.
In my case Criteria is range A1:A5
I know that i can write formula in this way: =SUMIF(RANGE, A1, RANGE)
+SUMIF(RANGE, A2, RANGE)+SUMIF(RANGE, A3, RANGE)+SUMIF(RANGE, A4,
RANGE)+SUMIF(RANGE, A5, RANGE)


Can i write this formula in a easier way? sometimes i have criteria
range long list and i want to write compact formula. Can you help me?


where b1:b2 has your criteria. An ARRAY formula that must be entered
using ctrl+shift+enter

=SUM(IF(ISERROR(MATCH(A1:A8,B1:B2,0))=FALSE,C1:C8, 0))


Thank you so much! It works fine.
Now I discovered that I have one more criteria (condition). i want to
summarize same range with the same criteria in addition that cell
D1="c". Actually i have two criteria B1:B2 and D1="c"
Please let me know how i can compile formula in this case.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 834
Default SUMIF with the criteria range

Try

=SUMPRODUCT(--(ISNUMBER(MATCH(M2:M20,A1:A5,0))),--(O2:O20="c"),N2:N20)

--

HTH

Bob

"Lado Kiknadze" wrote in message
...
On Nov 14, 7:49 pm, Don Guillett Excel MVP
wrote:
On Nov 13, 11:22 pm, Lado Kiknadze wrote:

I have problem to use formula SUMIF(RANGE, CRITERIA, RANGE)
I want to summarize range according to criteria which is range.
In my case Criteria is range A1:A5
I know that i can write formula in this way: =SUMIF(RANGE, A1, RANGE)
+SUMIF(RANGE, A2, RANGE)+SUMIF(RANGE, A3, RANGE)+SUMIF(RANGE, A4,
RANGE)+SUMIF(RANGE, A5, RANGE)


Can i write this formula in a easier way? sometimes i have criteria
range long list and i want to write compact formula. Can you help me?


where b1:b2 has your criteria. An ARRAY formula that must be entered
using ctrl+shift+enter

=SUM(IF(ISERROR(MATCH(A1:A8,B1:B2,0))=FALSE,C1:C8, 0))


Thank you so much! It works fine.
Now I discovered that I have one more criteria (condition). i want to
summarize same range with the same criteria in addition that cell
D1="c". Actually i have two criteria B1:B2 and D1="c"
Please let me know how i can compile formula in this case.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default SUMIF with the criteria range

On Nov 15, 7:15*pm, "Bob Phillips" wrote:
Try

=SUMPRODUCT(--(ISNUMBER(MATCH(M2:M20,A1:A5,0))),--(O2:O20="c"),N2:N20)

--

HTH

Bob

"Lado Kiknadze" wrote in message

...
On Nov 14, 7:49 pm, Don Guillett Excel MVP
wrote:





On Nov 13, 11:22 pm, Lado Kiknadze wrote:


I have problem to use formula SUMIF(RANGE, CRITERIA, RANGE)
I want to summarize range according to criteria which is range.
In my case Criteria is range A1:A5
I know that i can write formula in this way: =SUMIF(RANGE, A1, RANGE)
+SUMIF(RANGE, A2, RANGE)+SUMIF(RANGE, A3, RANGE)+SUMIF(RANGE, A4,
RANGE)+SUMIF(RANGE, A5, RANGE)


Can i write this formula in a easier way? sometimes i have criteria
range long list and i want to write compact formula. Can you help me?


where b1:b2 has your criteria. An ARRAY formula that must be entered
using ctrl+shift+enter


=SUM(IF(ISERROR(MATCH(A1:A8,B1:B2,0))=FALSE,C1:C8, 0))


Thank you so much! It works fine.
Now I discovered that I have one more criteria (condition). i want to
summarize same range with the same criteria in addition that cell
D1="c". Actually i have two criteria B1:B2 and D1="c"
Please let me know how i can compile formula in this case.- Hide quoted text -

- Show quoted text -


Thank you Bob, it is great. I appriciate this.

Best wishes,
Lado
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 when criteria range is larger but includes criteria Joe1939 Excel Programming 1 January 16th 09 07:41 PM
sumif when criteria range is larger but includes criteria Joe1939 Excel Programming 1 January 16th 09 07:41 PM
SumIf - when I fill down the Range, Criteria & sum range changes markholt Excel Worksheet Functions 3 October 28th 08 12:37 AM
sumif when criteria is a range jeremy via OfficeKB.com Excel Discussion (Misc queries) 7 August 15th 05 05:49 PM
SUMIF with AND for range and criteria davidm_ba Excel Worksheet Functions 3 August 2nd 05 01:31 PM


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