close

In a chart where columns G and L are used to record the entry and exit dates,
column S reflects the number of weeks (difference). I used the formula
=(L-G)/7. This formula works when dates are entered in columns G and L.
However, if either cell is empty, I get the quot;valuequot; error message. How can I
revise the formula that produces a 0 if columns G and L arte empty?

Thanks

=IF(AND(L5=0,G5=0),0,(L5-G5)/7)quot;Jackquot; wrote:

gt; In a chart where columns G and L are used to record the entry and exit dates,
gt; column S reflects the number of weeks (difference). I used the formula
gt; =(L-G)/7. This formula works when dates are entered in columns G and L.
gt; However, if either cell is empty, I get the quot;valuequot; error message. How can I
gt; revise the formula that produces a 0 if columns G and L arte empty?
gt;
gt; Thanks

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()