I have this formula in a spreadsheet. How do I rewrite it so if it's negative will show…
- User
I have this formula in a spreadsheet. How do I rewrite it so if it's negative will show 0
=G7+G8+G9
Assistant
To make the formula show 0 when the result is negative, you can use the MAX function:
=MAX(0, G7+G8+G9)This will return the larger value between 0 and your sum. If the sum is positive, it returns the sum. If the sum is negative, it returns 0.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.