# Track number from Filename

**URL:** https://community.mp3tag.de/t/track-number-from-filename/5992
**Category:** Support
**Created:** [December 31, 2007, 4:57pm UTC](https://community.mp3tag.de/t/track-number-from-filename/5992 "2007-12-31T16:57:16Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![athegn](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/76d3ee/32.png) [@athegn](https://community.mp3tag.de/u/athegn)
#### Post date: [December 31, 2007, 4:57pm UTC](https://community.mp3tag.de/t/track-number-from-filename/5992/1 "2007-12-31T16:57:16Z")

</div>

My filenames are in the format:-

nn title.mp3

e.g 01 Big Foot.mp3

I want nn to become the tag Track. So I think I need the following:-

$left(%Filename%,2)

When highlight the "track" Column, for a file, then click on Convert \> Filename - Tag and enter the expression in the dialogue box the OK stays greyed out.

I had this before and realised that I had a duff formula but cannot see what is wrong with this formula.

Can anyone please advise?

---

<div class="post-metadata">

### Author: ![SquallLeonhart38](https://community.mp3tag.de/user_avatar/community.mp3tag.de/squallleonhart38/32/116_2.png) [@SquallLeonhart38](https://community.mp3tag.de/u/SquallLeonhart38)
#### Post date: [December 31, 2007, 5:01pm UTC](https://community.mp3tag.de/t/track-number-from-filename/5992/2 "2007-12-31T17:01:00Z")

</div>

Insert this into the "Filename -\> Tag" box:  
%track% %title%

The box doesn't allow any functions.

---

<div class="post-metadata">

### Author: ![athegn](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/76d3ee/32.png) [@athegn](https://community.mp3tag.de/u/athegn)
#### Post date: [December 31, 2007, 6:04pm UTC](https://community.mp3tag.de/t/track-number-from-filename/5992/3 "2007-12-31T18:04:13Z")

</div>

> [@SquallLeonhart38](#):
>
> Insert this into the "Filename -\> Tag" box:  
> %track %title%

I entered %track%%title% into the box and now have the title tag completed but still the track tag is blank.

Am I doing something wrong?

---

<div class="post-metadata">

### Author: ![SquallLeonhart38](https://community.mp3tag.de/user_avatar/community.mp3tag.de/squallleonhart38/32/116_2.png) [@SquallLeonhart38](https://community.mp3tag.de/u/SquallLeonhart38)
#### Post date: [December 31, 2007, 6:06pm UTC](https://community.mp3tag.de/t/track-number-from-filename/5992/4 "2007-12-31T18:06:05Z")

</div>

> [@athegn](#):
>
> I entered %track%%title% into the box and now have the title tag completed but still the track tag is blank.
> 
> Am I doing something wrong?

A whitespace between %track% and %title% perhaps?

---

<div class="post-metadata">

### Author: ![athegn](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/76d3ee/32.png) [@athegn](https://community.mp3tag.de/u/athegn)
#### Post date: [December 31, 2007, 7:59pm UTC](https://community.mp3tag.de/t/track-number-from-filename/5992/5 "2007-12-31T19:59:30Z")

</div>

> [@SquallLeonhart38](#):
>
> A whitespace between %track% and %title% perhaps?

I thought the white space you left was for a %

---

<div class="post-metadata">

### Author: ![SquallLeonhart38](https://community.mp3tag.de/user_avatar/community.mp3tag.de/squallleonhart38/32/116_2.png) [@SquallLeonhart38](https://community.mp3tag.de/u/SquallLeonhart38)
#### Post date: [December 31, 2007, 8:02pm UTC](https://community.mp3tag.de/t/track-number-from-filename/5992/6 "2007-12-31T20:02:24Z")

</div>

> [@athegn](#):
>
> I thought the white space you left was for a %

I accidently missed that %. ☹

---

<div class="post-metadata">

### Author: ![athegn](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/76d3ee/32.png) [@athegn](https://community.mp3tag.de/u/athegn)
#### Post date: [January 1, 2008, 8:26am UTC](https://community.mp3tag.de/t/track-number-from-filename/5992/7 "2008-01-01T08:26:51Z")

</div>

OK

Thank you for your help. That job now done.

---

<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:20pm UTC](https://community.mp3tag.de/t/track-number-from-filename/5992/8 "2026-02-09T12:20:41Z")

</div>


