if the answer is zero
Whats the correct way to do this?
=if(SUMIFS({Service Projects Tracking Master Log Range 1}, {Service Projects Tracking Master Log Range 2}, AND(@cell >= DATE(2021, 8, 1), @cell <= DATE(2021, 8, 30)),0,75,000)
Answers
-
Hello @Samuel Dowdy Jr,
would you mind to describe in words what you want to achieve and what the expected result is?
Greetings
Stefan
Smartsheet Consulting, Solution Building, Training and Support.
Projects for Processes and for People.
-
I agree with Stefan, it would be helpful to know what you want to see. It sounds like you want to know IF the answer is 0, then ... something.
So:
=IF(SUMIFS(Formula) = 0, then this, otherwise that)
For example:
=IF(SUMIFS({Service Projects Tracking Master Log Range 1}, {Service Projects Tracking Master Log Range 2}, @cell >= DATE(2021, 8, 1), {Service Projects Tracking Master Log Range 2}, @cell <= DATE(2021, 8, 30)) = 0, 75, 000)
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
If the amount is in June it will equal the amount, if it isn't and the total is zero the the amount will be 75,000
-
I want it to add range 1. If the answer is zero then 75,000 should be the answer
the formula you gave me makes the answer zero all the time
-
Thank you for clarifying! Commas in formulas split up logic statements, so we will need to represent 75,000 as 75000.
So you want the formula to say this:
If the SUMIFS is 0, then 75000, otherwise return the result of the SUMIFS.
Try this:
=IF(SUMIFS({Service Projects Tracking Master Log Range 1}, {Service Projects Tracking Master Log Range 2}, @cell >= DATE(2021, 8, 1), {Service Projects Tracking Master Log Range 2}, @cell <= DATE(2021, 8, 30)) = 0, 75000, SUMIFS({Service Projects Tracking Master Log Range 1}, {Service Projects Tracking Master Log Range 2}, @cell >= DATE(2021, 8, 1), {Service Projects Tracking Master Log Range 2}, @cell <= DATE(2021, 8, 30)))
Let me know if this works for you!
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Help Article Resources
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
Check out the Formula Handbook template!