# Track Number based on Year, but 3 digits

**URL:** <https://community.mp3tag.de/t/track-number-based-on-year-but-3-digits/49292>\
**Category:** Support\
**Created:** [June 13, 2020, 12:19am UTC](https://community.mp3tag.de/t/track-number-based-on-year-but-3-digits/49292 "2020-06-13T00:19:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheDailyVinyl](https://community.mp3tag.de/user_avatar/community.mp3tag.de/thedailyvinyl/32/382_2.png) [@TheDailyVinyl](https://community.mp3tag.de/u/TheDailyVinyl)\
**Post date:** [June 13, 2020, 12:19am UTC](https://community.mp3tag.de/t/track-number-based-on-year-but-3-digits/49292/1 "2020-06-13T00:19:52Z")

</div>

Action help request:  
When I have a compilation of songs, sometimes I make the track numbers based on the year, but only 3 digits, dropping the "hundreds" place. So:

If Year = 1983 then Track = 183  
If Year = 2019 then Track = 219

(This method will be good for the past hundred years, and the next. Then I gotta come up with something else, haha.)

---

<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 13, 2020, 6:47am UTC](https://community.mp3tag.de/t/track-number-based-on-year-but-3-digits/49292/2 "2020-06-13T06:47:00Z")

</div>

Use an action of the type "Format value" for TRACK  
Format string: `$regexp(%year%,(\d).(\d\d),$1$2)`

---

<div class="post-metadata">

**Author:** ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)\
**Post date:** [June 13, 2020, 10:00am UTC](https://community.mp3tag.de/t/track-number-based-on-year-but-3-digits/49292/3 "2020-06-13T10:00:49Z")

</div>

> [@TheDailyVinyl](#):
>
> (This method will be good for the past hundred years, and the next. Then I gotta come up with something else, haha.)

I'm just curious.  
How do you create the track number for 2101?  
How do you undo such a track number?  
And how do you distinguish between 2001 and 2101?

---

<div class="post-metadata">

**Author:** ![TheDailyVinyl](https://community.mp3tag.de/user_avatar/community.mp3tag.de/thedailyvinyl/32/382_2.png) [@TheDailyVinyl](https://community.mp3tag.de/u/TheDailyVinyl)\
**Post date:** [June 13, 2020, 4:15pm UTC](https://community.mp3tag.de/t/track-number-based-on-year-but-3-digits/49292/4 "2020-06-13T16:15:47Z")

</div>

Yeah, I got a little time to figure that out. I might just jump to the '3s and postpone my decision for two hundred years. So 2101 = 301. haha.

And it works great! Thank you!!!

---

<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:28pm UTC](https://community.mp3tag.de/t/track-number-based-on-year-but-3-digits/49292/5 "2026-02-09T12:28:39Z")

</div>


