+ Reply to Thread
Results 1 to 5 of 5

No Rounding to whole number formula or format?

  1. #1
    Registered User
    Join Date
    08-20-2007
    Posts
    10

    No Rounding to whole number formula or format?

    Hello,

    I've built an age calculator that calculates someones age when their date of birth and the current date is supplied. The only way I can keep the age from rounding up is if I leave a couple of decimal places. My boss dosn't want the decimal places.

    How do I make the numbers not round up?

    Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    04-11-2006
    Posts
    407
    Have you tried the "Rounddown" function?

    =Rounddown(A1,0)

    so if cell A1 contained the value 7.9999999999 the formula would return only 7

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Quote Originally Posted by brandoncartwrig
    I've built an age calculator that calculates someones age when their date of birth and the current date is supplied.
    How are you doing that?

    To give just the whole years try

    =DATEDIF(A1,TODAY(),"y")

    where A1 contains date of birth

  4. #4
    Valued Forum Contributor Dunc3142's Avatar
    Join Date
    09-05-2007
    Location
    Franklin OH
    MS-Off Ver
    2000 and 2007 and 2010 @ Home & Teach 2010
    Posts
    351

    I think this will work for you

    Age calculator.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-20-2007
    Posts
    10

    Thumbs up

    Quote Originally Posted by daddylonglegs
    How are you doing that?

    To give just the whole years try

    =DATEDIF(A1,TODAY(),"y")

    where A1 contains date of birth

    Great! Thanks DaddyLongLegs! That was the formula I needed to use.

+ 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