When the first character is an equal (=) or minus (-) sign, Excel thinks its a formula

I am trying to get the cell count from an excel sheet depending on the filter I add, so that I can get different cell counts depending on the filters.

I have the following formula

=SUMPRODUCT(SUBTOTAL(3,OFFSET(Cybersecurity!A1:A208,ROW(Cybersecurity!F1:F208)-MIN(ROW(Cybersecurity!F1:F208)),,1)), --( Cybersecurity!F1:F208="Name"))

However when I insert this in the cell, I am getting an error :=

When the first character is an equals or a minus sign, Excel thinks it's a formula

I checked my locale settings and its accepting the comma sign.

Can I change it in a way that Excel can accept this formula?

Thanks for your help and time

You’ve probably seen it already: Starting a formula in Excel with “=+” (equal-plus) instead of just equal. So why do people use the “=+” instead of just “=”? Is there any meaning? This article describes the background of the equal-plus signs, the advantages and disadvantages.

What does the equal-plus sign mean?

When the first character is an equal (=) or minus (-) sign, Excel thinks its a formula
If you type +A1, Excel automatically adds the equal sign.

Lotus 1-2-3 is a spreadsheet program and according to Wikipedia, it “was the IBM PC’s first killer application”. However, the last version was published in 2003 and support ended in 2014. Entering formulas or values in Lotus 1-2-3 you could use the “+”-sign instead of “=” like in Excel. In order to welcome Lotus 1-2-3 users, Excel tolerated entering formulas just using the “+”-sign. It automatically adds the “=”-sign before so that formulas are converted. The “+”-sign stays.

Advantages and disadvantages of the =+-sign

When the first character is an equal (=) or minus (-) sign, Excel thinks its a formula

First of all: There is no harm of the =+-sign in the beginning of an Excel formula. With that in mind, let’s talk about advantages and disadvantages of using equal-plus instead of just equal for Excel formulas and calculations.

Advantages

When the first character is an equal (=) or minus (-) sign, Excel thinks its a formula
The = and + signs on the US keyboard layout.

  • Lotus 1-2-3 users don’t have to change their behavior of entering formulas in Excel.
  • The “+”-sign is also located on the number pad like on the image on the right-hand side. So if your hand is there you don’t have to move over to the letters.
  • The additional “+”-sign has no significant impact on the calculation performance. Same counts for the file size.

Disadvantages

  • It makes formulas slightly longer and therefore more difficult to read.
  • It could confuse other users who don’t know the details about “=+”-sign as you do now.
  • If you following the basic rules of model-building, you either type values directly into the cell (with no calculation). You don’t do calculation with values inside a cell, instead you properly label input cells and link to them. For example, you don’t write =12,3+32,1. Instead, you set up two cell, each of them having one value. In a third cell, you do the calculation with the input values, e.g. =A2+A3.That means, you never need an equal or plus sign on the number pad. Instead, you rather need letters to start typing formulas or brackets. Because of that, the equal sign should be faster to reach because (on the US keyboard layout) it’s located next to the backspace without pressing Shift.

    So it’s faster typing “=” instead of “+”.


    There is one exception: For different keyboard layout, often the equal and the plus-signs are in different positions. For instance, the German keyboard layout requires to hold the Shift key for typing “=” whereas the “+”-sign doesn’t.
  • It looks – and this is my personal opinion – “dirty”.

Don’t mix =+ (equal-plus) up with – – (double minus)

Maybe it sounds similar, but the equal-plus sign for starting a formula in Excel doesn’t have anything to do with the double minus sign. The double negative converts TRUE and FALSE in formulas to the number 0 for FALSE and 1 for TRUE. When do you need that? For example in the SUMPRODUCT formula (please refer to this article for more information).

How to get rid of the equal-plus sign

When the first character is an equal (=) or minus (-) sign, Excel thinks its a formula
Clean all Excel formulas with ‘Professor Excel Tools’.

There are two methods to remove all “=+”-signs in Excel.

  1. Use the replace function. Press Ctrl + H on the keyboard to open the Replace window. Now replace =+ by just =. You can further set the scope to the complete workbook.
    One word of caution: This method removes all =+-sign, also within text cells.
  2. Use Professor Excel Tools. Our popular Excel add-in has a function to clean all formulas. It replaces all “=+” by “=” and also can remove all sheet names within formulas, if the formula refers to the own worksheet. It’s very convenient, because it only regards formula cells.

Summary and my opinion

When the first character is an equal (=) or minus (-) sign, Excel thinks its a formula

Although the “=+”-sign doesn’t harm and doesn’t have any special meaning, there is no real advantage of using the “+”-sign to type a formula in Excel. Instead, there are minor disadvantages of the equal-plus version of formulas in Excel. And – and that’s my personal opinion on that matter – it looks dirty is just unnecessary

When I receive an Excel file containing formulas with equal-plus signs, I usually have the following thoughts: Someone wants to show that he or she is an Excel expert by not using the “normal” way of typing formulas but rather using the more complicated way. Unfortunately, I get the opposite impression. The author of the Excel file didn’t use the simple way but rather the dirty, more complicated way. That’s not good for an Excel file.

What do you think? What is your opinion about the =+-characters at the beginning of an Excel formula?

Has Microsoft pushed out a crummy update?

=IF(A1="",B1,A1)

no longer works. I get the pop-up:

here is a problem with this formula. Not trying to type a formula? When the first character is an equal (=) or minus (-) sign, Excel thinks it's a formula:

  • you type: =1+1, cell shows: 2

To get around this, type an apostrophe (') first:

  • you type: '=1+1, cell shows: =1+1*

Cell/column is of General format, not text.

1