Sum only positive numbers, not in a range??

Mirandaleecon

New Member
Joined
Mar 3, 2016
Messages
4
Hello!
How can I sum only positive numbers that are not in a range. I have tried sumif several different ways and I cannot get it to work without a range.

A B C D E F
-5 -4 -2 3 1 -8

Take the above example. I would only like to sum A, C, and E. What formula would I need to put in to get the answer '1'??

The spreadsheet I'm working needs to sum about 100 alternating cells like this so it needs to be relatively simple.

Thank you!
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
A B C D E F
-5 -4 -2 3 1 -8

Take the above example. I would only like to sum A, C, and E. What formula would I need to put in to get the answer '1'??

I don't follow the example. A, C, and E are -1, -2, and 1
A and C are not positive numbers.

Don't you want to sum D and E (3+1=4) ?

This will sum only positive values in A1:F1
=SUMIF(A1:F1,">0",A1:F1)
 
Last edited:
Upvote 0
I think op wants to completely IGNORE B D and F
And only look at A C and D

Then within A C and D only, sum the ones that are positive.

Is that right?

Is there anything in common in another row that indicates which cells you want to include, like a certain text string in a header?
So we can say
Sum if A1:F1 = "sometextstring" AND the Value in A2:F2 is > 0
?
 
Upvote 0
I think op wants to completely IGNORE B D and F
And only look at A C and D

Then within A C and D only, sum the ones that are positive.

Is that right?

Is there anything in common in another row that indicates which cells you want to include, like a certain text string in a header?
So we can say
Sum if A1:F1 = "sometextstring" AND the Value in A2:F2 is > 0
?
Yes! So say A, C, and E have headers of "X" and B,D,F have a header of "Y" what would the formula look like?

A B C D E F
[1] X y x y x y

-5 -4 -2 3 1 -8
 
Upvote 0
Ugh, I was trying to post a prettier version of my example and pressed something that posted it.

Let me try again
A B C D E F
[1]X y x y x y
[2]-5 -4 -2 3 1 -8

The spacing is going to get jacked up but I think you get the idea...
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,427
Members
448,961
Latest member
nzskater

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