No, I actually haven't. At least not recently. With manga it's a bit easier to get an approximation simply by mutliplying the volumes I have by $10 since that's probably the average cost of one for me, and I have done that before. I have 716 of those, so that's like $7100 over the 9 years I've been collecting.
I can do things like tell you how much I've spent on anime conventions since October of 2016, though, because it's in my budget tracker as its own category: $8,107.89.
However, this figure accounts for me being the one handling the travel costs up front and having my friends just pay me back after to keep our cost splits simple (ie - we only have to pay back one person), as well as my own food expenses. And that's across 6 anime conventions - 3 local, 3 out of state.
The figure does, however, also include everything I've bought at these conventions, and that's where I've picked up a good percentage of the merch I've bought over the years.
Most of the rest of my non-convention spending is lumped in with my general recreational money because I couldn't be bothered to categorize it.