Avatar of ASHOK BANERJEE
ASHOK BANERJEE

asked on 

Greater than,Less than under IF and AND Function

My problem :
Let, Cell K3 contains a number : 568124
Now, if the right most digit is <5, then I am to use Rounddown(K3,-1) , but if the right most digit is >=5, then I am to use Roundup(K3,-1)
What will be the Excel formula containing both the conditions i.e. " <  " and  "  >=  "
Awaiting your kind reply.
Microsoft ExcelMicrosoft Office

Avatar of undefined
Last Comment
Wayne Taylor (webtubbs)
SOLUTION
Avatar of CompProbSolv
CompProbSolv
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
ASKER CERTIFIED SOLUTION
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
SOLUTION
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of CompProbSolv
CompProbSolv
Flag of United States of America image

The round(K3,-1) is clearly a much more elegant and compact solution and should be used when the conditions are as specified in the post.  I was trying to give a more generic answer in case the original conditions change.
Avatar of ASHOK BANERJEE
ASHOK BANERJEE

My sincere thanks to CompProbSolv ,  Wayne Taylor (webtubbs) and   Ben Personick for solving my problem. My gratitude to you all. Thanks once again !
Avatar of Rob Henson
Rob Henson
Flag of United Kingdom of Great Britain and Northern Ireland image

You can also use the MROUND function:

=MROUND(K3,10)

This will round to the nearest factor of 10.
Asker thanks the experts but failed to follow through with the expected closure.
Microsoft Excel
Microsoft Excel

Microsoft Excel topics include formulas, formatting, VBA macros and user-defined functions, and everything else related to the spreadsheet user interface, including error messages.

144K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo