+ Reply to Thread
Results 1 to 6 of 6

Rounding based on 1/4

  1. #1
    Registered User
    Join Date
    09-23-2022
    Location
    Houston, Texas
    MS-Off Ver
    365
    Posts
    72

    Rounding based on 1/4

    I was wondering if there is a way to round numbers based on quarters. For instance, any number that ends in .25 would be round up to the next whole value. 1.25 = 2, 10.25 = 11. The numbers 1.24 = 1, 10.24 = 10.
    Basic round function uses the traditional less than or greater than .5 to round. How could i write a formula to do this?
    Last edited by Rafael1024; 07-01-2023 at 03:22 PM.

  2. #2
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Rounding based on 1/4

    Please try
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,786

    Re: Rounding based on 1/4

    Try this:

    =IF(MOD(A1,1)<0.25,A1,ROUNDUP(A1,0))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Rounding based on 1/4

    Or try
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-23-2022
    Location
    Houston, Texas
    MS-Off Ver
    365
    Posts
    72

    Re: Rounding based on 1/4

    HanDouwe, Thank, this works perfectly.

  6. #6
    Registered User
    Join Date
    09-23-2022
    Location
    Houston, Texas
    MS-Off Ver
    365
    Posts
    72

    Re: Rounding based on 1/4

    ALIGW, this only worked for numbers that ended in greater than .25 but not less than.
    My sample numbers:
    22.23 did not round and just kept the original number.
    but 20.47 did round to 21

+ 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. Rounding numbers up or down based on criteria
    By grezmel in forum Excel General
    Replies: 3
    Last Post: 11-18-2022, 08:26 AM
  2. Rounding based on a cut-off number
    By cubsfan2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-11-2019, 05:12 PM
  3. Rounding up or down based on criteria
    By KCANBS in forum Office 365
    Replies: 2
    Last Post: 08-15-2018, 05:07 AM
  4. [SOLVED] Rounding number based on arbitrary value
    By hamidun in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-06-2016, 08:48 AM
  5. [SOLVED] Macro for rounding up based on certain condition
    By gm2612 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-21-2015, 02:25 PM
  6. [SOLVED] Rounding Up/Down based on total
    By Delta729 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-08-2013, 03:15 AM
  7. Rounding up for down based on cell value
    By Allison in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-08-2005, 07:06 PM

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