SOLVED

Excel formulas with curly brackets not updating

%3CLINGO-SUB%20id%3D%22lingo-sub-3363076%22%20slang%3D%22en-US%22%3EExcel%20formulas%20with%20curly%20brackets%20not%20updating%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3363076%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20is%20in%20Excel%20365%20and%20also%20Excel%202016.%3CBR%20%2F%3EI've%20my%20excel%20data%20and%20I've%20created%20a%20formula.%20This%20formula%20works%20just%20fine%20-%20to%20start%20with.%3C%2FP%3E%3CP%3EThe%20actual%20formula%20perhaps%20doesn't%20matter%2C%20but%20this%20is%20it%20-%26gt%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3DSUM(IF((C2%3AC1142%3D0)*(B2%3AB1142%3D4)%2CA2%3AA1142))%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EWhat%20it's%20doing%20is%20adding%20up%20the%20contents%20of%20column%20A%20(from%20matching%20rows)%2C%20if%20the%20contents%20of%20column%20C%20is%200%20and%20column%20B%20is%204.%26nbsp%3B%20This%20works%20fine.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20issue%20is%20if%20I%20try%20to%20update%20that%20cell%20with%20the%20formula.%20It%20always%20returns%200%2C%20even%20if%20I%20for%20example%20enlarge%20the%20data%20set%20to%20use%20C3%2C%20B3%2C%20A3%20rather%20than%20C2%2C%20B2%2C%20A2%20in%20the%20example.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20I've%20noticed%20is%20that%20calculation%20options%20are%20set%20to%20automatic.%3C%2FP%3E%3CP%3EIf%20I%20click%20into%20the%20cell%20with%20the%20formula%20I%20can%20see%20it%20in%20the%20editing%20area%2C%20but%20it%20has%20%7B%20%7D%20around%20it.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22_delp__0-1652341618502.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F371103iDA8DDC7DDD1E92D3%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22_delp__0-1652341618502.png%22%20alt%3D%22_delp__0-1652341618502.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EIf%20I%20then%20click%20into%20that%20editing%20area%20it%20changes%20to%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22_delp__1-1652341867597.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F371104i3583E75EA60F3E1A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22_delp__1-1652341867597.png%22%20alt%3D%22_delp__1-1652341867597.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Ewhich%20is%20what%20I'd%20expect.%26nbsp%3B%3C%2FP%3E%3CP%3EThen%20I%20edit%20it%20(2%20to%203's)%2C%20the%20cell%20with%20the%20formula%20changes%20from%20it's%20value%20(say%2050)%20to%200%20which%20is%20wrong%20and%20then%20if%20I%20click%20in%20the%20cell%20again%20to%20see%20the%20formula%20the%20%7B%20%7D%20are%20gone.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22_delp__2-1652342013243.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F371105iA6F8F86E72B2ECCE%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22_delp__2-1652342013243.png%22%20alt%3D%22_delp__2-1652342013243.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20I'm%20not%20sure%20if%20it's%20seeing%20it%20as%20a%20formula%20or%20not.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20updated%20cell%20does%20have%20a%20green%20triangle%20in%20the%20corner%20now%20as%20well%2C%20which%20seems%20to%20suggest%20an%20error%2C%20but%20what%2C%20I'm%20not%20sure%20as%20it's%20the%20same%20formula%20but%20removing%20a%20row%20of%20data.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22_delp__3-1652342431894.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F371106iA2F072B83E2CC169%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22_delp__3-1652342431894.png%22%20alt%3D%22_delp__3-1652342431894.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EAny%20advice%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3363076%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-3363243%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formulas%20with%20curly%20brackets%20not%20updating%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3363243%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1388024%22%20target%3D%22_blank%22%3E%40_delp_%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EConfirm%20the%20formula%20with%20Ctrl%2BShift%2BEnter%20each%20time%20you%20edit%20it.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3363624%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formulas%20with%20curly%20brackets%20not%20updating%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3363624%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F127945%22%20target%3D%22_blank%22%3E%40Hans%20Vogelaar%3C%2FA%3E%26nbsp%3BThat's%20great%20to%20know%20that%20shortcut%2C%20but%20why%3F%26nbsp%3B%20Why%20do%20I%20have%20to%20do%20that%3F%20Why%20doesn't%20the%20green%20tick%20do%20whatever%20that%20shortcut%20does%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethanks%20%3Athumbs_up%3A%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3363685%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formulas%20with%20curly%20brackets%20not%20updating%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3363685%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1388024%22%20target%3D%22_blank%22%3E%40_delp_%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20curly%20brackets%20%7B%20%7D%20indicate%20that%20the%20formula%20is%20a%20so-called%20array%20formula.%20See%20%3CA%20href%3D%22https%3A%2F%2Fexceljet.net%2Fglossary%2Farray-formula%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EArray%20formula%3C%2FA%3E%20for%20more%20info.%3C%2FP%3E%0A%3CP%3EThe%20curly%20brackets%20are%20created%20by%20pressing%20Ctrl%2BShift%2BEnter%2C%20you%20should%20not%20type%20them%20yourself.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERemark%3A%20in%20Excel%20in%20Microsoft%20365%20and%20in%20Office%202021%2C%20it%20is%20no%20longer%20necessary%20to%20do%20that%3B%20all%20formulas%20are%20automatically%20evaluated%20as%20array%20formulas.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3363744%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20formulas%20with%20curly%20brackets%20not%20updating%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3363744%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1388024%22%20target%3D%22_blank%22%3E%40_delp_%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESomething%20else%20I%20used%20to%20do%20with%20legacy%20versions%20of%20Excel%20(mine%20was%202010)%20was%20to%20enter%20the%20formula%20as%20the%20'Refers%20to'%20value%20of%20a%20defined%20Name.%26nbsp%3B%20Excel%20always%20did%20complete%20the%20calculation%20as%20a%20defined%20name%20whereas%20the%20same%20formula%20on%20the%20grid%20worked%20with%20single%20values%20extracted%20from%20the%20input%20arrays.%26nbsp%3B%20CSE%20was%20the%20cumbersome%20way%20of%20telling%20the%20Excel%20worksheet%20formula%20that%20it%20was%20to%20use%20the%20entire%20arrays%20rather%20than%20performing%20the%20'implicit%20intersection'%20step%20first.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

This is in Excel 365 and also Excel 2016.
I've my excel data and I've created a formula. This formula works just fine - to start with.

The actual formula perhaps doesn't matter, but this is it -> 

=SUM(IF((C2:C1142=0)*(B2:B1142=4),A2:A1142))

What it's doing is adding up the contents of column A (from matching rows), if the contents of column C is 0 and column B is 4.  This works fine.

 

This issue is if I try to update that cell with the formula. It always returns 0, even if I for example enlarge the data set to use C3, B3, A3 rather than C2, B2, A2 in the example. 

 

What I've noticed is that calculation options are set to automatic.

If I click into the cell with the formula I can see it in the editing area, but it has { } around it.

_delp__0-1652341618502.png

If I then click into that editing area it changes to 

_delp__1-1652341867597.png

which is what I'd expect. 

Then I edit it (2 to 3's), the cell with the formula changes from it's value (say 50) to 0 which is wrong and then if I click in the cell again to see the formula the { } are gone.

_delp__2-1652342013243.png

 

So I'm not sure if it's seeing it as a formula or not.

 

The updated cell does have a green triangle in the corner now as well, which seems to suggest an error, but what, I'm not sure as it's the same formula but removing a row of data.

_delp__3-1652342431894.png

Any advice?

 

4 Replies
best response confirmed by _delp_ (New Contributor)
Solution

@_delp_ 

Confirm the formula with Ctrl+Shift+Enter each time you edit it.

@Hans Vogelaar That's great to know that shortcut, but why?  Why do I have to do that? Why doesn't the green tick do whatever that shortcut does?

 

thanks

@_delp_ 

The curly brackets { } indicate that the formula is a so-called array formula. See Array formula for more info.

The curly brackets are created by pressing Ctrl+Shift+Enter, you should not type them yourself.

 

Remark: in Excel in Microsoft 365 and in Office 2021, it is no longer necessary to do that; all formulas are automatically evaluated as array formulas.

@_delp_ 

Something else I used to do with legacy versions of Excel (mine was 2010) was to enter the formula as the 'Refers to' value of a defined Name.  Excel always did complete the calculation as a defined name whereas the same formula on the grid worked with single values extracted from the input arrays.  CSE was the cumbersome way of telling the Excel worksheet formula that it was to use the entire arrays rather than performing the 'implicit intersection' step first.