+ Reply to Thread
Results 1 to 4 of 4

Increments of 0.5

  1. #1
    Forum Contributor
    Join Date
    11-17-2006
    Posts
    152

    Increments of 0.5

    Hi,
    Basically i want a cell to raise by increments of 0.5 depending on the value of another cell
    I 've tried figure out a calculation to do this but to no avail unless i'm missing something simple

    If there are 4 hours in a half day, i need to divide the hours cell by that number to get the number of
    half days then get a second cell to display that in increment of 0.5 so: -
    4 hours would = 0.5
    8 hours would = 1.0
    16 hours would = 2

    but heres the tricky bit

    anything between the divisables of 0.5 should be roundedup to the nearest 0.5 so:
    5 hours would = 1.0
    6 hours would = 1.0
    9 hours would = 1.5
    17 hours would = 2.5
    etc

    any ideas?

    Thanks

  2. #2
    Registered User
    Join Date
    06-08-2007
    Posts
    15
    Can you please explain the problem once again... I couldn't get what were you sayin.. do u took the variables as variant or integer?? plz eleborate your prob..

  3. #3
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,451
    Hi,

    try this:

    =CEILING(A1/8,0.5)
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  4. #4
    Forum Contributor
    Join Date
    11-17-2006
    Posts
    152
    That brilliant thanks,

    i figure it out using the MOD() function then adding the different but that alot cleaner

    Thanks,

+ 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