edwardpestian
Technical User
I have the following IF statement. I'm simply trying to expand the second IF statement within the MIN function to say IF the range b16:b25 <> "ber" or "iw" I'm trying to say that if the date in A16:A25 and "ber" or "iw" is in the range B16:25, then skip to the next date in the range A16:A25 that doesn't have "ber" or "iw" in column B, and then subtract A15 from that date. If its greater than 90 days then -1, otherwise zero.
{=IF($A15=0,"",IF($A16-$A15>90,-1,IF(MIN(IF($A16:$A25<TODAY(),IF($B16:$B25<>"ber",$A16:$A25),0))-$A15>90,-1,0)))}
The above function returns -1. So adding the OR statement should still return -1 as only one of the conditions needs to be met.
For some reason however, when I add the OR statement, I keep getting a value of zero.
{=IF($A15=0,"",IF($A16-$A15>90,-1,IF(MIN(IF($A16:$A25<TODAY(),IF(OR($B16:$B25<>"ber",B16:B25<>"iw",$A16:$A25),0)))-$A15>90,-1,0)))}
Thanks.
ep
{=IF($A15=0,"",IF($A16-$A15>90,-1,IF(MIN(IF($A16:$A25<TODAY(),IF($B16:$B25<>"ber",$A16:$A25),0))-$A15>90,-1,0)))}
The above function returns -1. So adding the OR statement should still return -1 as only one of the conditions needs to be met.
For some reason however, when I add the OR statement, I keep getting a value of zero.
{=IF($A15=0,"",IF($A16-$A15>90,-1,IF(MIN(IF($A16:$A25<TODAY(),IF(OR($B16:$B25<>"ber",B16:B25<>"iw",$A16:$A25),0)))-$A15>90,-1,0)))}
Thanks.
ep