Only sum positive number in a range

getafix40

New Member
Joined
Aug 1, 2014
Messages
49
Hi

This seems so simple but I cannot work it out.

Here is my formula

=SUMIF(StockSheet!$AE:$AE,C1,StockSheet!$AH:$AH)

Where would I place the ">0"

AE is a column of salesman names, C1 is the salesman name and AH are the values I want to add. Sometimes there are negative values that I dont want to add

Regards
 

Some videos you may like

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

ParamRay

Well-known Member
Joined
Aug 6, 2014
Messages
1,195
.
.

Use SUMIFS instead:

=SUMIFS(StockSheet!AH:AH,StockSheet!AE:AE,C1,StockSheet!AH:AH,">0")
 

Marcelo Branco

MrExcel MVP
Joined
Aug 23, 2010
Messages
16,393
If you are using Excel 2007 or a more recent version try

=SUMIFS(StockSheet!$AH:$AH,StockSheet!$AH:$AH,">0",StockSheet!$AE:$AE,C1)

Hope this helps

M.
 

getafix40

New Member
Joined
Aug 1, 2014
Messages
49
Thanks for the replies. marcelo's formula worked a treat.

I am assuming the S means multiple criteria in the formula, not just a single criteria.

Cheers
 

Watch MrExcel Video

Forum statistics

Threads
1,108,624
Messages
5,523,965
Members
409,547
Latest member
AW2020

This Week's Hot Topics

Top