r/excel • u/TheAKofClubs86 • 5d ago
solved Different rounding parameters in the same cell
Firstly, thank you all for all the help you’ve been the last day or two. It makes everything so much easier when I can ask a person instead of googling everything.
Cell G7 has a formula based on the values in cells G4,5,6. Cell G8 needs to round the number in G7. The specific formula I need is: if G4 is 0-1999 then I need the value in G7 to be rounded up to the nearest 100 in G8, if the value in G4 is >=2000 then I need the value in G7 to round up to the nearest 1000 in G8.
6
Upvotes
•
u/AutoModerator 5d ago
/u/TheAKofClubs86 - Your post was submitted successfully.
Solution Verifiedto close the thread.Failing to follow these steps may result in your post being removed without warning.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
5
u/NomNomBelt 1 5d ago
Enter this in cell G8
1
u/PepperIcy4822 5d ago
Is G4 exactly 2000 rounding up or down?
1
u/PaulieThePolarBear 1927 5d ago
Can G4 ever be negative? If so, clearly state your rounding requirements
2
u/bradland 279 5d ago
You can do this with a straight forward conditional: