+ Reply to Thread
Results 1 to 4 of 4

Trunc Function not performing

Hybrid View

  1. #1
    Registered User
    Join Date
    06-22-2008
    Posts
    2

    Trunc Function not performing

    The formula in cell AF5 will return a value of 1, as it should, but the same formula doesn't return the correct answer (should be '1') in cells AF6 and AF10?

    many thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    That is because the values in AE6 and AE10 are less than the value in AE4. So the function result is 0.??? and when you remove the decimal part (with TRUNC), you get 0.

    Try looking at ROUND, or ROUNDUP or something like that if you think the result should be 1 for those cells.


    rylo

  3. #3
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    cstauber

    Welcome to Exceltip forum

    Please take a couple of minutes and read the Forum Rules

    In future please use better thread titles
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  4. #4
    Registered User
    Join Date
    06-22-2008
    Posts
    2

    Trunc Function not performing

    Thank you so much - I knew it was something glaringly simple.

    <Bows to the master>

+ 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