SOLVED

Excel wrong calculation

%3CLINGO-SUB%20id%3D%22lingo-sub-2683101%22%20slang%3D%22en-US%22%3EExcel%20wrong%20calculation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2683101%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20is%20wrong%20here%20since%20the%20calculation%20should%20be%202000%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExcel%26nbsp%3B%3C!--%20%20%20%20%20StartFragment%20%20%20%20%20%20--%3E%3CSPAN%20class%3D%22cf0%22%3E16.0.14131.20278)%2032-bit%20on%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22cf0%22%3EWindows%2010%2021H1%20all%20updastes%20installed.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C!--%20%20%20%20%20EndFragment%20%20%20%20%20%20--%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Excel%20calculation%20error.png%22%20style%3D%22width%3A%20655px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F305625iCF5DDBDCC8329192%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Excel%20calculation%20error.png%22%20alt%3D%22Excel%20calculation%20error.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2683101%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2683134%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20wrong%20calculation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2683134%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F138237%22%20target%3D%22_blank%22%3E%40Robert%20Vilhelmsen%3C%2FA%3E%26nbsp%3Byou've%20got%20the%20wrong%20formula...%20Excel%20has%20calculated%20correctly%20using%20BODMAS%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20your%20answer%20to%20be%202000%20you%20would%20need%20the%20formula%20to%20be%20%3CSTRONG%3E%3D(E11-F11)*G11%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2683137%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20wrong%20calculation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2683137%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F138237%22%20target%3D%22_blank%22%3E%40Robert%20Vilhelmsen%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EMultiplication%20has%20precedence%20above%20subtraction%2C%20so%20200-100*20%20is%20evaluated%20as%20200-(100*20)%20%3D%20200-2000%20%3D%20-1800.%3C%2FP%3E%0A%3CP%3EIf%20you%20want%20to%20force%20Excel%20to%20subtract%20first%2C%20you%20must%20use%20parentheses%20to%20specify%20the%20calculation%20order%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3D(E11-F11)*G11%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESee%20%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fthe-order-in-which-excel-performs-operations-in-formulas-28eaf0d7-7058-4eff-a8ea-0a835fafadb8%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EThe%20order%20in%20which%20Excel%20performs%20operations%20in%20formulas%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi,

 

What is wrong here since the calculation should be 2000?

 

Excel 16.0.14131.20278) 32-bit on Windows 10 21H1 all updastes installed.

 

Excel calculation error.png

3 Replies
best response confirmed by Robert Vilhelmsen (Occasional Contributor)
Solution

@Robert Vilhelmsen you've got the wrong formula... Excel has calculated correctly using BODMAS

 

For your answer to be 2000 you would need the formula to be =(E11-F11)*G11

@Robert Vilhelmsen

Multiplication has precedence above subtraction, so 200-100*20 is evaluated as 200-(100*20) = 200-2000 = -1800.

If you want to force Excel to subtract first, you must use parentheses to specify the calculation order:

 

=(E11-F11)*G11

 

See The order in which Excel performs operations in formulas 

Thank you