Ansible Inventory Filter

Now that I have a working dynamic inventory using collection microsft.ad.ldap.inventory I want to know how to filter out computer names, their groups and software.

Also export that information to an excel spreadsheet.

Thanks