+ Reply to Thread
Results 1 to 10 of 10

Incorrect results of UDF function

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Incorrect results of UDF function

    Hello everybody
    I invent this function but I got incorrect results.. I want to know what's wrong with that function?
    Please Login or Register  to view this content.
    Last edited by YasserKhalil; 11-29-2014 at 04:47 PM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: What's wrong with this function

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  3. #3
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Incorrect results of UDF function

    Are the mods happy with the change of title now?

    Can we wade in with questions/answers?

    BSB

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: Incorrect results of UDF function

    Go ahead BadlySpelledBuoy

  5. #5
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Incorrect results of UDF function

    I really don't know what's wrong with the title?
    First I titled the thread : What's the wrong with this function? (Is the title not clear or what?)
    Now I changed the title (Is it suitable now ... ?)

  6. #6
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: What's wrong with this function

    YasserKhalil,

    The title is fine now (thanks zbor), but you don't explain why the function isn't working for you. I suspect two things:
    1) You're not getting the result you require for "blank" cells. This can be solved by moving the section of the function that copes with blanks to the start of the code rather than the end.

    Please Login or Register  to view this content.
    2) You're getting the same outcome for all scores. This could happen if your "scores" are generated by percentages rather than whole numbers. If this is the case then all percentages are less than 1 (i.e. 75% is 0.75). This can be cured by amending the numbers in the code to decimals.

    If it's neither of those things, feel free to tell us what the unexpected results are and we can go from there.

    BSB.

  7. #7
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Incorrect results of UDF function

    Working fine for me..
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  8. #8
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Incorrect results of UDF function

    Thank you Mr. BadlySpelledBuoy
    Now it works fine for me
    Is there any remarks about this function ? I'm just a beginner

  9. #9
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Incorrect results of UDF function

    No real comment. It's a nice little function. Well done.

    BSB.

  10. #10
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Incorrect results of UDF function

    Thanks for your encouragement my professor

+ 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] Using Offset function as the array in the PercentRank function is giving wrong result
    By Bobneil in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-06-2013, 09:29 PM
  2. What is wrong with this function?
    By idunham in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-19-2012, 10:51 AM
  3. Replies: 5
    Last Post: 04-12-2010, 11:10 AM
  4. Am I using the wrong function?
    By nowwecanmakewar in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 09-19-2007, 05:28 PM
  5. [SOLVED] What am I doing wrong with PMT function?
    By Marc in forum Excel General
    Replies: 6
    Last Post: 05-06-2006, 05:40 PM

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