+ Reply to Thread
Results 1 to 13 of 13

Decimal Issues In IF Formula

  1. #1
    Registered User
    Join Date
    05-24-2020
    Location
    London
    MS-Off Ver
    2016
    Posts
    76

    Decimal Issues In IF Formula

    Hi, I have this formula: See Formula 1 in first comment (Can't post here as I get this error message with my formula: You are not allowed to post any kinds of links, images or videos until you post a few times.)


    The part where it says "Value Per Pip/Point" refers to a column which has a figure with 2 decimal places e.g. 0.07
    The formula above is calculating the whole figure of 0.0729571984 which is causing the calculation to be incorrect.
    How do I get the formula to use the actual figure shown in the cell which is 0.07?

    Thanks

  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
    80,719

    Re: Decimal Issues In IF Formula

    There are instructions at the top of the page explaining how to attach your sample workbook.
    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
    Registered User
    Join Date
    05-24-2020
    Location
    London
    MS-Off Ver
    2016
    Posts
    76

    Re: Decimal Issues In IF Formula

    I can't seem to send the formula for the above question.

  4. #4
    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
    80,719

    Re: Decimal Issues In IF Formula

    Please read post #2 and the instructions referred to therein.

  5. #5
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,616

    Re: Decimal Issues In IF Formula

    First idea - you can change accurracy of calculations to fit the displayed accuraccy in excel options
    Second one - you can use ROUND function nested into your IF

    a general tip (no link, no video, image (screenshot) only as a supplementary). We like receiving excel workbooks as attachments/examples/explanations - hot to attach - see at the bottom of the below text:

    Please read the yellow banner at the top of the page. Or skip to extended version of it below:

    Will you please attach a SMALL sample Excel workbook(s) (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. (If there are typical cases like: all unique values/duplicates could occur, day/night, nobody present/several persons at once, before/on/past due, empty cells between data, mixed text/numbers, merged cells, some important cells filled with content by macro/manually/by formula, etc. - please show them all, or at least indicate in text). The use of unrepresentative data and formats is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution(s) is/are also shown (mock up the results manually).

    3. Make sure that all confidential/restricted information (either personal or business) like real e-mails, social security numbers, bank accounts, etc. is removed first!!

    To attach an Excel file you have to do the following (paperclip icon does not work!): Just before posting, scroll down and press Go Advanced button and then scroll down and press Manage Attachments link. Now follow the instructions at the top of that pop-up screen.
    Best Regards,

    Kaper

  6. #6
    Registered User
    Join Date
    05-24-2020
    Location
    London
    MS-Off Ver
    2016
    Posts
    76

    Re: Decimal Issues In IF Formula

    I have attached a spreadsheet to the above question.
    Please let me know if that helps.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    05-24-2020
    Location
    London
    MS-Off Ver
    2016
    Posts
    76

    Re: Decimal Issues In IF Formula

    Please see attached spreadsheet below
    Last edited by AliGW; 05-25-2020 at 07:42 AM. Reason: Please don't quote unnecessarily!

  8. #8
    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
    80,719

    Re: Decimal Issues In IF Formula

    Perhaps round the amount:

    =IFERROR(IF(LEFT([@Status],3)="Ope"," N/A - Open Trade",IF(OR([@Status]="",[@Status]=" - ")," - ",IF(LEFT([@Status],12)="Trade Closed",SUM([@[Points+/-]]*ROUND([@[Value Per Pip/Point]],2),[@[Mics Adjustment]]),"N/A - Check Row Inputs"))),"N/A - Check Row Inputs")

  9. #9
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,616

    Re: Decimal Issues In IF Formula

    This is what I ment in post #5 by ROUND nesting:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    05-24-2020
    Location
    London
    MS-Off Ver
    2016
    Posts
    76

    Re: Decimal Issues In IF Formula

    @AliGW

    Thank you so much, this has resolved my issue :-)
    Last edited by AliGW; 05-25-2020 at 07:54 AM.

  11. #11
    Registered User
    Join Date
    05-24-2020
    Location
    London
    MS-Off Ver
    2016
    Posts
    76

    Re: Decimal Issues In IF Formula

    @Kaper

    Thanks a lot, this has helped to resolve my issue and thanks for the spreadsheet too :-)

  12. #12
    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
    80,719

    Re: Decimal Issues In IF Formula

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Administrative Note:

    Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter. It's OK to quote if you are responding to a post out of sequence, but limit quoted content to a few relevant lines that makes clear to whom and what you are responding. Thanks!

    For normal conversational replies, try using the QUICK REPLY box below or the REPLY button instead of REPLY WITH QUOTE.

  13. #13
    Registered User
    Join Date
    05-24-2020
    Location
    London
    MS-Off Ver
    2016
    Posts
    76

    Re: Decimal Issues In IF Formula

    Ok I'll do that next time.

    Thanks

+ 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] decimal formatting issues
    By Davisalwayshere in forum Excel General
    Replies: 6
    Last Post: 09-18-2014, 05:12 PM
  2. [SOLVED] decimal formatting issues
    By Davisalwayshere in forum Word Formatting & General
    Replies: 6
    Last Post: 09-18-2014, 05:12 PM
  3. Decimal issues while multiplying
    By abduljaleel.mca in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-02-2014, 02:41 PM
  4. i have code which replaces fraction to decimal but i have some issues in that
    By baig123 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-21-2014, 06:27 AM
  5. Replies: 2
    Last Post: 06-29-2012, 07:52 PM
  6. Conversions of Decimal Feet to Decimal Inches - Formula??
    By shubhamdev in forum Excel General
    Replies: 2
    Last Post: 04-15-2012, 03:57 AM
  7. Decimal Issues
    By Danny in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-24-2006, 01:45 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