Formula syntax

hi All
could someone help please. I am setting up a spreadsheet, and in column a I have both positive and negative figures.
I want to but in a cell the sum for the positive values and in another cell the sum of all the negative values, but can’t figure out the syntax.

can anyone help please?

thanks, R

=SUMIF(A2:A8;">0") for positive numbers and =SUMIF(A2:A8;"<0") for negative numbers in example range A2:A8

=SUMIF(range;"<0")

=SUMIF(range;">0")