# SUMIF positive and negative numbers - take double a negative number?

1. ## SUMIF positive and negative numbers - take double a negative number?

Hello,

I would just like to say that so far this forum has been a wealth of information so thank you all.

I am using SUMIF to add together a range of numbers based upon whether one cell equals the same as another cell. It works, thanks to another post on this forum, but for some reason when a negative number is added into the range (for example -10) it takes off double the amount (in this case -20)

This is the formula.

=SUMIF('In-Out'!B5:B1000,"="&C5,'In-Out'!C5:C1000)

Does anyone have ideas?

I have tried for ages to get this work correctly. At first it was simply treating the negative numbers as a positive number. Until I then realized that conditional formatting does not really change the value.
On a side note does anyone know how to force a number to become a negative based upon whether one cell has the value "in" or "out" without using conditional formatting?

Any help would be appreciated.

2. ## Re: SUMIF positive and negative numbers - take double a negative number?

could you post a sample?

3. ## Re: SUMIF positive and negative numbers - take double a negative number?

I was going to however the problem seems to have solved itself...I don't know how but it has. lol that's embarrassing.

4. ## Re: SUMIF positive and negative numbers - take double a negative number?

Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

In future, to mark your thread as Solved, you can do the following -

Incase your issue is not solved, you can undo it as follows -

Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1