Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Mitch
 
Posts: n/a
Default I need a productif type function

I want to search a range of cells, say C:C for a value, if that value is
there i want to multiply the corresponding B cell and D cell together then
sum up all of the true values. If anyone can help me please let me know.

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.misc
Ardus Petus
 
Posts: n/a
Default I need a productif type function

=SUMPRODUCT((C1:C999="something")*(B1:B999)*(D1:D9 99)

Unfortunately, SUMPRODUCT does not work with whole columns (C:C)

HTH
--
AP

"Mitch" a écrit dans le message de news:
...
I want to search a range of cells, say C:C for a value, if that value is
there i want to multiply the corresponding B cell and D cell together then
sum up all of the true values. If anyone can help me please let me know.

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.misc
Mitch
 
Posts: n/a
Default I need a productif type function

That seems to work, the only problem is that some of the B and D cells have
no value so this functions returns a #VALUE! error. Thanks for your help

"Ardus Petus" wrote:

=SUMPRODUCT((C1:C999="something")*(B1:B999)*(D1:D9 99)

Unfortunately, SUMPRODUCT does not work with whole columns (C:C)

HTH
--
AP

"Mitch" a écrit dans le message de news:
...
I want to search a range of cells, say C:C for a value, if that value is
there i want to multiply the corresponding B cell and D cell together then
sum up all of the true values. If anyone can help me please let me know.

Thanks




  #4   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default I need a productif type function

It isn't no value that would cause this. It must be a #VALUE or text in the
cells. Either sort the data or try

=SUMPRODUCT(--(C1:C999="something"),(B1:B999),(D1:D999))

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

"Mitch" wrote in message
...
That seems to work, the only problem is that some of the B and D cells

have
no value so this functions returns a #VALUE! error. Thanks for your help

"Ardus Petus" wrote:

=SUMPRODUCT((C1:C999="something")*(B1:B999)*(D1:D9 99)

Unfortunately, SUMPRODUCT does not work with whole columns (C:C)

HTH
--
AP

"Mitch" a écrit dans le message de

news:
...
I want to search a range of cells, say C:C for a value, if that value

is
there i want to multiply the corresponding B cell and D cell together

then
sum up all of the true values. If anyone can help me please let me

know.

Thanks






  #5   Report Post  
Posted to microsoft.public.excel.misc
Mitch
 
Posts: n/a
Default I need a productif type function

That works just how I wanted it...thanks a ton!
"Bob Phillips" wrote:

It isn't no value that would cause this. It must be a #VALUE or text in the
cells. Either sort the data or try

=SUMPRODUCT(--(C1:C999="something"),(B1:B999),(D1:D999))

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

"Mitch" wrote in message
...
That seems to work, the only problem is that some of the B and D cells

have
no value so this functions returns a #VALUE! error. Thanks for your help

"Ardus Petus" wrote:

=SUMPRODUCT((C1:C999="something")*(B1:B999)*(D1:D9 99)

Unfortunately, SUMPRODUCT does not work with whole columns (C:C)

HTH
--
AP

"Mitch" a écrit dans le message de

news:
...
I want to search a range of cells, say C:C for a value, if that value

is
there i want to multiply the corresponding B cell and D cell together

then
sum up all of the true values. If anyone can help me please let me

know.

Thanks









  #6   Report Post  
Posted to microsoft.public.excel.misc
Mitch
 
Posts: n/a
Default I need a productif type function

I ended up using this
=IF(SUMIF(C2:C41,"Winter 2006",E2:E41)0,(SUMPRODUCT(--(C1:C41="Winter
2006"),(B1:B41),(E1:E41))/SUMIF(C1:C41,"Winter 2006",B1:B41)),"")

that included a dividing by the same sums of the B values and it works
great. Thanks.

"Bob Phillips" wrote:

It isn't no value that would cause this. It must be a #VALUE or text in the
cells. Either sort the data or try

=SUMPRODUCT(--(C1:C999="something"),(B1:B999),(D1:D999))

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

"Mitch" wrote in message
...
That seems to work, the only problem is that some of the B and D cells

have
no value so this functions returns a #VALUE! error. Thanks for your help

"Ardus Petus" wrote:

=SUMPRODUCT((C1:C999="something")*(B1:B999)*(D1:D9 99)

Unfortunately, SUMPRODUCT does not work with whole columns (C:C)

HTH
--
AP

"Mitch" a écrit dans le message de

news:
...
I want to search a range of cells, say C:C for a value, if that value

is
there i want to multiply the corresponding B cell and D cell together

then
sum up all of the true values. If anyone can help me please let me

know.

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
Creating a Custom Excel Function to Calculate Gini Coefficients [email protected] Excel Worksheet Functions 3 February 21st 06 10:15 PM
multiple results display after filter function Morphyus C via OfficeKB.com Excel Worksheet Functions 1 August 11th 05 03:17 PM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM
Is there a WorkDay() type function that count all days except tho. Dark Skunk Excel Worksheet Functions 8 February 15th 05 08:37 PM


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