Here's one way to do it -
Assume that the values in your example are in cells A1 through A4, and
with the value '4' formatted as currency. Enter the following formula
in, say, cells B1 and copy it down through cell B4:
=CELL("format",A1)
Note the text value that it returns for the currency-formatted cell. In
a sheet I created that value was "C0" (C and zero), but it might be
different depending on the currency format. Now in a different cell
enter the following formula:
=SUMIF(B1:B4,"C0",A1:A4)
and format that cell accordingly. If you use a consistent currency
format, the SUMIF function plus the CELL("format",) function should
work for you.
Gary