SUMIF and Absolute Value
Hello,
I want to sum up the Project Remaining Hours of all "In Progress" projects. Sometimes I have negative project remaining hours, but I don't want to add the negative value.
How do I sum up the absolute value of the Project Remaining Hours in the formula below?
=SUMIFS({Project Remaining Hours}, {Project Status}, OR(@cell = "In Progress"))
Thanks,
Amy
Best Answer
-
Hi @Amy Evans
You can use @cell = "value" or simply use a comma between the {range} and the "criteria". The comma assumes an =.
You would more likely want to use @cell when you want something other than =, such as <> (not equal to).
The bit that's not necessary is the OR function. You only have one value you're looking for, so you don't need to look for "this" or "that", does that make sense?
Cheers!
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Answers
-
Hi @Amy Evans
You can add in a criteria that says only Sum if the value is greater than 0. Try this:
=SUMIFS({Project Remaining Hours}, {Project Status}, "In Progress", {Project Remaining Hours}, > 0)
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
Thank you! Your formula is much more clean than mine. I used @cell = "In Progress" but I guess that's not necessary?
-
Hi @Amy Evans
You can use @cell = "value" or simply use a comma between the {range} and the "criteria". The comma assumes an =.
You would more likely want to use @cell when you want something other than =, such as <> (not equal to).
The bit that's not necessary is the OR function. You only have one value you're looking for, so you don't need to look for "this" or "that", does that make sense?
Cheers!
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
Yes, thank you! So much to learn. Thank you for your guidance.
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives