+ Reply to Thread
Results 1 to 2 of 2

Round to nearest quarter & half

  1. #1
    Registered User
    Join Date
    12-06-2003
    Posts
    6

    Round to nearest quarter & half

    How do I get a value to round to (1) the nearest half (2) the nearest quarter?

    So
    8:23 would yield 8.25 & 8.00
    72.67 would yield 72.75 & 72.50

    Thanks.

  2. #2
    Cheeky Forum Moderator Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    I suspect there's more than one way to do that. Here're my thoughts.

    Nearest 0.25:
    =INT(A4)+ROUND(MOD(A4,1)/0.25,0)*0.25

    Nearest 0.50:
    =INT(A4)+ROUND(MOD(A4,1)/0.5,0)*0.5

    Do those work for you?

    Regards,
    Ron

+ 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