#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 304
Default SUMPRODUCT with OR?

Can you add more then one item in the following formula?

=SUMPRODUCT(--(Data!$F$2:$F$50000="Citibank"),--(Data!$I$2:$I$50000=A9),--(Data!$H$2:$H$50000))

=SUMPRODUCT(--(Data!$F$2:$F$50000="4282" or "3826" or
"7892"),--(Data!$I$2:$I$50000=A9),--(Data!$H$2:$H$50000))
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default SUMPRODUCT with OR?

You can do that by adding your criteria ranges together, and then multiplying.

=SUMPRODUCT(((Data!$F$2:$F$50000="4282")+(Data!$F$ 2:$F$50000="3826")+(Data!$F$2:$F$50000="7892"))*(D ata!$I$2:$I$50000=A9)*(Data!$H$2:$H$50000))
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"pgarcia" wrote:

Can you add more then one item in the following formula?

=SUMPRODUCT(--(Data!$F$2:$F$50000="Citibank"),--(Data!$I$2:$I$50000=A9),--(Data!$H$2:$H$50000))

=SUMPRODUCT(--(Data!$F$2:$F$50000="4282" or "3826" or
"7892"),--(Data!$I$2:$I$50000=A9),--(Data!$H$2:$H$50000))

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default SUMPRODUCT with OR?

you can add multiple together...

=SUMPRODUCT(--(Data!$F$2:$F$50000=4282)+--(Data!$F$2:$F$50000=3826)+--(Data!$F$2:$F$50000=7892),--(Data!$I$2:$I$50000=A9),--(Data!$H$2:$H$50000))

Though.. you probab;y dont need the ,--(Data!$H$2:$H$50000).

If you want to add the column H values, should be ,Data!$H$2:$H$50000 instead.

If you just want a count, leave H out entirely. Only necessary if you want
ony to count where H is not blank.

"pgarcia" wrote:

Can you add more then one item in the following formula?

=SUMPRODUCT(--(Data!$F$2:$F$50000="Citibank"),--(Data!$I$2:$I$50000=A9),--(Data!$H$2:$H$50000))

=SUMPRODUCT(--(Data!$F$2:$F$50000="4282" or "3826" or
"7892"),--(Data!$I$2:$I$50000=A9),--(Data!$H$2:$H$50000))

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default SUMPRODUCT with OR?

Use cells to hold the criteria:

A1 = 4282
A2 = 3826
A3 = 7892

=SUMPRODUCT(--(ISNUMBER(MATCH(Data!F2:F50000,A1:A3,0))),--(Data!I2:I50000=A9),Data!H2:H50000)

--
Biff
Microsoft Excel MVP


"pgarcia" wrote in message
...
Can you add more then one item in the following formula?

=SUMPRODUCT(--(Data!$F$2:$F$50000="Citibank"),--(Data!$I$2:$I$50000=A9),--(Data!$H$2:$H$50000))

=SUMPRODUCT(--(Data!$F$2:$F$50000="4282" or "3826" or
"7892"),--(Data!$I$2:$I$50000=A9),--(Data!$H$2:$H$50000))



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default SUMPRODUCT with OR?

=SUMPRODUCT((Data!$F$2:$F$50000={4282,3826,7892})* (Data!$I$2:$I$50000=A9)*(Data!$H$2:$H$50000))

--
__________________________________
HTH

Bob

"pgarcia" wrote in message
...
Can you add more then one item in the following formula?

=SUMPRODUCT(--(Data!$F$2:$F$50000="Citibank"),--(Data!$I$2:$I$50000=A9),--(Data!$H$2:$H$50000))

=SUMPRODUCT(--(Data!$F$2:$F$50000="4282" or "3826" or
"7892"),--(Data!$I$2:$I$50000=A9),--(Data!$H$2:$H$50000))



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
Conditional SUMPRODUCT or SUMPRODUCT with Filters Ted M H Excel Worksheet Functions 4 August 14th 08 07:50 PM
SumProduct Ellen G Excel Discussion (Misc queries) 10 March 18th 08 11:19 PM
sumproduct? sumif(sumproduct)? David Excel Worksheet Functions 3 July 13th 07 07:06 PM
Can I use SUMPRODUCT for this? cottage6 Excel Worksheet Functions 5 November 15th 05 10:09 PM
how to use sumproduct alias abuhasan Excel Worksheet Functions 1 November 15th 05 03:45 AM


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