Hi
Attached you'll find a working solution.
The data to be lookat can be changed and the position where you put it as well, but you'll get the idea. It's not perfectly clear to me where you wanted this order spent per category.
Formula used:
=SUMIF($F$12:$F$120;F3;$J$12:$J$120)
where F3 is the category, F12:F120 is data with categories, and J12;J120 are the spent amounts.