I managed to create 2 queries:
1 - Contains exclusion as described at the previous post AND people based on the departments, here it is:
(&(objectCategory=user)(!displayName=*test*)(!employeeNumber=7*)(!displayName=R-*)(!msExchHideFromAddressLists=True)(!userAccountControl:1.2.840.113556.1.4.803:=2)(|(extensionAttribute2=department1)(extensionAttribute2=department2)(extensionAttribute2=department3)))
2 - Contains people which are distributed at 12 locations, here it is:
(|(extensionAttribute6=Location1)(extensionAttribute6=Location2)(extensionAttribute6=Location3)(extensionAttribute6=Location4)(extensionAttribute6=Location5)(extensionAttribute6=Location6)(extensionAttribute6=Location7)(extensionAttribute6=Location8)(extensionAttribute6=Location9)(extensionAttribute6=Location10)(extensionAttribute6=Location11)(extensionAttribute6=Location12))
The goal is to provide list of people to which all the conditions apply. Specifically those who works at the listed departments BUT those who are at these locations ONLY!!!!
Of cause to exclude - disabled, hidden e.t.c