Skip to main content
Solved

Removing negative numbers/stop count a 0 for workday_diff formula

  • February 3, 2021
  • 3 replies
  • 57 views

Hello!

I have a formula to count how many workdays are left between a data and “today” and when the reference data is “after today”, the output returns a negative number (as it should).

I am looking for a way to get my formula to only return “0” when that situation occurs. I haven’t figured out the nested if statement logic to make it work. Does anyone have a solution to this?

Thank you!

Best answer by Kamille_Parks11

Without seeing your actual formula, sounds like you could just do the following:

MAX(0, *whatever your formula currently is*)

3 replies

Kamille_Parks11
Forum|alt.badge.img+27

Without seeing your actual formula, sounds like you could just do the following:

MAX(0, *whatever your formula currently is*)


  • Author
  • New Participant
  • February 4, 2021

Without seeing your actual formula, sounds like you could just do the following:

MAX(0, *whatever your formula currently is*)


Yes, that works. Thank you!


Michael_Kruse
Forum|alt.badge.img+8
  • Known Participant
  • July 24, 2024

Without seeing your actual formula, sounds like you could just do the following:

MAX(0, *whatever your formula currently is*)


This worked for me too - I had a weird situation where I was subtracting to find the remaining % and some (but not all) results were showing up as -0% - this extra nested MAX worked like a charm.

So...THANKS Kamille!