# Can I combine interest targeting with an age range in one audience?

Asked by Amara O on 2025-06-04. Tags: cql, audiences.

hi all, I am a marketer, not a developer. I want one audience for people who are
interested in marketing or sales AND are between 17 and 30 years old. We collect
age and interests on our profiles already.

Do I need to ask a dev to write this condition or can I do it myself in the
audience editor? And if someone can spell out the actual condition that would
help a lot, I don't want to guess the syntax wrong.

## 1 answer

### Accepted answer from Gustav Lindqvist (2025-06-04)

You can do this yourself, no dev needed. Paste this into the audience editor:

```cql
user's interests contains either ["marketing", "sales"]
and user's age is between 17 and 30
```

Two things worth knowing:

- `contains either` matches people with ANY of the listed interests. If you
  ever need people with all of them, use `contains all of`, and `contains none
  of` excludes them.
- Conditions combine with plain `and`, `or`, and `not`, so you can keep
  stacking rules the same way.

As you type, the live audience estimator shows roughly how many of your users
match, which is a nice sanity check that the condition does what you think
before you publish anything.

#### Reply from Amara O (2025-06-05)

Worked on the first try and the estimator number looks about right for our
base. Thank you!
