Negative numbers

K

Kolsballs

Hi

I am trying to add only the negative numbers in a row of cells from sheet 1
and have the results shown in a single cell on sheet 3, but I keep only
getting the result of zero how would I correct this. The formula I am using
in the cell on sheet three is:

=SUMIF(Sheet1!B23:H23,"<0")

Any help appreciated.
 
T

T. Valko

=SUMIF(Sheet1!B23:H23,"<0")

There's nothing wrong with your formula so that means there's a problem with
your data (provided there are in fact -ve numbers present). Common causes:

numbers formatted as TEXT
leading/trailing spaces or other unseen characters
 
H

Héctor Miguel

hi, !
I am trying to add only the negative numbers in a row of cells from sheet 1
and have the results shown in a single cell on sheet 3
but I keep only getting the result of zero how would I correct this.
The formula I am using in the cell on sheet three is:
=SUMIF(Sheet1!B23:H23,"<0")

if your "number" are stored as text... try with something like:

=sumproduct((--sheet1!b3:h23<0)*(--sheet1!b3:h23))

hth,
hector.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top