Nov 15 2018 02:00 PM
Nov 15 2018 02:00 PM
OK so I have 4 cells and I need the below
2 cells have separate formulas to determine amount (D26, I26)
I have one set cell (B11) that changes with only a sum of 2 other cells
Then the cell in which I need the formula B28
I want this cell to be If D26 >= B11 then use D26, if D26 < B11 use B11. This part of a formula I can do but struggling with adding another variable - BUT if D26 = 0 then if I26 >=B11, I26 or if I26 , B11,B11.
so Basically either D26 or I26 will have a value and the other will have 0. So I need B28 to give me whichever of D26,i26 OR B11 is the greater amount and return that in the cell.
Any help greatly appreciated.
Nov 15 2018 03:25 PM - edited Nov 15 2018 05:09 PM
Hi Sergei,
I have tried your suggested and I get the #value error?
D26 is currently at 0 and I26 is currently at a value which is lower than B11.
Nov 15 2018 06:51 PM
Nov 15 2018 06:51 PM
Nov 16 2018 10:36 AM
Nicki, could you please clarify the logic, last part
if D26 = 0 then if I26 >=B11, I26 or if I26 , B11,B11.
and my understanding you compare with I26 if only D26=0, otherwise that's max of D26, B11
Nov 19 2018 05:31 PM
Hi Sergei,
Sorry yes I was not good at explaining it. I want B28 to give me if D26 is zero then the greater of I26 or B11 OR if I26 is zero then the greater of D26 or B11.
Does this make sense now?
Nov 20 2018 04:05 AM
SolutionHi Nicki,
When perhaps
=(D26=0)*((I26<>0)*MAX(I26,B11)+(I26=0)*B11)+(D26<>0)*((I26=0)*MAX(D26,B11)+(I26<>0)*MAX(B11,D26,I26))
if consider all possible combinations.
It's in attached file
Nov 22 2018 08:48 PM
Thanks so very much Sergei.
This formula works perfectly. Your amazing. This was way too complicated for me to work out.
Nov 20 2018 04:05 AM
SolutionHi Nicki,
When perhaps
=(D26=0)*((I26<>0)*MAX(I26,B11)+(I26=0)*B11)+(D26<>0)*((I26=0)*MAX(D26,B11)+(I26<>0)*MAX(B11,D26,I26))
if consider all possible combinations.
It's in attached file