**Please Note: **
This article is written for users of the following Microsoft Excel versions: 2007 and 2010. If you are using an earlier version (Excel 2003 or earlier), *this tip may not work for you*. For a version of this tip written specifically for earlier versions of Excel, click here: SUMIF Doesn't Recalc Automatically.

Johan wrote about a problem he was having with the SUMIF function in his worksheet. It seems that when the data in his worksheet changes, the SUMIF function doesn't automatically update. He is, however, able to update the formula if he selects it, presses **F2** (to jump into edit mode) and then press **Enter**.

The first, easiest, and most obvious thing to check is whether you have automatic calculation turned on. Follow these steps:

- Display the Excel Options dialog box. (In Excel 2007 click the Office button and then click Excel Options. In Excel 2010 display the File tab of the ribbon and then click Options.)
- At the left of the dialog box, click Formulas. (See Figure 1.)
- In the Calculation Options section, make sure that the Automatic radio button is selected. The other radio buttons all limit, in some way, when recalculation is done.
- Click OK.

** Figure 1.** The Formulas options of the Excel Options dialog box.

If this does not fix the problem, then it must be related to the actual SUMIF formula. For instance, you may think that the data you are changing in the worksheet is actually referenced in the SUMIF formula, but it may not be. (If it isn't, then changing the data won't change the formula results.) Check the formula to make sure that it covers the proper range.

Remember, as well, that if your worksheet is large and complex, and the SUMIF formula is in a cell that is above your data table, it is possible that you may need two calculation passes to update the SUMIF function. Why? Because when you calculate a worksheet, Excel basically calculates the cells from left to right and top to bottom. If you have a very large worksheet, with lots of dependent calculations, and the calculations on which everything else is dependent are at the bottom or right side of the worksheet, then you may get incorrect results for the SUMIF function. (This happens only with the most complex of worksheets.) The answer is to reorganize your worksheets so that the primary calculations are placed near the top of the worksheet and as far left as possible, and the calculations that are based on those primary calculations are placed later in the worksheet.

*ExcelTips* is your source for cost-effective Microsoft Excel training.
This tip (6244) applies to Microsoft Excel 2007 and 2010. You can find a version of this tip for the older menu interface of Excel here: **SUMIF Doesn't Recalc Automatically**.

**Comprehensive VBA Guide** Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out *Mastering VBA for Office 2010* today!

Press the slash key and Excel may display a series of keyboard commands near the ribbon. If this behavior drives you ...

Discover MoreWant to get a little bit of sound with your data? Excel can provide audible feedback that you may find helpful. Here's how.

Discover MoreWhen using alternative pointing devices with a computer (such as a laptop), Excel may not always behave in helpful ways. ...

Discover More**FREE SERVICE:** Get tips like this every week in *ExcelTips,* a free productivity newsletter. Enter your address and click "Subscribe."

2019-09-26 15:18:26

anon

2019-09-26 14:55:52

anon

There is one other intensely perturbing condition in Excel, when your formula is entered fine, and auto calculation is on. When you look at the cell, you see

=2+2

instead of seeing 4. Then, of all the maddening things imaginable, you hit the F2 key, and the display turns to 4!

I know what you're thinking, and no, the cell is not Text Format. Or, at least, the Excel format dialog shows General. So this is sickening. Truly.

The solution generally offered is to go Text-to-Columns, Fixed width, and Finish. That works. You can do it in the Excel interface, if you are able to find anything at all in the idiotic Ribbon system. Note, you can only fix one column at a time this way.

My VBA version of that is

Selection.TextToColumns Destination:=Selection, DataType:=xlFixedWidth, FieldInfo:=Array(Array(0, 1))

FYI I also precede that with a qualifying block based on

if selection.columns.count>1 ' You cannot go TextToColumns on more than one column

What I believe is a superior solution is to find/replace all equal signs with equal signs. Voila, formulas work like formulas.

It's incompetent of Microsoft to permit this condition and not even TELL you about it, but this is one method of addressing it.

In code that's

activesheet.usedrange.Replace What:="=", Replacement:="=", LookAt:=xlPart

This condition reputedly occurs when you paste text into a cell, such as from a webpage. The only way I know to describe it, is "semi-text format". The first time you run into it, your mouth will foam, as it is one of the most non-intuitive, visually contradictory things you I have ever seen on a computer.

(Advanced users interested in the details of this may focus on the range or cell property .HasFormula, and note that .Text has an equal sign in position 1 !!!) (until you hit F2 or otherwise correct it)

2019-01-07 12:19:01

Roy

So, top to bottom, eh? Not so much. I can enter something in the criteria column so that amount will be removed and it may work perfectly, instantly, 8-9 times out of 10. Or maybe not, no change to the SUMIF() result. Re-enter, or enter something on another row? May immediately re-calculate, or may not. I cannot recall any time when more than three entries were made before it deigned to re-calculate. But it seems arbitrary and has happened both with Excel 2013 and Excel 2016. And it always successfully re-calculates on Saving, at least so far as I ever noticed or perhaps it is simply re-calculating upon Opening.

So, it's at the top and looking to rows literally immediately below it. The criteria column is to the formula cell's right with the sum range to its right but the criteria column's left. Nothing funny in the data, to wit, the SUM()'s done upon it are done perfectly and always re-calculated upon entry/change.

I gotsta say SUMIF() has some issue, even if it is as simple as it would work if the criteria range were to the left of the sum range rather than to its right. If so, it would be nice if that were documented. I would not change the structure, but I would do that ad hoc table creation that CHOOSE() (I believe, don't use it much, look it up each time) can do to virtually switch the column order and then SUMIF(). But... I don't feel like complicating things to that degree if that's not really the answer.

Open to thoughts...

2017-06-10 13:50:14

Rod Grealish

2017-06-09 12:49:53

Alex

2015-09-03 07:01:09

Isak

Excel Professional Plus 2010, version 14.0.6112.5000

2015-03-04 21:26:09

Bose

OP, Thanks a lot.

2015-02-12 16:13:49

JK

Auto calculate is enabled - and never switches to manual.

I have one sheet per day of month that has soda inventory listed - max of 34 sheets in a workbook. (31 days plus a total sold by brand, cumulative dollar tracking, and a "dayzero" carry forward page with no linked references in the cells.

The cumulative tracking pages has 31 rows and 12 columns and uses a function macro called SumBold to tabulate total sales/IOU's/over$ short$ for an "honor system" employee soda program. It's supposed to add a row to the totals once the numbers are bolded.

Function SumBold(WorkRng As Range)

'Update 20131202

Dim Rng As Range

Dim xSum As Long

For Each Rng In WorkRng

If Rng.Font.Bold Then

xSum = xSum + Rng.Value

End If

Next

SumBold = xSum

End Function

The first time I used it - it worked great to autosum the bolded rows.

Now when I bold an additional row I have to hit F2 and enter to get the sum to update.

I've displayed formulas, I've converted everything to numbers, to general, to currency.

I'm stumped.....

2015-01-08 12:11:56

Fritz

2014-10-01 02:43:45

gerdami

I wish I had an option to force calculation bottom to top, right to left.

2014-06-22 02:46:47

Amir

i never thought a simple setting change resulted mess to my masterpiece work.

But still i got 1 question..how can it be the calculation setting change from auto to manual? since previously my formula excel setting is auto calculate..and i never change the setting..

The only last setting i do is i try to lock my excel using protect sheet in review tab. Also i select encrypt doc to lock my excel file

Does this reflect to the formula setting actually?

Sorry i still learning the excel func system..n look like noob >.<

byw thanks for your guide..

Amir

2012-03-06 06:51:08

Ken

Look at the design of your spreadsheet - whilst calculation can contain several iterations Excel may give up unless the structure follows a left to right, top to bottom flow of data style

Check your SUMIF anchor points - you will get rubbish if the criteria range cell count does not match the sum range cell count : rows if vertical sum or columns if horizontal sum

2012-02-27 15:46:25

Linda Kammerer

2012-02-27 10:14:51

Gary Lundblad

I spoke with another friend of mine who uses Excel even more than I do, and said this is a known problem. I can't recall what he said can cause it, but to correct it you may need to completely rebuild the spreadsheet, or as a short term fix, you can do a find/replace, equal for equal. That is, find all "=" signs and replace them with "=" signs. That has worked for me.

Gary

Got a version of Excel that uses the
ribbon interface (Excel 2007 or later)?
**This site is for you!** If you
use an earlier version of Excel, visit
our *ExcelTips* site focusing on the menu interface.

**FREE SERVICE:** Get tips like this every week in *ExcelTips,* a free productivity newsletter. Enter your address and click "Subscribe."

Copyright © 2023 Sharon Parq Associates, Inc.

## Comments