Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default I need to write a PRODUCT formula that mimics a SUMIF

I need to write a PRODUCT array =PRODUCT(1+(the values in column t that have
a value in column d that match the value in D841)-1)

Is there a way to do a PRODUCT like a SUMIF?
ex: =SUMIF(D:D,D841,M:M)

It's to replace this formula:
=((1+T654/100)*(1+T671/100)*(1+T688/100)*(1+T705/100)*(1+T722/100)*(1+T739/100)*(1+T756/100)*(1+T773/100)*(1+T790/100)*(1+T807/100)*(1+T824/100)*(1+T841/100)-1)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default I need to write a PRODUCT formula that mimics a SUMIF

I think this array-entered** formula will do the same thing as the long
formula that you posted...

=PRODUCT((1+(T654:T841*(MOD(ROW(T654:T841)-8,17)=0))/100))

**Commit formula using Ctrl+Shift+Enter, not just Enter by itself

That "-8" is needed to offset the row number to an even multiple of 17 so
that the MOD function can work properly. This particular formula also works
because you are adding "1" to the division (when the MOD function does not
evaluates to zero, the expression is FALSE which makes the entire division
zero and the "1" is left over to be multiplied by the accumulated product),
if you were to add a different number then the expression would need to be
modified).

--
Rick (MVP - Excel)



"eileenfz" wrote in message
...
I need to write a PRODUCT array =PRODUCT(1+(the values in column t that
have
a value in column d that match the value in D841)-1)

Is there a way to do a PRODUCT like a SUMIF?
ex: =SUMIF(D:D,D841,M:M)

It's to replace this formula:
=((1+T654/100)*(1+T671/100)*(1+T688/100)*(1+T705/100)*(1+T722/100)*(1+T739/100)*(1+T756/100)*(1+T773/100)*(1+T790/100)*(1+T807/100)*(1+T824/100)*(1+T841/100)-1)


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,069
Default I need to write a PRODUCT formula that mimics a SUMIF

Try

=PRODUCT((1+IF(D100:D841=$D$841,T100:T841,0)/100))-1

Adjust the cell ranges as necessary.

This is an array formula which must be entered by pressing CTRL+Shift+Enter
and not just Enter. If you do it correctly then Excel will put curly brackets
around the formula {}. You can't type these yourself. If you edit the formula
you must enter it again with CTRL+Shift+Enter.

Hope this helps,

Hutch

"eileenfz" wrote:

I need to write a PRODUCT array =PRODUCT(1+(the values in column t that have
a value in column d that match the value in D841)-1)

Is there a way to do a PRODUCT like a SUMIF?
ex: =SUMIF(D:D,D841,M:M)

It's to replace this formula:
=((1+T654/100)*(1+T671/100)*(1+T688/100)*(1+T705/100)*(1+T722/100)*(1+T739/100)*(1+T756/100)*(1+T773/100)*(1+T790/100)*(1+T807/100)*(1+T824/100)*(1+T841/100)-1)

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,069
Default I need to write a PRODUCT formula that mimics a SUMIF

If you are using Excel 2007, you can use whole columns:

=PRODUCT((1+IF(D:D=$D$841,T:T,0)/100))-1

Again, this must be entered using CTRL+Shift+Enter. I'm not sure if whole
columns will work with PRODUCT in earlier versions of Excel.

Hutch

"Tom Hutchins" wrote:

Try

=PRODUCT((1+IF(D100:D841=$D$841,T100:T841,0)/100))-1

Adjust the cell ranges as necessary.

This is an array formula which must be entered by pressing CTRL+Shift+Enter
and not just Enter. If you do it correctly then Excel will put curly brackets
around the formula {}. You can't type these yourself. If you edit the formula
you must enter it again with CTRL+Shift+Enter.

Hope this helps,

Hutch

"eileenfz" wrote:

I need to write a PRODUCT array =PRODUCT(1+(the values in column t that have
a value in column d that match the value in D841)-1)

Is there a way to do a PRODUCT like a SUMIF?
ex: =SUMIF(D:D,D841,M:M)

It's to replace this formula:
=((1+T654/100)*(1+T671/100)*(1+T688/100)*(1+T705/100)*(1+T722/100)*(1+T739/100)*(1+T756/100)*(1+T773/100)*(1+T790/100)*(1+T807/100)*(1+T824/100)*(1+T841/100)-1)

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
I need a product key for my Trail product, 2007 Microsoft Office s sltchsyi Setting up and Configuration of Excel 0 May 4th 09 01:32 AM
How to write a function for column A = product of two columns, B a wlfoote Excel Worksheet Functions 5 January 24th 09 09:56 PM
SUMIF/PRODUCT & DATES Sarini Excel Worksheet Functions 2 January 31st 07 05:34 PM
SUMIF/PRODUCT with multiple Criteria not working Andi Excel Discussion (Misc queries) 4 January 22nd 07 06:01 PM
how to write 'not equals blank' criteria in SUMIF David Excel Worksheet Functions 6 May 7th 05 05:57 PM


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