Hi Chandan,

Welcome to the forum.

See the attached file, cell E13 and in case of issues, enter your expected results in E13 and E14 . thanks.
CONDITIONAL RUNNING TOTAL.xlsx

Regards,
DILIPandey

<click on below 'star' if this helps>