I want to put a formula into a cell that will accomplish the following:

Entry for Cell A40, If cell I32 is $0 then populate (cell A40) with total in
cell G32

I was trying some varieties of ... =sum(ifI32<0:G32) Any advise would be
greatly appreciated.
Kind regards
Martha