• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Calculate SUM of Row with 5% Less

@Nitin Shardul

Two Alternative:

1. =IF(SUMPRODUCT(--(B5:D5>0))=3,SUM(B5:D5)-(SUM(B5:D5)*5%),SUM(B5:D5)) --- Normal formula in E5 and copy down.

2.=IF(AND(B5:D5>0),SUM(B5:D5)-(SUM(B5:D5)*5%),SUM(B5:D5)) in E5 and copy down... this is array formula so must be entered with Ctrl+Shift+Enter.

Regards,
 
Heres a slight twist:
=SUM(B5:D5)*(1-(5%*(SUMPRODUCT(--(B5:D5>0))=3)))
 
Sure Hui ... That' thing not came to my mind @ first instinct.

If values are always going to be +ve or 0 than here another option:
=IF(MIN(B5:D5),SUM(B5:D5)*0.95,SUM(B5:D5))

Regards,
 
Back
Top