Conditional Array Formula

M

macb

I am trying create an Array formula using Product Function.

I have a table col1 with date and col2 with numbers for each date.

My Array formula is : =(Product(A2:A100/100+1)-1)*100).. This will
give me the product of that specified range.

I want to put an if condition within this formula in order to find the
Product between two periods.
I tried the following Array Formula, but it does not works:

=IF((F40>=A2:A100)*(F41<=A2:A100),(PRODUCT(A2:A100/100+1)-1)*100,1)

where F40 is start Date and F41 is end date.


Any help highly appreicated.

Thanks


mac
 
S

smartin

macb said:
I am trying create an Array formula using Product Function.

I have a table col1 with date and col2 with numbers for each date.

My Array formula is : =(Product(A2:A100/100+1)-1)*100).. This will
give me the product of that specified range.

I want to put an if condition within this formula in order to find the
Product between two periods.
I tried the following Array Formula, but it does not works:

=IF((F40>=A2:A100)*(F41<=A2:A100),(PRODUCT(A2:A100/100+1)-1)*100,1)

where F40 is start Date and F41 is end date.


Any help highly appreicated.

Thanks


mac

Try this (array formula):

=PRODUCT(IF((F40>=A2:A100)*(F41<=A2:A100),((A2:A100/100+1)-1)*100,1))
 
M

macb

Try this (array formula):

=PRODUCT(IF((F40>=A2:A100)*(F41<=A2:A100),((A2:A100/100+1)-1)*100,1))- Hide quoted text -

- Show quoted text -

Thanks for the try. Does not worked. It gives me 0 result.


Regards

Mac
 
M

macb

Try this (array formula):

=PRODUCT(IF((F40>=A2:A100)*(F41<=A2:A100),((A2:A100/100+1)-1)*100,1))- Hide quoted text -

- Show quoted text -

Thanks. With some tweaks it worked.

Regards

Mac
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top