+ Reply to Thread
Results 1 to 4 of 4

Floor and ceiling functions

Hybrid View

  1. #1
    Registered User
    Join Date
    03-09-2010
    Location
    Loughborough
    MS-Off Ver
    2011
    Posts
    19

    Exclamation Floor and ceiling functions

    Hi all

    I wondered if someone could help me. I was a function which combined the ceiling and floor functions.

    Working on 2.5 floor or ceiling value, If the value in a cell is for example 25.5 I would like it to round it down to 25 and conversely, if it is above the midpoint between 25 and 27.5 (i.e. 26.25), then I would like it round it up. I would like this to work for all values though through 2.5 interval values.

    Hope this makes sense. The value in a cell is often determined by a formula. The current one I am looking at is as follows;

    = t4 - g14

    this returns the value 27.175. I want this to round up to 27.5. If however the value had been 26.124, then I would like this to round down to 25.

    Any help would be much appreciated

    Cheers

    David

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,702

    Re: Floor and ceiling functions

    Try using MROUND, i.e.

    =MROUND(T4-G14,2.5)
    Audere est facere

  3. #3
    Registered User
    Join Date
    03-09-2010
    Location
    Loughborough
    MS-Off Ver
    2011
    Posts
    19

    Re: Floor and ceiling functions

    its ok I've worked it out using the mround function. Seems to be working

    thanks

  4. #4
    Registered User
    Join Date
    03-09-2010
    Location
    Loughborough
    MS-Off Ver
    2011
    Posts
    19

    Re: Floor and ceiling functions

    thanks daddylonglegs....

    great minds!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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