Mr_Patrick
New Member
- Joined
- Feb 24, 2017
- Messages
- 8
Hi everyone,
I am trying to define a formula which takes the product of a specified range, where, if the value of any cell (taken individually!) happens to be between (-1,1), then the function will first take the inverse of those values before multiplying every value together. The function is also told to ignore zero values.
For example, if I have
[TABLE="width: 200"]
<tbody>[TR]
[TD]2
[/TD]
[TD]0.4
[/TD]
[TD][/TD]
[TD]1
[/TD]
[TD]-0.9
[/TD]
[/TR]
</tbody>[/TABLE]
then I wish my function to calculate : 2*(1/0.4)*1*(1/-0.9)
I have tried something like :
{=PRODUCT(IF(A1:E1<>0;IF(AND(-1<=A1:E1;A1:E1<=1);1/A1:E1;A1:E1)))<B5:i5;b5:i5<1);1 B5:I5;B5:I5)))
}
<B5:i5;b5:i5<1);1 A1:E1;A1:E1)))
<B5:i5;b5:i5<1);1 B5:I5;B5:I5)))}
The above function correctly ignores zero valued cells, but I noticed that the argument of PRODUCT is either be the whole A1:E1 or each of its values inverted.
I would like the function to check each cell individually and apply the inversion when the condition is met, before patching up the values and feeding them to the Product function
<B5:i5;b5:i5<1);1 B5:I5;B5:I5)))
Can someone help me out?
<B5:i5;b5:i5<1);1 B5:I5;B5:I5)))
Thank you in advance.</B5:i5;b5:i5<1);1></B5:i5;b5:i5<1);1></B5:i5;b5:i5<1);1></B5:i5;b5:i5<1);1></B5:i5;b5:i5<1);1>
I am trying to define a formula which takes the product of a specified range, where, if the value of any cell (taken individually!) happens to be between (-1,1), then the function will first take the inverse of those values before multiplying every value together. The function is also told to ignore zero values.
For example, if I have
[TABLE="width: 200"]
<tbody>[TR]
[TD]2
[/TD]
[TD]0.4
[/TD]
[TD][/TD]
[TD]1
[/TD]
[TD]-0.9
[/TD]
[/TR]
</tbody>[/TABLE]
then I wish my function to calculate : 2*(1/0.4)*1*(1/-0.9)
I have tried something like :
{=PRODUCT(IF(A1:E1<>0;IF(AND(-1<=A1:E1;A1:E1<=1);1/A1:E1;A1:E1)))<B5:i5;b5:i5<1);1 B5:I5;B5:I5)))
}
<B5:i5;b5:i5<1);1 A1:E1;A1:E1)))
<B5:i5;b5:i5<1);1 B5:I5;B5:I5)))}
The above function correctly ignores zero valued cells, but I noticed that the argument of PRODUCT is either be the whole A1:E1 or each of its values inverted.
I would like the function to check each cell individually and apply the inversion when the condition is met, before patching up the values and feeding them to the Product function
<B5:i5;b5:i5<1);1 B5:I5;B5:I5)))
Can someone help me out?
<B5:i5;b5:i5<1);1 B5:I5;B5:I5)))
Thank you in advance.</B5:i5;b5:i5<1);1></B5:i5;b5:i5<1);1></B5:i5;b5:i5<1);1></B5:i5;b5:i5<1);1></B5:i5;b5:i5<1);1>