Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Intersect Function in Excel: Step-by-Step

· 7 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The intersect operator in Excel is a lesser-known but powerful way to reference the overlapping area between two ranges. When you type a space between two range references in a formula, Excel returns only the cells that belong to both ranges. For example, =SUM(B2:D5 C4:E7) sums only the cells in both ranges—here, C4:D5. This is useful for quickly pulling a specific intersection without complex formulas. To use it, you need nothing more than a worksheet with data and a basic understanding of cell references. Let's walk through how to use it effectively.

What You'll Need

  • A worksheet with data arranged in rows and columns—the intersect operator works on rectangular ranges.
  • Basic familiarity with entering formulas in Excel (typing an equals sign and selecting cells).
  • Excel 2010 or later (the intersect operator has been around for decades, but modern versions handle it the same way).

Step-by-Step

  1. Identify the two ranges you want to intersect. For instance, if you have a table with months in row 1 and product names in column A, you might want the cell where "Product B" meets "March." That cell is the intersection of the range that includes Product B's row and the range that includes March's column.
  2. Start typing your formula. Click the cell where you want the result, type =, and then begin building your formula. For a simple lookup, you might use =SUM(, =AVERAGE(, or just reference the intersection directly like =(.
  3. Select the first range. Click and drag to select the first range, or type its reference manually (e.g., B2:D5). Make sure the range includes the row and column you care about.
  4. Type a space. After the first range, press the spacebar once. This is the intersect operator—it's not a multiplication sign, not a comma, just a single space.
  5. Select the second range. Click and drag to select the second range, or type its reference (e.g., C4:E7). The two ranges should overlap in at least one cell; if they don't, the formula will return a #NULL! error.
  6. Close the formula and press Enter. For example, =SUM(B2:D5 C4:E7) will sum only the cells that are in both ranges. If you just want to display the intersecting cell's value, you can write =B2:D5 C4:E7 (without a function), and Excel will return the value from the overlapping cell—if there's exactly one.
  7. Test with a small example. To verify, create a simple grid: put numbers 1 to 9 in A1:C3. In a blank cell, type =SUM(A1:C3 B1:C2). The intersect is B1:C2 (four cells), so the result should be the sum of those four numbers. If you get 0 or an error, check the ranges.

That's the core. The intersect operator shines when you need to pull a value from a table based on both a row and a column header. For instance, if you have a product list in A2:A10 and months in B1:M1, and data in B2:M10, you can use =B2:M10 A5:B5 to get the value for the product in row 5 and the month in column B—but note that this only works if the row and column ranges actually overlap in a single cell. A more common approach is to use INDEX and MATCH, but the intersect operator is a quick alternative when you know the exact ranges.

Common Mistakes

  • Using a comma or asterisk instead of a space. A comma separates arguments in a function; an asterisk multiplies. Only a space performs intersection.
  • Forgetting the space. If you type =SUM(B2:D5C4:E7), Excel will see a single range and likely throw an error or treat it as a name. Always include the space.
  • Ranges that don't overlap. If the two ranges have no common cells, you'll get a #NULL! error. Double-check the row and column references.
  • Using entire rows or columns. Intersecting entire rows and columns can work (e.g., =A:A 1:1 gives cell A1), but it's easy to make mistakes with large references. Stick to specific ranges unless you're confident.
  • Expecting it to work like a lookup. The intersect operator returns a reference, not a search. If you want to find a value based on headers, you might need INDEX/MATCH instead.

Tips

  • Use named ranges for clarity. If you name a range "ProductData" and another "MarchData", you can write =SUM(ProductData MarchData)—much easier to read than cell references.
  • Combine with functions like SUM, AVERAGE, or MAX. The intersect operator returns a range, so you can wrap it in any function that accepts a range. For example, =AVERAGE(B2:D5 C4:E7) averages the overlapping cells.
  • Use it for dynamic charts or dashboards. If you have a data validation dropdown that changes a month name, you can use the intersect operator with a formula that references the selected month's column, but be careful: you'll need to build the range references dynamically, which often requires INDIRECT or INDEX.
  • Remember it's a reference, not a value. If you type =B2:D5 C4:E7 and the intersect is a single cell, you'll see that cell's value. If it's multiple cells, you'll get a #VALUE! error unless you wrap it in a function like SUM.
  • Practice with a small grid first. The operator is easy to understand when you see it work. Create a 3x3 grid and test different overlaps to build intuition.

Troubleshooting

If you get a #NULL! error: This means the ranges do not intersect. Check your references—maybe you typed the wrong row or column. For example, =B2:D5 C4:E7 works because both ranges share columns C-D and rows 4-5. But =B2:D5 E4:G7 would return #NULL! because the columns don't overlap.

If you get a #VALUE! error: This often happens when you use the intersect operator without a function and the result is more than one cell. For instance, =B2:D5 C4:E7 returns a 2x2 range, which Excel can't display in a single cell. Wrap it in SUM or another aggregating function.

If the formula seems to ignore the space: Ensure you're typing a regular space, not a non-breaking space (which can happen if you copy from a web page). Delete the space and retype it.

If it works in one cell but not another: Check that the ranges are correct for each row/column. The intersect operator is positional, not semantic—it doesn't know that "March" is a month; it just sees cell references.

If you're trying to use it with a dropdown or dynamic selection: The intersect operator requires literal references, not text. If you have a cell containing "March" and you want to intersect with that column, you'll need to convert the text to a range using INDIRECT (e.g., =SUM(B2:M10 INDIRECT("B"&MATCH(D1,A1:M1,0)&":"&"M"&MATCH(D1,A1:M1,0)))—but that's complex. Consider using INDEX/MATCH instead.

Frequently Asked Questions

What does the intersect operator do in Excel?

It returns the cells that are common to two or more ranges. You type a space between range references, and Excel evaluates the overlap. For example, =A1:B2 B1:C2 returns the cell B1 (and B2 if the ranges are larger).

Can I use the intersect operator with more than two ranges?

Yes, you can chain multiple ranges with spaces, like =SUM(A1:C3 B1:D3 C1:E3). Excel will return the cells that are in all three ranges—here, C1:C3.

Why does my formula return #NULL! even though the ranges look like they overlap?

Check that the ranges actually share both rows and columns. For instance, A1:B2 and C1:D2 don't overlap because they're in different columns. Also, ensure you're using a regular space, not a special character.

Is the intersect operator the same as the intersection of sets in math?

Conceptually yes—it returns the common elements. But in Excel, the "elements" are cells, and the ranges must be rectangular. It doesn't work with non-contiguous ranges unless you use a union operator (comma) first, which is a different thing.

Can I use the intersect operator in conditional formatting or data validation?

Yes, in conditional formatting you can use a formula that returns a reference, but it's unusual. For data validation, you can't directly use the intersect operator in the "Allow" list, but you can use a formula in the "Custom" option. However, it's rarely needed—stick to standard formulas.

Does the intersect operator work in Excel Online or Google Sheets?

Excel Online (the web version) supports the intersect operator just like the desktop app. Google Sheets does not support the space as an intersect operator—it treats it as a syntax error. In Google Sheets, you'd need to use FILTER or INDEX to achieve the same result.