Link to home
Start Free TrialLog in
Avatar of jlcannon
jlcannon

asked on

Non working formula in Excel

Can anyone tell me what i need to do to make this formula work. The problem is the <>"DM" becuase if i take out the <> it works fine but i need everything not equal to DM in that range.

=SUMIFS('Business Objects_Data'!P120:P148,'Business Objects_Data'!Q120:Q148,<>"DM",'Business Objects_Data'!F120:F148,"01")
ASKER CERTIFIED SOLUTION
Avatar of Serg
Serg
Flag of Russian Federation image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of barry houdini
You need quotes around the whole thing like "<>DM", i.e.

=SUMIFS('Business Objects_Data'!P120:P148,'Business Objects_Data'!Q120:Q148,"<>DM",'Business Objects_Data'!F120:F148,"01")

regards, barry
Avatar of jlcannon
jlcannon

ASKER

This solution worked perfectly. thank you!

@barryhoudini I tried putting it all in the same quates and it still came up with an error but once i put "<>" and "DM" in seperate quotes it worked. Thank you for the help.
Are you sure? If I use Netty's suggested solution, e.g. with simplified SUMIF

=SUMIF(A:A,"<>"DM"",B:B)

Then I get an error message, whereas if I use my suggestion

=SUMIF(A:A,"<>DM",B:B)

that works fine

It's possible to put them both in quotes and concatenate like this

=SUMIF(A:A,"<>"&"DM",B:B)

but that isn't really necessary

regards, barry