#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 454
Default Sumproduct IF Q

I wish to Sumproduct Col B x D (from rows 5 to 10) but only if the
Value in Col M5:10 = Cars

So I could have a scenario of

ColB5 x ColD5 +
ColB7 x ColD7 +
ColB8 x ColD8 +
ColB10 x ColD10 =

As M6 & M9 were not = Cars, then I ignored them from my Calculation

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Sumproduct IF Q

Try this:

=SUMPRODUCT(B5:B10,D5:D10,--(M5:M10="Cars"))
or
=SUMPRODUCT(B5:B10*D5:D10*(M5:M10="Cars"))


Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Sean" wrote:

I wish to Sumproduct Col B x D (from rows 5 to 10) but only if the
Value in Col M5:10 = Cars

So I could have a scenario of

ColB5 x ColD5 +
ColB7 x ColD7 +
ColB8 x ColD8 +
ColB10 x ColD10 =

As M6 & M9 were not = Cars, then I ignored them from my Calculation

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,726
Default Sumproduct IF Q

=SUMPRODUCT(--(M5:M10="Cars"),(D5:D10-B5:B10))

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Sean" wrote in message
ups.com...
I wish to Sumproduct Col B x D (from rows 5 to 10) but only if the
Value in Col M5:10 = Cars

So I could have a scenario of

ColB5 x ColD5 +
ColB7 x ColD7 +
ColB8 x ColD8 +
ColB10 x ColD10 =

As M6 & M9 were not = Cars, then I ignored them from my Calculation

Thanks



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 454
Default Sumproduct IF Q

On Feb 14, 12:27 pm, "Bob Phillips" wrote:
=SUMPRODUCT(--(M5:M10="Cars"),(D5:D10-B5:B10))

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Sean" wrote in message

ups.com...



I wish to Sumproduct Col B x D (from rows 5 to 10) but only if the
Value in Col M5:10 = Cars


So I could have a scenario of


ColB5 x ColD5 +
ColB7 x ColD7 +
ColB8 x ColD8 +
ColB10 x ColD10 =


As M6 & M9 were not = Cars, then I ignored them from my Calculation


Thanks- Hide quoted text -


- Show quoted text -


Thanks guys it works a treat

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,726
Default Sumproduct IF Q

Sorry, I read that as D-B for some reason

=SUMPRODUCT(--(M5:M10="Cars"),D5:D10,B5:B10)

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Bob Phillips" wrote in message
...
=SUMPRODUCT(--(M5:M10="Cars"),(D5:D10-B5:B10))

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Sean" wrote in message
ups.com...
I wish to Sumproduct Col B x D (from rows 5 to 10) but only if the
Value in Col M5:10 = Cars

So I could have a scenario of

ColB5 x ColD5 +
ColB7 x ColD7 +
ColB8 x ColD8 +
ColB10 x ColD10 =

As M6 & M9 were not = Cars, then I ignored them from my Calculation

Thanks







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
SUMPRODUCT Mark McDonough Excel Discussion (Misc queries) 1 June 8th 06 03:07 PM
Sumproduct Help Merlin54k Excel Discussion (Misc queries) 2 June 7th 06 09:40 PM
Can this be done using Sumproduct? agarwaldvk Excel Worksheet Functions 1 May 1st 06 12:20 AM
Like Sumproduct, But Different ericsh Excel Worksheet Functions 6 August 11th 05 05:49 PM
Sumproduct Help Rob Excel Worksheet Functions 11 August 8th 05 10:00 PM


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