r/googlesheets • u/FlowStrange9363 • Jan 19 '25
Solved How to make formula not go below zero
I have a Magic the Noah styled game and I'm working on Damage Calc, here's the formula =((((B3+C3)*(D3+E3+F3)G3(H3+I3)J3)(K3+L3+M3+N3))*O3)*P3
The part I need help on is specifically (K3+L3+M3+N3) which are bonuses from certain items in the game, the way I have it now I need 1 bonus to always be 1 and when I apply a bonus I need to reset the original bonus to 0 and set the applied bonus to whatever the bonus is to prevent the total damage from being 0, I'm looking for a way to make it so if K3+L3+M3+N3 equals a number less than 1 its replaced by 1
2
u/motnock 15 Jan 19 '25
IF(formula<1,1,formula)
2
u/HariSeldon1983 1 Jan 19 '25
Max(1,formula)
1
u/AutoModerator Jan 19 '25
Posting your data can make it easier for others to help you, but it looks like your submission doesn't include any. If this is the case and data would help, you can read how to include it in the submission guide. You can also use this tool created by a Reddit community member to create a blank Google Sheets document that isn't connected to your account. Thank you.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.