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

Hi,
The SUMIF syntax is
SumIf( range, criteria, sum_range )
What I want to do is to use a range as the criteria.
Unfortunately the criteria I need is a large number of explicit values,
rather than being able to use wildcards like 'R*' or whatever. I have
therefore created a range which holds all of the criteria values. Is there
any way I can tie this into the SUMIF function, so that if the value finds a
match in the criteria range, then its evaluated to true and then does the
usual summing?
Manythanks in advance.
Andy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Using a range with SUMIF

Hi Andy

try:
=SUMPRODUCT(--(ISNUMBER(MATCH(lookup_range,criteria_range,0))),s um_rang
e)

--
Regards
Frank Kabel
Frankfurt, Germany

"Andy" schrieb im Newsbeitrag
...
Hi,
The SUMIF syntax is
SumIf( range, criteria, sum_range )
What I want to do is to use a range as the criteria.
Unfortunately the criteria I need is a large number of explicit

values,
rather than being able to use wildcards like 'R*' or whatever. I have
therefore created a range which holds all of the criteria values. Is

there
any way I can tie this into the SUMIF function, so that if the value

finds a
match in the criteria range, then its evaluated to true and then does

the
usual summing?
Manythanks in advance.
Andy


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 414
Default Using a range with SUMIF

Frank,
Wow! Many thanks for that.
I've looked in help and still can't understand how it works, but it
certainly does.
Many thanks again for this post and your previous posts (I've seen your
replies dotted about quite a bit).
Regards,
Andy

"Frank Kabel" wrote:

Hi Andy

try:
=SUMPRODUCT(--(ISNUMBER(MATCH(lookup_range,criteria_range,0))),s um_rang
e)

--
Regards
Frank Kabel
Frankfurt, Germany

"Andy" schrieb im Newsbeitrag
...
Hi,
The SUMIF syntax is
SumIf( range, criteria, sum_range )
What I want to do is to use a range as the criteria.
Unfortunately the criteria I need is a large number of explicit

values,
rather than being able to use wildcards like 'R*' or whatever. I have
therefore created a range which holds all of the criteria values. Is

there
any way I can tie this into the SUMIF function, so that if the value

finds a
match in the criteria range, then its evaluated to true and then does

the
usual summing?
Manythanks in advance.
Andy



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Using a range with SUMIF

Hi
for an explanation see:
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

--
Regards
Frank Kabel
Frankfurt, Germany

"Andy" schrieb im Newsbeitrag
...
Frank,
Wow! Many thanks for that.
I've looked in help and still can't understand how it works, but it
certainly does.
Many thanks again for this post and your previous posts (I've seen

your
replies dotted about quite a bit).
Regards,
Andy

"Frank Kabel" wrote:

Hi Andy

try:

=SUMPRODUCT(--(ISNUMBER(MATCH(lookup_range,criteria_range,0))),s um_rang
e)

--
Regards
Frank Kabel
Frankfurt, Germany

"Andy" schrieb im Newsbeitrag
...
Hi,
The SUMIF syntax is
SumIf( range, criteria, sum_range )
What I want to do is to use a range as the criteria.
Unfortunately the criteria I need is a large number of explicit

values,
rather than being able to use wildcards like 'R*' or whatever. I

have
therefore created a range which holds all of the criteria values.

Is
there
any way I can tie this into the SUMIF function, so that if the

value
finds a
match in the criteria range, then its evaluated to true and then

does
the
usual summing?
Manythanks in advance.
Andy




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 do I enter formula sum(range+range)*0.15 sumif(range=3) tkw Excel Discussion (Misc queries) 2 October 1st 09 09:17 PM
SUMIF and range Compass Rose Excel Worksheet Functions 2 October 29th 08 11:13 PM
SumIf - when I fill down the Range, Criteria & sum range changes markholt Excel Worksheet Functions 3 October 28th 08 12:37 AM
Sumif range? JHL Excel Worksheet Functions 2 January 29th 08 10:11 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 09:35 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"