# Account collection with only starred accounts but which exclude a type of account

**URL:** <https://community.silverfin.com/t/account-collection-with-only-starred-accounts-but-which-exclude-a-type-of-account/1583>\
**Category:** Templates\
**Created:** [October 14, 2019, 9:58am UTC](https://community.silverfin.com/t/account-collection-with-only-starred-accounts-but-which-exclude-a-type-of-account/1583 "2019-10-14T09:58:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sven](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/sven/32/1495_2.png) [@sven](https://community.silverfin.com/u/sven)\
**Post date:** [October 14, 2019, 11:06am UTC](https://community.silverfin.com/t/account-collection-with-only-starred-accounts-but-which-exclude-a-type-of-account/1583/2 "2019-10-14T11:06:53Z")

</div>

Hello @Alexandra,

I think what you’re going for, is described here:

> [@CASE: create unique selectable account ranges](https://community.silverfin.com/t/case-create-unique-selectable-account-ranges/1261):
>
> Let’s say we create a forloop over an array, and each item of that array will be used to create a hashtag to select some accounts, like this: Of course, one account can not be linked to more than one categorie. So, how can we make sure that each hashtag show the accounts that have not yet been selected? First of all, this is the code for above example: {% comment %}create different categories to loop over{% endcomment %} {% assign array\_categories = "IMVA|MVA|FVA" | split:"|" %} {% ass…

So basically, if you wish to create a string with all type of accounts in it, besides assets eg, you’ll need to loop over all those different accounts, and create one string from it, which you can then use for the range.  
Excluding isn’t an option for now, but with a workaround you can however.  
Can you let me know if this works out for you?

PS haven’t found many cases in which you’d want t exclude a certain type of account… Most cases, the range is enough for this (definitely in Belgium with our fixed chart of accounts).

---

_[View the full topic](https://community.silverfin.com/t/account-collection-with-only-starred-accounts-but-which-exclude-a-type-of-account/1583)._
