• 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.

Excel Formulas

thifu3

New Member
for example

A B C

3 9 5


D=A+B+C=17

I want to make highest value of D is 8 and if exceeds, then it should go to like cell E


D=8 and the rest 9 in cell E


please help
 
Hi Thifu,


Assuming your data in


A1=3

B1=5

C1=9


Put formula in


D1=IF(SUM(A1:C1)<=8,SUM(A1:C1),8)

E1=IF(D1=8,(SUM(A1:C1)-D1),0)


But i think XLD approach is better. Shorter and smarter...:)


Regards,
 
Back
Top