LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 419
Default Sum with multiple criteria using SUMPRODUCT

Using XL 2003 SP3 on Win XP Pro SP2

--
Hello all,

I have the following formula:

=SUMPRODUCT((Sheet1!$A$2:$A$101=ChartHome)*(Sheet1 !$C$2:$C$101=LEFT($B107,2))*(Sheet1!G$2:G$101))

What I want to do is eliminate the first condition
("(Sheet1!$A$2:$A$101=ChartHome)") depending on the value of ChartHome. I
tried the following, but XL didn't like using an IF function inside a
SUMPRODUCT function:

=SUMPRODUCT(IF(ChartHome=16,1,(Sheet1!$A$2:$A$101= ChartHome))*(Sheet1!$C$2:$C$101=LEFT($B107,2))*(Sh eet1!G$2:G$101))

I'm guessing that it has something to do with the fact that SUMPRODUCT is an
array function and IF is not. I thought non-array functions would be
converted to array functions when used inside an array function. Guess
not!!!

I know I can accomplish this by having the IF fuction outside and 2
different SUMPRODUCT's inside. I just thought there might be a more
streamlined way of doing it like my example above (IF inside a SUMPRODUCT)

Can anyone think of a more streamlined way other than 2 SUMPRODUCT's inside
an IF?

Thanks for any help anyone can provide,

Conan Kelly




 
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
Multiple criteria for sumproduct ocuhcs Excel Discussion (Misc queries) 4 April 26th 09 02:44 AM
SUMPRODUCT with Multiple Criteria Kelly Excel Worksheet Functions 8 March 6th 08 09:30 PM
multiple criteria in if or sumproduct tbird0566 Excel Worksheet Functions 1 September 19th 05 09:11 PM
Using Sumproduct with multiple Criteria Mark Jackson Excel Worksheet Functions 1 May 6th 05 10:07 PM
sumproduct using multiple criteria tifosi3 Excel Worksheet Functions 2 January 6th 05 08:46 PM


All times are GMT +1. The time now is 02:58 PM.

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"