+ Reply to Thread
Results 1 to 14 of 14

How do I treat a negative number as a positive in a formula?

  1. #1
    Registered User
    Join Date
    09-01-2012
    Location
    Staffordshire, England
    MS-Off Ver
    O365
    Posts
    129

    How do I treat a negative number as a positive in a formula?

    I am trying to calculate the monthly interest payable on an overdraft, but it is returning '0' because the cell being looked up is a negative number. Eg:

    cell A1 = -£250,000

    formula

    =(A1*0.0275)/12

    it should be returning £572.92 but is returning 0.

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

    Re: How do I treat a negative number as a positive in a formula?

    try this..

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards!
    =DEC2HEX(3563)

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

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How do I treat a negative number as a positive in a formula?

    abs() wil make the cell absolut.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    09-01-2012
    Location
    Staffordshire, England
    MS-Off Ver
    O365
    Posts
    129

    Re: How do I treat a negative number as a positive in a formula?

    It didnt work - maybe because A1 is a formula itself?

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

    Re: How do I treat a negative number as a positive in a formula?

    A1 is a formula itself
    will never affect on another formula..

    Its working...

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How do I treat a negative number as a positive in a formula?

    The formula of Debra Roy should work for you in e.g. cell B1.

    you try the put the formula in cell A1?

    That can't be done with excel; probably it's possible with VBA.

  7. #7
    Registered User
    Join Date
    09-01-2012
    Location
    Staffordshire, England
    MS-Off Ver
    O365
    Posts
    129

    Re: How do I treat a negative number as a positive in a formula?

    Please see cell C26 in this attachment.

    Sample.xlsx

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How do I treat a negative number as a positive in a formula?

    The problem in your file is you have circle references in your file.

    The result of c26 =(ABS(C39)*0,0275)/12

    depends on the results on c39.

    c39 depends on the result of C33.

    c33 =SOM(C9:C32)

    You have to change the formula of cell c26 (remove the relationship with cell c39).

  9. #9
    Registered User
    Join Date
    09-01-2012
    Location
    Staffordshire, England
    MS-Off Ver
    O365
    Posts
    129

    Re: How do I treat a negative number as a positive in a formula?

    Yes I see now, but a problem how to change it....

  10. #10
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How do I treat a negative number as a positive in a formula?

    You made the file, so you will have to give us the answer.

    But, if you found the answer yourself, i bet you can solve the problem also in the file.

  11. #11
    Forum Contributor
    Join Date
    07-02-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    197

    Re: How do I treat a negative number as a positive in a formula?

    You can activate iteration calculation in your general settings

  12. #12
    Registered User
    Join Date
    09-01-2012
    Location
    Staffordshire, England
    MS-Off Ver
    O365
    Posts
    129

    Re: How do I treat a negative number as a positive in a formula?

    Quote Originally Posted by Rambo4711 View Post
    You can activate iteration calculation in your general settings
    Brilliant, thank you - it has worked when I reduced the maximum iterations from default 100 to 10. Is this the correct thing to do, and what are the implications to this and all other workbooks?

  13. #13
    Forum Contributor
    Join Date
    07-02-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    197

    Re: How do I treat a negative number as a positive in a formula?

    The only implication is that if your first opened workbook in the Excel session is set without iteration, the following workbooks opened will have the non iteration setting. If so, you have to activate the iteration calculation again.

  14. #14
    Registered User
    Join Date
    09-01-2012
    Location
    Staffordshire, England
    MS-Off Ver
    O365
    Posts
    129

    Re: How do I treat a negative number as a positive in a formula?

    Thank you.

+ 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. Formula calculate based on negative or positive number
    By oxicottin in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 11-15-2012, 12:45 PM
  2. Formula to calculate difference between a negative and positive number.
    By zumwaj01 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-25-2012, 02:13 PM
  3. Replies: 4
    Last Post: 06-08-2012, 11:01 AM
  4. Replies: 1
    Last Post: 11-20-2008, 01:52 AM
  5. Replies: 2
    Last Post: 11-13-2008, 12:35 AM

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