Sum Row with standard condition

Status
Not open for further replies.

ShafiqqAziz

New Member
Joined
Jan 9, 2018
Messages
6
Hello guys,

I need a help create a sum with 1 condition in multiple columns.

Here's an example:

Quantity 1Quantity 2Quantity 3Quantity 4
Item 1-1012
Item 20-112
Item 3-21-12
Item 4011-2

<tbody>
</tbody>

What i'm trying to do here, i want the sum to be separated between negative and positive.
E.g:

Quantity NegativeQuantity Positive
Item 1-13
Item 2-13
Item 3-33
Item 4-22

<tbody>
</tbody>

I've tried SUMPRODUCT((A2:A5=A2)*(B2:E5>0)*(B2:E5)) give me #VALUE ! error.
Tried all of this
1. https://www.extendoffice.com/docume...ultiple-columns-based-on-single-criteria.html
2. https://support.office.com/en-us/ar...nditions-e610ae0f-4d27-480c-9119-eb644f1e847e
3. https://www.extendoffice.com/documents/excel/4097-excel-sum-based-on-column-and-row-criteria.html

Can you guys help me out?
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
for the negatives

=SUMIF(H2:K2,"<0",H2:K2)

for the positives

=SUMIF(H2:K2,">0",H2:K2)

where I have your item 1 quantity values in cells h2:k2
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,214,940
Messages
6,122,361
Members
449,080
Latest member
Armadillos

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top