+ Reply to Thread
Results 1 to 6 of 6

Floor & Ceiling Problem When Value Is Exactly As Spec'd Category

  1. #1
    Forum Contributor
    Join Date
    02-09-2009
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    380

    Floor & Ceiling Problem When Value Is Exactly As Spec'd Category

    Probably easier if I show a picture first:

    1.jpg

    I have a single number in the height column need to display it's height classification to the nearest 0.50; but the final value (last 2 digits in the B column) should always be the highest & the first 3 digits in column B should never fall into the same classification as column B.

    Please Login or Register  to view this content.
    Works perfectly in the first 2 rows however it falls on problems in row 4. Anyone have an idea of the most efficient solution?
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: Floor & Ceiling Problem When Value Is Exactly As Spec'd Category

    Try:
    Please Login or Register  to view this content.
    Not sure if it'll work in every situation.

  3. #3
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: Floor & Ceiling Problem When Value Is Exactly As Spec'd Category

    try:

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


    This extra function will add 0,5 if the value is whole number.
    you could also put it as a substract in the floor function if you want whole numbers to be the end of the range.
    Last edited by Roel Jongman; 04-11-2019 at 02:51 PM.

  4. #4
    Forum Contributor
    Join Date
    02-09-2009
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    380

    Re: Floor & Ceiling Problem When Value Is Exactly As Spec'd Category

    Thanks Melvosh, where do you think it could fall short?

    I just come up with this & I think it may be foolproof?

    Please Login or Register  to view this content.

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Floor & Ceiling Problem When Value Is Exactly As Spec'd Category

    How about

    =FIXED(FLOOR(A2,0.5),2)&" - "&FIXED(CEILING(A2+0.001,0.5),2)

  6. #6
    Forum Contributor
    Join Date
    02-09-2009
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    380

    Re: Floor & Ceiling Problem When Value Is Exactly As Spec'd Category

    Thanks Bo_Ry, I think that would push the higher category 0.50 higher. I think I solved it with deducting the floor value. Thanks again guys, it's typical, stuck on it for a couple of hours and as soon as you post you figure something out .

+ 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. [SOLVED] Possible to add a Floor and Ceiling to existing formula?
    By Jim Clayton in forum Excel General
    Replies: 4
    Last Post: 04-13-2018, 01:19 PM
  2. Using Floor / Ceiling dynamically
    By Malinor in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-18-2018, 09:43 PM
  3. Floor and ceiling functions
    By Parkerlad in forum Excel General
    Replies: 3
    Last Post: 11-03-2011, 08:58 AM
  4. FLOOR and CEILING functions
    By jalba in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-09-2009, 05:44 PM
  5. Something like CEILING or FLOOR
    By gusvenables in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-28-2005, 12:05 AM
  6. [SOLVED] ceiling & floor
    By Bill Ridgeway in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 08-07-2005, 10:05 AM
  7. ceiling and floor functions
    By JFamilo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-21-2005, 11:13 AM

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