# Export csv script - need help with excluding Various Artists albums

**URL:** https://community.mp3tag.de/t/export-csv-script-need-help-with-excluding-various-artists-albums/15766
**Category:** Export
**Created:** [May 26, 2014, 4:20pm UTC](https://community.mp3tag.de/t/export-csv-script-need-help-with-excluding-various-artists-albums/15766 "2014-05-26T16:20:18Z")
**Posts on this page:** 1
**Showing post:** 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: [May 27, 2014, 5:25am UTC](https://community.mp3tag.de/t/export-csv-script-need-help-with-excluding-various-artists-albums/15766/4 "2014-05-27T05:25:38Z")

</div>

> [@sanjaypm](#):
>
> Thanks for the suggestion. This does give me a list of Artist/Album/Year that I was looking for. However, my original problem remains, which is if I have an Artist who has a song in a compilation album (these songs are tagged with the Artist under %Artist% and 'Various Artists' under %albumartist%) it shows up in this list for every song by a different artist and I'd like to exclude them from this list ...

Maybe you want a script something like this ...

**01: $filename($getEnv('USERPROFILE')'\Desktop\AlbumList.csv.txt',UTF-8)** 

**02: $loop($if2(%ALBUMARTIST%,%ARTIST%),1)$loop(%ALBUM%,1)'"'$if2(%ALBUMARTIST%,%ARTIST%)'","'%ALBUM%'","'%YEAR%'"'  
03: $loopend()$loopend()**

 

DD.20140527.0928.CEST

---

_[View the full topic](https://community.mp3tag.de/t/export-csv-script-need-help-with-excluding-various-artists-albums/15766)._
