+ Reply to Thread
Results 1 to 5 of 5

formula value behaves as text on numeric result

  1. #1
    Forum Contributor
    Join Date
    08-17-2013
    Location
    Asia
    MS-Off Ver
    Excel 2010
    Posts
    271

    formula value behaves as text on numeric result

    I have value 3259.90 in cell AD9

    I want to extract only the decimal part, so, i am using formula in cell AF9

    =AD9-TRUNC(AD9)

    or

    =MOD(AD9,1)

    both would bring the decimal value 0.9 or 0.90 BUT when i am testing it with IF formula, like =IF(AF9=0.9,9,0), it shows false results, and returns 0 (return value on non fulfilling conditions)

    I tried using VALUE function also, but no desired result. What formula i should use to get only decimal value, and test it with IF function, to ensure certain other work.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,333

    Re: formula value behaves as text on numeric result

    Increase the number of decimal places in AF9 and you will see why.


    =ROUND(AD9-TRUNC(AD9),1)

    or

    =ROUND(MOD(AD9,1),1)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,333

    Re: formula value behaves as text on numeric result

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

  4. #4
    Forum Contributor
    Join Date
    08-17-2013
    Location
    Asia
    MS-Off Ver
    Excel 2010
    Posts
    271

    Re: formula value behaves as text on numeric result

    Thanks for solution, and apology for this mistake. Site was down (at my end) was not able to see the post, so i thought, request not made. After few hours , i tried again, but website did not work, so request made at http://www.ozgrid.com/forum/showthread.php?t=202212. Sincerely apologise for this.

    Is it possible to delete this thread?
    Last edited by analystbank; 12-21-2016 at 05:51 AM.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,333

    Re: formula value behaves as text on numeric result

    No need to delete the thread, as it may prove useful to someone else.

+ 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. Excel formula behaves like a Filter function
    By ykobure in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-22-2015, 11:10 AM
  2. Convert a formula result to text so another formula can find that result
    By rwoollams in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-12-2014, 01:49 AM
  3. combobox result coming as text, not numeric
    By jalba in forum Excel General
    Replies: 14
    Last Post: 06-06-2014, 09:08 PM
  4. Replies: 15
    Last Post: 09-22-2011, 08:14 AM
  5. How to get a Numeric result from text input
    By jodell in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-16-2008, 03:12 PM
  6. Formula behaves differently
    By mtpsuresh in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-22-2006, 07:14 AM
  7. Replies: 7
    Last Post: 03-02-2005, 04:06 AM

Tags for this Thread

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