+ Reply to Thread
Results 1 to 5 of 5

ROUNDING Formula marking if it rounds numbers below x.5

  1. #1
    Registered User
    Join Date
    04-04-2014
    Location
    Warsaw
    MS-Off Ver
    Excel 2010
    Posts
    97

    ROUNDING Formula marking if it rounds numbers below x.5

    Hello,
    I can't find any idea how to write a formula which will round number up (so it could be CEILING) and if the next number after comma is smaller than 5 it will be still rounded up but will be marked as red text.
    e.g. 1,51 -> 2
    1,49 -> 2

    Any ideas how to do it?

    Regards,
    Pawel

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: ROUNDING Formula marking if it rounds numbers below x.5

    like this
    =ROUNDUP(A1,0)
    and conditional format as font red
    use a formula to determine option of
    =AND(MOD(A1,1)>0,MOD(A1,1)<0.5)
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    04-04-2014
    Location
    Warsaw
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: ROUNDING Formula marking if it rounds numbers below x.5

    Conditional formatting.. how could i not think about that rule, guess my brain is off ofter 8th hour of work.
    Thanks a lot man!

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: ROUNDING Formula marking if it rounds numbers below x.5

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  5. #5
    Registered User
    Join Date
    04-04-2014
    Location
    Warsaw
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: ROUNDING Formula marking if it rounds numbers below x.5

    Of course, I want to thank to anyone who can manage some time to help solve my problems. Cheers martindwilson!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Trying to create a formula that rounds up when its needed to.
    By Predictedizard in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-09-2013, 03:30 AM
  2. Concatenate VBA rounds numbers unexpectedly
    By cocostar88 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-16-2013, 11:38 AM
  3. Need formula for concatenating and rounding up numbers into one cell
    By Yeager in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-11-2013, 03:56 PM
  4. [SOLVED] I need a formula that rounds up the date.
    By VivatMartin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-21-2012, 08:44 AM
  5. [SOLVED] I need a %age increase formula that rounds up to the nearest $10
    By Chopper_Haynes in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-04-2005, 02:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1