# Format Value (Calculation Across Selected Files)

**URL:** https://community.mp3tag.de/t/format-value-calculation-across-selected-files/66347
**Category:** Support
**Created:** [October 24, 2024, 10:24pm UTC](https://community.mp3tag.de/t/format-value-calculation-across-selected-files/66347 "2024-10-24T22:24:14Z")
**Posts on this page:** 1
**Showing post:** 4

<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 25, 2024, 7:27am UTC](https://community.mp3tag.de/t/format-value-calculation-across-selected-files/66347/4 "2024-10-25T07:27:55Z")

</div>

> [@mista\_j](#):
>
> The values im trying to sum are the same tag field but on different tracks

You are quite right: MP3tag does not compare or remember the data from different files.  
The only way would be an export script that sums up the value into a text file from where you can import it.

E.g. here is an export script that calculates an average:

> [@calculate average bitrate](https://community.mp3tag.de/t/calculate-average-bitrate/19540):
>
> Hi. I recently tried to create .nfos with some homemade template heavily borrowing from existing scripts since scripting isn't my area of expertise smiley One thing I can't make work and I have no clue why is calculating average bitrate. I stole the "looping add and divide" formula from old scripts found in this forum section, the addition part works, not the division... ie this is supposed to display the average number : $loop(%\_filename\_ext%)$puts(Vbitrate,$add($get(Vbitrate),%\_bitrate%)…

So, if you leave out the division at the end, you should get what you want.

---

_[View the full topic](https://community.mp3tag.de/t/format-value-calculation-across-selected-files/66347)._
