# Renaming: Create grouping directories of 3 letters

**URL:** https://community.mp3tag.de/t/renaming-create-grouping-directories-of-3-letters/16986
**Category:** Support
**Created:** [June 22, 2015, 4:27pm UTC](https://community.mp3tag.de/t/renaming-create-grouping-directories-of-3-letters/16986 "2015-06-22T16:27:02Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![feuervogel](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/54ee81/32.png) [@feuervogel](https://community.mp3tag.de/u/feuervogel)
#### Post date: [June 22, 2015, 4:27pm UTC](https://community.mp3tag.de/t/renaming-create-grouping-directories-of-3-letters/16986/1 "2015-06-22T16:27:02Z")

</div>

Hi Forum,  
I have so many Artist folders that I want to group them to have a better overview in the car.

e.g. Music\ABC\ABBA... or Music\DEF\Deichkind...

without grouping it is easy:

Music\%artist%...

But does MP3tag offer a solution to generate the ABC or DEF folders depending on the first letter of the artist?

Media Monkey for example offers that functionality using [artist@n](mailto:artist@n) (n is 3 in this case)

---

<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: [June 22, 2015, 4:48pm UTC](https://community.mp3tag.de/t/renaming-create-grouping-directories-of-3-letters/16986/2 "2015-06-22T16:48:48Z")

</div>

Back 2010 there was a similar a request in the German section - perhaps you can do something with gnor's code  
[http://forums.mp3tag.de/lofiversion/index.php?t11229.html](http://forums.mp3tag.de/lofiversion/index.php?t11229.html)

In the example the steps were a-b c-d which led to $div($left(%artist,1),2)  
So perhaps if you want a step width of 3, you would have to replace the 2s with 3s:

$char($sub($mul($div($add($ord($left($upper(%artist%),1)),1),2),2),1))-$char($mul($div($add($ord($left($upper(%artist%),1)),1),2),2))

---

<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: [June 22, 2015, 6:03pm UTC](https://community.mp3tag.de/t/renaming-create-grouping-directories-of-3-letters/16986/3 "2015-06-22T18:03:11Z")

</div>

> [@feueervogel](#):
>
> Hi Forum,  
> I have so many Artist folders that I want to group them to have a better overview in the car.  
> e.g. Music\ABC\ABBA... or Music\DEF\Deichkind... does MP3tag offer a solution to generate the ABC or DEF folders depending on the first letter of the artist? ...

Modify this to your needs ...

**$ifgreater($strchr('0123456789',$left(%ARTIST%,1)),0,'0 - 9', $ifgreater($strchr('ABCDEabcde',$left(%ARTIST%,1)),0,'A - E', $ifgreater($strchr('FGHIJKfghijk',$left(%ARTIST%,1)),0,'F - K', $ifgreater($strchr('LMNOPQRlmnopqr',$left(%ARTIST%,1)),0,'L - R', $ifgreater($strchr('STUVWXYZstuvwxyz',$left(%ARTIST%,1)),0,'S - Z','Special')))))**

See also ...  
[Export to custom playlist](https://community.mp3tag.de/t/5970/3)  
[/t/9954/1](https://community.mp3tag.de/t/9954/1)

DD.20150622.2202.CEST

---

<div class="post-metadata">

### Author: ![feuervogel](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/54ee81/32.png) [@feuervogel](https://community.mp3tag.de/u/feuervogel)
#### Post date: [July 4, 2015, 9:50am UTC](https://community.mp3tag.de/t/renaming-create-grouping-directories-of-3-letters/16986/4 "2015-07-04T09:50:49Z")

</div>

I especially like the idea, Ohrenkino presented here but I decided to take the second suggestion to be more flexible.

This is my Version (like letters on a phone):

```
$ifgreater($strchr('ABCabc',$left(%albumartist%,1)),0,'ABC',
$ifgreater($strchr('DEFdef',$left(%albumartist%,1)),0,'DEF',
$ifgreater($strchr('GHIghi',$left(%albumartist%,1)),0,'GHI',
$ifgreater($strchr('JKLjkl',$left(%albumartist%,1)),0,'JKL',
$ifgreater($strchr('MNOmno',$left(%albumartist%,1)),0,'MNO',
$ifgreater($strchr('PQRSpqrs',$left(%albumartist%,1)),0,'PQRS',
$ifgreater($strchr('TUVtuv',$left(%albumartist%,1)),0,'TUV',
$ifgreater($strchr('WXYZwxyz',$left(%albumartist%,1)),0,'WXYZ','0-9'))))))))

```

thanks for your replies!

---

<div class="post-metadata">

### Author: ![LaurenBacall](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/35a633/32.png) [@LaurenBacall](https://community.mp3tag.de/u/LaurenBacall)
#### Post date: [July 4, 2015, 10:44am UTC](https://community.mp3tag.de/t/renaming-create-grouping-directories-of-3-letters/16986/5 "2015-07-04T10:44:43Z")

</div>

Neat idea for an action.

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [February 9, 2026, 12:25pm UTC](https://community.mp3tag.de/t/renaming-create-grouping-directories-of-3-letters/16986/6 "2026-02-09T12:25:43Z")

</div>


