sum if help when no data

Imran Azam

Board Regular
Joined
Mar 15, 2011
Messages
103
HI Guys

i currently have the below formula

=IFERROR(SUMIFS(data!R:R,data!O:O,"Alex",data!U:U,"Won",data!R:R,">0"),"-"))

if there is no data for Alex in the data sheet i want to retunr "-"

but with the formula i have it retuns 0.

how can i do this?
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
There is no error, you just need to check the result
Code:
[LEFT][COLOR=#333333][FONT=Verdana]=IF(SUMIFS(data!R:R,data!O:O,"Alex",data!U:U,"Won",data!R:R,">0")>0,SUMIFS(data!R:R,data!O:O,"Alex",data!U:U,"Won",data!R:R,">0"),"-")[/FONT][/COLOR][/LEFT]
<strike></strike>
 
Upvote 0
HI Guys

i currently have the below formula

=IFERROR(SUMIFS(data!R:R,data!O:O,"Alex",data!U:U,"Won",data!R:R,">0"),"-"))

if there is no data for Alex in the data sheet i want to retunr "-"

but with the formula i have it retuns 0.

how can i do this?

Currently you are only going to obtain " - " if there is an error.

Try this - =IF(data!O:O="Alex",SUMIFS(data!R:R,data!O:O,"Alex",data!U:U,"Won",data!R:R,">0"),"-")

** Edit ** Sorry I was replying went on to something else and didn't submit. Better late than never!
 
Last edited:
Upvote 0
Try this - =IF(data!O:O="Alex",SUMIFS(data!R:R,data!O:O,"Alex",data!U:U,"Won",data!R:R,">0"),"-")

This will always return a - unless the very first row contains Alex. Also, if row 1 contains Alex and U1 does not contain Won it will return 0 which I don't think is what the OP wants. So it is a false solution.

** Edit ** Sorry I was replying went on to something else and didn't submit. Better late than never!
Debatable ;-)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,964
Members
452,371
Latest member
Frana

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