# Filter albums with less than 2 tracks

**URL:** https://community.mp3tag.de/t/filter-albums-with-less-than-2-tracks/18713
**Category:** General Discussion
**Created:** [February 17, 2017, 4:23am UTC](https://community.mp3tag.de/t/filter-albums-with-less-than-2-tracks/18713 "2017-02-17T04:23:25Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![sunshine76](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/ed655f/32.png) [@sunshine76](https://community.mp3tag.de/u/sunshine76)
#### Post date: [February 17, 2017, 4:23am UTC](https://community.mp3tag.de/t/filter-albums-with-less-than-2-tracks/18713/1 "2017-02-17T04:23:25Z")

</div>

can anyone help me to figure out how to filter albums with the less than 2 tracks. i have several albums with only 1 or 2 tracks and i would like to be filtered from my entire album collection

---

<div class="post-metadata">

### Author: ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)
#### Post date: [February 17, 2017, 5:10am UTC](https://community.mp3tag.de/t/filter-albums-with-less-than-2-tracks/18713/2 "2017-02-17T05:10:26Z")

</div>

You cannot compare files while filtering with MP3Tag. The only way to compare files is with creating an export-list of your files. How to do this look in the export-section of the Mp3Tag-Help.

Years ago I started a similar thread in the german section of the forum. If you don't know german you maybe can get help with google translate.  
[/t/9623/1](https://community.mp3tag.de/t/9623/1)

I think the easiest and fastest way (if you have a folder for every album) is to use external help from software like Treesize.  
[http://www.jam-software.com/treesize\_free/?language=EN](http://www.jam-software.com/treesize_free/?language=EN)

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [February 17, 2017, 5:11am UTC](https://community.mp3tag.de/t/filter-albums-with-less-than-2-tracks/18713/3 "2017-02-17T05:11:01Z")

</div>

> [@sunshine76](#):
>
> can anyone help me to figure out how to filter albums with the less than 2 tracks. i have several albums with only 1 or 2 tracks and i would like to be filtered from my entire album collection

MP3tag does not know anything about albums. It does not compare data between tracks.

So the only way I could think of: renumber your files with the track numbering wizard and include the total number of tracks.  
then filter for tracks where  
%track% MATCHES "/2$" OR %track% MATCHES "/1$"

---

<div class="post-metadata">

### Author: ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)
#### Post date: [February 17, 2017, 5:28am UTC](https://community.mp3tag.de/t/filter-albums-with-less-than-2-tracks/18713/4 "2017-02-17T05:28:41Z")

</div>

> [@ohrenkino](#):
>
> So the only way I could think of: renumber your files with the track numbering wizard and include the total number of tracks.  
> then filter for tracks where  
> %track% MATCHES "/2$" OR %track% MATCHES "/1$"

I think that people who look at their music from a perspective of albums have a problem with this solution because it maybe destroys the existing original tracknumber/totaltracks information of an album which mayby important for a user even if the album is not complete.

A workaround could be to save the original tracknumber-tag to e selfdefined temporary tag before using the tracknumberíng wizard,  
i.e. with an action or the converter Tag -\> Tag.

---

<div class="post-metadata">

### Author: ![sunshine76](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/ed655f/32.png) [@sunshine76](https://community.mp3tag.de/u/sunshine76)
#### Post date: [February 17, 2017, 7:03am UTC](https://community.mp3tag.de/t/filter-albums-with-less-than-2-tracks/18713/5 "2017-02-17T07:03:21Z")

</div>

is it difficult to find out which of the albums have less than two songs?

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [February 17, 2017, 7:14am UTC](https://community.mp3tag.de/t/filter-albums-with-less-than-2-tracks/18713/6 "2017-02-17T07:14:25Z")

</div>

Hard to tell - it depends a lot on how much you got out of the posts #2, #3 and #4.

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [February 17, 2017, 8:45am UTC](https://community.mp3tag.de/t/filter-albums-with-less-than-2-tracks/18713/7 "2017-02-17T08:45:44Z")

</div>

> [@sunshine76](#):
>
> can anyone help me to figure out how to filter albums with the less than 2 tracks. i have several albums with only 1 or 2 tracks and i would like to be filtered from my entire album collection

Note: Mp3tag only takes care of individual files.  
Only if a tagged file knows how many tracks are stored into it's folder, ...  
then the filter can be used to detect files within folders, ...  
where the total number of files is less than 2 resp. is equal to 1.

There is procedure, which can help to set trackcount per folder, ...  
[Tracknummern in Aktionen](https://community.mp3tag.de/t/16480/4)

Afterwards you can apply the Mp3tag filter ...  
%TRACK% IS "1" AND %TOTALTRACKS% IS "1"

See also ...  
[Filter albums with less than 2 tracks](https://community.mp3tag.de/t/18713/3)

DD.20170217.1051.CET
