Results 1 to 9 of 9

Custom Rounding And IF Statement In One Formula....

Threaded View

  1. #4
    Registered User
    Join Date
    03-16-2013
    Location
    Portland, OR
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Custom Rounding And IF Statement In One Formula....

    Quote Originally Posted by shg View Post
    =choose(match(int(a1) + lookup(round(mod(a1,1), 6), {0,4,8}/10, {0,5,10}/10), {0,3.5,7.5}), 2*int(a1) + lookup(round(mod(a1,1), 6), {0,4,8}/10, {0,5,10}/10), 6, 8)
    SOOOOO Close. These two ranges work PERFECTLY!
    • 3.5 to 7 = 3
    • 7.5 and above = 4


    But the first one "1 through 3 = its own size (1 is 1, 1.5 is 1.5, 2 is 2, 2.5 is 2.5, 3 is 3)" adds an extra .5 to the number if it is whole number and gives the wrong number when if the original number ends in .5 . And I cannot see why...
    Last edited by HobbesIsReal; 08-03-2013 at 05:17 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Rounding decimals (...or custom number formatting?)
    By kitpierce in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-13-2013, 06:03 PM
  2. Custom formatting code - rounding problem
    By venkys4u in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-13-2012, 12:25 AM
  3. Excel 2007 : custom rounding to every .05.
    By ameerulislam in forum Excel General
    Replies: 2
    Last Post: 10-01-2011, 05:42 AM
  4. Custom rounding function
    By doctordowling in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-30-2010, 03:42 PM
  5. [SOLVED] Custom format rounding
    By Ray88 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-14-2006, 06:45 AM

Tags for this Thread

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