+ Reply to Thread
Results 1 to 4 of 4

Round number to nearest 1/4, 1/3, 1/2, 2/3, or 3/4 only?

  1. #1
    Forum Contributor
    Join Date
    10-30-2010
    Location
    Kansas, USA
    MS-Off Ver
    Excel 2010
    Posts
    100

    Round number to nearest 1/4, 1/3, 1/2, 2/3, or 3/4 only?

    Say I have 5.25 I want to read like 5 1/4. If it's 5.31 I want it to read 5 1/3. If it's 5.74, 5 3/4 etc...

    Is there a way?
    Last edited by trickyricky; 12-11-2010 at 03:41 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Need Help for formula to round a number to nearest 1/4, 1/3, 1/2, 2/3, or 3/4 onl

    Right click on the cell with number
    Format cells
    Fraction
    Up to one digit (1/4)
    OK

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Round number to nearest 1/4, 1/3, 1/2, 2/3, or 3/4 only?

    Try

    =INT(A1) + LOOKUP(MOD(A1,1), {0;3;7;10;14;17;21}/24, {0;3;4;6;8;9;12}/12)

    ... and format the result as # ?/?
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Forum Contributor
    Join Date
    10-30-2010
    Location
    Kansas, USA
    MS-Off Ver
    Excel 2010
    Posts
    100

    Re: Round number to nearest 1/4, 1/3, 1/2, 2/3, or 3/4 only?

    shg you're a beast! thank you kindly!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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