Hello AboveBeyond, welcome to the board.
What Aladin posted is right close to what I had in mind, but with a little twist.
Say your numbers were in column A and your prices were in column B.
In some cell somewhere you can enter the formula: =SUMIF(A:A,C1,B:B)
Then just enter the (column A) number of interest in C1 and your formula should return
the sum of all column B values that have your C1 entry in column A.
The fishing is just starting to get good!
You guys need any more?