• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 360
  • Last Modified:

If Statement Formula (when it doesnt equal something?)

Hello,

I have these formulas :

=SUMIF(Data!E:E,Summary!F15,Data!J:J)
=SUMIF(Data!E:E,Summary!F16,Data!J:J)
=SUMIF(Data!E:E,Summary!F17,Data!J:J)

How can I do the same thing (total the number in J) but when it does NOT equal Summary!F15,Summary!F16 and Summary!F17 does not equal the value in E?
0
gisvpn
Asked:
gisvpn
1 Solution
 
zorvek (Kevin Jones)ConsultantCommented:
Use:

=SUMIF(Data!E:E,"<>"&Summary!F15,Data!J:J)

Kevin
0
 
joaoalmeidaCommented:
Try the following

=SUMIF(Data!E:E,CONCATENATE("<>",Summary!F15),Data!J:J)

Or Just SUM everything and subtract the results of your sumifs.
0
 
gisvpnAuthor Commented:
Hi Kevin,

Thanks for that - how do I add in multiple things that I would like to include i.e. Summary!F15, Summary!F16, Summary!F17 - I tried Ctrl, shift and enter - but was not sure how this worked.

Thanks,

GISVPN
0
 
barry houdiniCommented:
Try using SUMPRODUCT to exclude multiple values, e.g.

=SUMPRODUCT(ISNA(MATCH(Data!E2:E100,Summary!F15:F17,0))+0,Data!J2:J100)

[best to restrict the range with SUMPRODUCT]

or sum everything and subtract the values the do match like this

=SUM(Data!J:J)-SUMPRODUCT(SUMIF(Data!E:E,Summary!F15:F17,Data!J:J))

regards, barry
0
 
gisvpnAuthor Commented:
Ace ;)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now