# Wanting Format Value to return altered version of %bpm% in "%bpm%-%initialkey%

**URL:** <https://community.mp3tag.de/t/wanting-format-value-to-return-altered-version-of-bpm-in-bpm-initialkey/15093>\
**Category:** Support\
**Created:** [October 10, 2013, 10:07am UTC](https://community.mp3tag.de/t/wanting-format-value-to-return-altered-version-of-bpm-in-bpm-initialkey/15093 "2013-10-10T10:07:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mandah](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/8e8cbc/32.png) [@Mandah](https://community.mp3tag.de/u/Mandah)\
**Post date:** [October 10, 2013, 10:07am UTC](https://community.mp3tag.de/t/wanting-format-value-to-return-altered-version-of-bpm-in-bpm-initialkey/15093/1 "2013-10-10T10:07:23Z")

</div>

As title explains, I am wanting to use Format Value action to bring BPM (%bpm%) and Key (%initialkey%) together in the Grouping (%contentgroup%) field.

However, bpm comes up as e.g. "00103 BPM" and I am only wanting to return the "103"; or if it was "00097 BPM" I want "97".

So I am wanting to do this:

BEFORE:  
Grouping- (nothing or something)  
BPM- 00103 BPM  
Key- 5A

AFTER:  
Grouping- 103-5A

Thanks in advance

---

<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:** [October 10, 2013, 10:51am UTC](https://community.mp3tag.de/t/wanting-format-value-to-return-altered-version-of-bpm-in-bpm-initialkey/15093/2 "2013-10-10T10:51:28Z")

</div>

I would proceed as follows:  
Format value for field %contentgroup%  
Format string: %bpm% %initialkey%

Replace action for field %contentgroup%  
Search: BPM  
Replace with: -  
(juggle a little bit the the blanks around BPM to get the result just right)

Replace action with regular expression:  
search string: ^0  
replace string:  
(nothing, leave empty)

---

<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:** [October 22, 2013, 1:21pm UTC](https://community.mp3tag.de/t/wanting-format-value-to-return-altered-version-of-bpm-in-bpm-initialkey/15093/3 "2013-10-22T13:21:46Z")

</div>

> [@Mandah.](#):
>
> As title explains, I am wanting to use Format Value action to bring BPM (%bpm%) and Key (%initialkey%) together in the Grouping (%contentgroup%) field. ...

You can use the Mp3tag converter "Tag - Tag" or the action "Format value".

 

**Convert** | **Tag - Tag** | **ALT+5**

 

Field:  
**CONTENTGROUP**

 

Format string:  
**$num(%BPM%,1)'-'%INITIALKEY%**

 

Preview  
**103-5A**

 

DD.20131022.1722.CEST

---

<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:24pm UTC](https://community.mp3tag.de/t/wanting-format-value-to-return-altered-version-of-bpm-in-bpm-initialkey/15093/4 "2026-02-09T12:24:41Z")

</div>

Closed on February 9, 2026, 12:24pm UTC


