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?
gisvpnAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

 
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

Experts Exchange Solution brought to you by ConnectWise

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
 
gisvpnAuthor Commented:
Ace ;)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.