Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default SUMIF MULTIPLE ARRAY CRITERIA

I've got three ranges

bill.code
easi_pp
easi_cat

What I want to do is SUM a number of vehicles that fall within various
categories
easi_cat={"PS2","PM2","PL2","PS4","PM4","PL4","CS2 ","CM2","CL2","CS4","CM4","CL4","T7","T10"}
and if they are in certain areas
bill.code={"PRISONS","CJJ","AIMS"}
and the value to sum is in easi_pp

I've tried SUMPRODUCT but that didn't do the work (and I don't think it
was meant to)
SUM(IF formulas didn't work unless it had one array

and this didn't work

=SUM(IF(AND((easi_cat={"PS2","PM2","PL2","PS4","PM 4","PL4","CS2","CM2","CL2","CS4","CM4","CL4","T7", "T10"})*(bill.code={"PRISONS","CJJ","AIMS"})),easi _pp,0))

Now this formula works.....

=SUM(IF((easi_cat={"PS2","PM2","PL2","PS4","PM4"," PL4","CS2","CM2","CL2","CS4","CM4","CL4","T7","T10 "})*(bill.code="PRI
SERV"),easi_pp,0)) but doesn't work when I go bill.code={"1","2","3"}

is there a way aroudn it?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default SUMIF MULTIPLE ARRAY CRITERIA

Try this:

A1:A14 =
PS2,PM2,PL2,PS4,PM4,PL4,CS2,CM2,CL2,CS4,CM4,CL4,T7 ,T10

B1:B3 = Prisons,CJJ,Aims

Then:

=SUMPRODUCT(--(ISNUMBER(MATCH(easi_cat,A1:A14,0))),--(ISNUMBER(MATCH(bill.code,B1:B3,0))),easi_pp)

Biff

"Santa-D" wrote in message
ps.com...
I've got three ranges

bill.code
easi_pp
easi_cat

What I want to do is SUM a number of vehicles that fall within various
categories
easi_cat={"PS2","PM2","PL2","PS4","PM4","PL4","CS2 ","CM2","CL2","CS4","CM4","CL4","T7","T10"}
and if they are in certain areas
bill.code={"PRISONS","CJJ","AIMS"}
and the value to sum is in easi_pp

I've tried SUMPRODUCT but that didn't do the work (and I don't think it
was meant to)
SUM(IF formulas didn't work unless it had one array

and this didn't work

=SUM(IF(AND((easi_cat={"PS2","PM2","PL2","PS4","PM 4","PL4","CS2","CM2","CL2","CS4","CM4","CL4","T7", "T10"})*(bill.code={"PRISONS","CJJ","AIMS"})),easi _pp,0))

Now this formula works.....

=SUM(IF((easi_cat={"PS2","PM2","PL2","PS4","PM4"," PL4","CS2","CM2","CL2","CS4","CM4","CL4","T7","T10 "})*(bill.code="PRI
SERV"),easi_pp,0)) but doesn't work when I go bill.code={"1","2","3"}

is there a way aroudn it?



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 with multiple criteria Farhad Excel Discussion (Misc queries) 6 December 3rd 06 03:56 AM
Creating Array formulas with multiple criteria Space Elf Excel Worksheet Functions 2 January 15th 06 01:23 PM
SUMIF With Multiple Criteria Mike Excel Worksheet Functions 1 November 2nd 05 11:08 PM
SUMIF in multiple columns based on other criteria in Excel? Scott Powell Excel Discussion (Misc queries) 9 April 13th 05 02:32 PM
SUMIF multiple criteria LOU Excel Worksheet Functions 1 November 10th 04 07:12 PM


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