Hello everyone - I was hoping to get a little help with this formula (in COL BE2), please:
=IF(AND($AP2="x",$AW2="L",I3>BC2),J3-AY2,IF(AND($AP2="x",$AW2="S",H3<BC2),AY2-J3,IF(AND($AP2="x",$AW2="L",I3<=BC2),BC2-AY2,IF(AND($AP2="x",$AW2="S",H3>=BC2),AY2-BC2,""))))
It does what it is supposed to do, except that if cell AY2 is blank (which it sometimes is), it returns #VALUE , which then messes up the BE column sum.
I would like it to calculate IF cell AY is NOT BLANK. If it is blank, it would like the formula to not evaluate, and return something that unlike a #VALUE , or #N/A, will allow column BE to sum without errors.
Any help much appreciated - thank you all!
=IF(AND($AP2="x",$AW2="L",I3>BC2),J3-AY2,IF(AND($AP2="x",$AW2="S",H3<BC2),AY2-J3,IF(AND($AP2="x",$AW2="L",I3<=BC2),BC2-AY2,IF(AND($AP2="x",$AW2="S",H3>=BC2),AY2-BC2,""))))
It does what it is supposed to do, except that if cell AY2 is blank (which it sometimes is), it returns #VALUE , which then messes up the BE column sum.
I would like it to calculate IF cell AY is NOT BLANK. If it is blank, it would like the formula to not evaluate, and return something that unlike a #VALUE , or #N/A, will allow column BE to sum without errors.
Any help much appreciated - thank you all!