# BUT NOT advanced search

**URL:** <https://community.rootsmagic.com/t/but-not-advanced-search/16273>\
**Category:** RootsMagic\
**Tags:** tip, rootsmagic\
**Created:** [September 29, 2026, 8:13pm UTC](https://community.rootsmagic.com/t/but-not-advanced-search/16273 "2026-09-29T20:13:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevync1985](https://avatars.discourse-cdn.com/v4/letter/k/3be4f8/32.png) [@kevync1985](https://community.rootsmagic.com/u/kevync1985)\
**Post date:** [September 29, 2026, 8:13pm UTC](https://community.rootsmagic.com/t/but-not-advanced-search/16273/1 "2026-09-29T20:13:54Z")

</div>

One tip on “BUT NOT” it is the equivalent of AND NOT logically speaking

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/rootsmagic/original/2X/0/0de4d0429fa885722c64fb2fe795f11f6aac54a6.png)

**“BUT NOT”** in RootsMagic’s Advanced Search and search rules functions the same as an **AND NOT** operator.

When building a multi-step query, it operates as a logical exclusion step:

1. RootsMagic evaluates your preceding criteria to generate an initial pool of matches.

2. The **“BUT NOT”** condition then takes that working list and removes (unselects) anyone who matches the subsequent rule.

this can be confusing here is what AI says

In RootsMagic, **BUT NOT** (exclusion) and checking whether a fact **Exists / Does Not Exist** serve entirely different purposes. Knowing when to use which depends on whether you are filtering a pool of people based on _attributes_ or evaluating the presence/absence of an _entire event_.

### 1. When to use `BUT NOT` (Exclusion)

Use **BUT NOT** when you want to take an existing pool of search results and **subtract** a specific subset of people based on a matching criteria.

- **How it works:** It acts as a post-filter. RootsMagic finds everyone matching your initial criteria, then looks at the `BUT NOT` rule and unselects anyone who triggers it.

- **Example Use Case:** _Find all living people, **BUT NOT** those born in Ohio._

- **Why use it here:** You are excluding people based on a specific detail (a place, a surname, a specific tag) _within_ a wider group.

### 2. When to use Fact `Exists` / `Does Not Exist`

Use the **Exists Is True / Exists Is False** criteria parameters when you are trying to find structural gaps in your data—specifically, whether a person has an entire event type recorded or missing.

- **How it works:** It tests the structural presence or absence of the event table itself for each individual, rather than filtering out a text match from a broader list.

- **Example Use Case:** _Find people who have a Death fact recorded, **but do not** have a Burial fact recorded._

- **Why use it here:** You are checking for the presence or absence of an entire life event category (like a Census, Will, or Baptism), not filtering out a specific attribute value.

### Summary Rule of Thumb

- Use **Fact [Exists] = False** when you want to find **missing records or biographical gaps** (e.g., _Who is missing a Census event?_).

- Use **BUT NOT** when you want to **exclude specific descriptive details** from a target group you’ve already pulled up (e.g., _Give me everyone in this branch, **BUT NOT** anyone with the married surname Smith_).

---

<div class="post-metadata">

**Author:** ![kbens0n](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.rootsmagic.com/kbens0n/32/80_2.png) [@kbens0n](https://community.rootsmagic.com/u/kbens0n)\
**Post date:** [September 29, 2026, 11:58pm UTC](https://community.rootsmagic.com/t/but-not-advanced-search/16273/2 "2026-09-29T23:58:40Z")

</div>

![Screenshot 2026-09-29 193518](https://canada1.discourse-cdn.com/flex030/uploads/rootsmagic/original/2X/d/dd0743e93d30ef4b2be429cfb73522cc84aac1ed.png)

---

<div class="post-metadata">

**Author:** ![kevync1985](https://avatars.discourse-cdn.com/v4/letter/k/3be4f8/32.png) [@kevync1985](https://community.rootsmagic.com/u/kevync1985)\
**Post date:** [September 30, 2026, 12:17am UTC](https://community.rootsmagic.com/t/but-not-advanced-search/16273/3 "2026-09-30T00:17:55Z")

</div>

I believe I said the same thing in a different way.  
It will exclude the choosen criteria from the people found in the criteria before the BUT NOT (AND NOT) statement(s).

I was not asking a question I was making a statement base on my observation of use – I think make people get tripped up when using it as well as practical use there of – and where to use a diff method
