Available in Sets.xla, a Microsoft© Excel add-in.
Click "DifferenceRA",or scroll this page for DifferenceRA examples.
Click on another function in the browser window to read about it.

In these examples, the contents of each cell in the argument is a simple list.
| A1 | B1 | =DifferenceRA(A1:B1) |
|---|---|---|
| 1,2,3,4,5 | 1,2,3 | {4,5} |
| Cell | Contents |
|---|---|
| A1 | 1,2,3,4,5 |
| A2 | 1,2,3 |
| A3 | 2 |
| =DifferenceRA(A1:A3) | {2,4,5} |
In these examples, each cell in the argument is treated as a set.
The contents of each cell are treated as elements.
| Example | A1 | B1 | =DifferenceRA(A1:B1) |
|---|---|---|---|
| 1 | {1,2,3,4,5} | {1,2,3} | {{1,2,3,4,5}} |
| 2 | {1,2,3,4,5},1 | {1,2,3} | {{1,2,3,4,5},1} |
| 3 | {1,2,3,4,5},1 | {1,2,3},1 | {{1,2,3,4,5}} |
| Cell | Contents |
|---|---|
| A1 | {1,2,3,4,5},{1,2,3},1 |
| A2 | {1,2,3} |
| A3 | {1} |
| =DifferenceRA(A1:A3) | {{1,2,3,4,5},1} |
| Cell | Contents |
|---|---|
| A1 | 1,2,3,4,5 |
| A2 | 1,2,3 |
| A3 | 4 |
| =DifferenceRA(WVName) | {1,2,3,5} |
| =DifferenceRA(A1,A3) | #VALUE! |
If the cells are referenced directly, a #VALUE results.
Created on ... January 02, 2002