Pro User
Timespan
explore our new search
​
Double Dash: Supercharge Excel Formulas
Excel
Nov 25, 2025 3:32 AM

Double Dash: Supercharge Excel Formulas

by HubSite 365 about Kenji Farré (Kenji Explains) [MVP]

Co-Founder at Career Principles | Microsoft MVP

Excel Double Dash boosts formulas, converts text to numbers, counts weekend dates and multi criteria cases with Power BI

Key insights

  • Double Dash (--): The video explains the double dash as a simple operator that converts logical results into numbers, turning TRUE into 1 and FALSE into 0.
    Use it when you need numeric values from logical tests.
  • How it works: The first minus turns TRUE to -1 and FALSE to 0; the second minus flips -1 to 1 and leaves 0 unchanged.
    Example: =SUMPRODUCT(--(A1:A10>10)) converts the TRUE/FALSE array to 1s and 0s so SUMPRODUCT can add them.
  • Common uses: Convert text-form numbers to real numbers, evaluate dates (for example, count weekend dates), and turn LEN or other function results into numeric arrays for calculations.
    This removes the need for helper columns.
  • Works well with functions: Pair the double dash with SUMPRODUCT, INDEX/MATCH and other array-aware functions to perform multi-criteria counts and filtered sums.
    Example pattern: =SUMPRODUCT(--(Range1=Criteria1),--(Range2=Criteria2)).
  • Dynamic Arrays and modern Excel: The double dash integrates smoothly with Excel’s dynamic arrays, letting formulas spill results without extra steps.
    Recent engine updates make combining the double dash with new operators more flexible.
  • Best practices: Use the double dash to simplify formulas and avoid extra columns, but keep formulas readable with comments or named ranges.
    Reserve it for array logic and multi-criteria calculations to get the biggest benefit.

Video Snapshot: Who, What and Why

In a clear YouTube tutorial, Kenji Farré (Kenji Explains) [MVP] walks viewers through the practical use of the double dash operator in Microsoft Excel. The video frames the double dash as a simple trick that unlocks smarter formulas, and then proceeds to demonstrate six examples that range from basic to advanced. As a result, the presentation is useful for both casual users who want neat shortcuts and analysts seeking compact array solutions.


The author starts by explaining the core idea: converting logical values like TRUE and FALSE into numeric values 1 and 0, so they can be used directly in arithmetic and aggregation functions. Then the tutorial moves progressively through converting text numbers, handling dates, using length functions, multi-criteria counting, and a final advanced overtime-cost example. Consequently, viewers see how the same coercion idea powers many different calculations.


How the Double Dash Works and Why It Matters

Kenji explains that the double dash is a form of unary coercion: the first minus sign converts TRUE to -1 and FALSE to 0, while the second minus sign flips -1 back to 1 and leaves 0 unchanged. Thus the operator produces an array of 1s and 0s that functions like a numeric mask for calculations. This conversion is especially valuable in functions such as SUMPRODUCT and other array-aware formulas.


Moreover, the video highlights that the double dash removes the need for helper columns in many scenarios, making spreadsheets more compact. However, Kenji also notes that compact formulas can become harder to read, so users should balance brevity with maintainability when collaborating or handing off files. In short, the operator trades some clarity for elegance and flexibility.


Practical Examples Demonstrated

Kenji organizes the content into six practical demonstrations. First, he shows the basic conversion of TRUE/FALSE to 1/0, and then he demonstrates how the double dash converts numeric strings to real numbers so they can participate in arithmetic. Next, he applies the technique to date handling, for example counting how many dates fall on weekends, which underscores how coercion works with the WEEKDAY function and logical tests.


In later segments, Kenji uses the operator with LEN to count text lengths and with multiple criteria to find employees who meet two conditions simultaneously. The final example calculates overtime costs for Sales employees on weekends, combining department filters, date checks, and numeric coercion into a single formula. Collectively, these cases show the operator’s versatility across common business scenarios.


Tradeoffs and Challenges to Consider

While the double dash is powerful, Kenji points out tradeoffs that deserve attention. For one, highly compact array formulas can be hard for colleagues to debug, particularly if the spreadsheet must be maintained by different teams. Also, older Excel versions or incompatible platforms may treat arrays differently, so reliance on advanced coercion might reduce portability.


Performance is another consideration: on very large datasets, massive array calculations can slow workbooks. Therefore, Kenji suggests testing alternatives such as using helper columns for intensive calculations or leveraging newer functions where available. Furthermore, edge cases like text that cannot convert cleanly or cells with errors require extra checks, because coercion can propagate undesirable results if not guarded.


Alternatives and Best Practices

Throughout the video, Kenji mentions alternative approaches like using the VALUE or N functions to coerce text into numbers, or explicit IF logic to make intent clearer. He argues that while these alternatives sometimes improve readability, they can also add steps and clutter. Thus, choosing between clarity and compactness depends on context, audience, and performance needs.


Best practices offered include adding short comments to complex formulas, testing on a subset of data before applying to entire sheets, and documenting assumptions when using coercion. Also, Kenji recommends preferring the double dash in situations where a single-cell formula replaces many helper columns, but reverting to helper columns when traceability matters more.


Takeaway for Spreadsheet Users

Kenji Farré’s video provides a practical, example-driven case for keeping the double dash in every Excel user's toolbox. The technique simplifies many array and conditional calculations while remaining compact and effective, and the video’s stepwise examples help viewers apply the idea immediately to real tasks. Consequently, users can save time and reduce sheet clutter when they apply the method appropriately.


However, the tutorial is balanced in tone: it urges users to weigh readability, compatibility, and performance before adopting aggressive coercion widely. Ultimately, the video equips viewers with a useful tactic and the judgment to pick the right approach for their workflow, making the double dash a pragmatic, not a dogmatic, addition to everyday Excel work.


Excel - Double Dash: Supercharge Excel Formulas

Keywords

double dash Excel, double unary Excel, -- operator Excel, smarter Excel formulas, Excel formula tricks, convert TRUE to 1 Excel, Excel array formulas, Excel boolean conversion