+ Reply to Thread
Results 1 to 6 of 6

Using ABS Correctly

  1. #1
    Forum Contributor
    Join Date
    10-09-2010
    Location
    London
    MS-Off Ver
    Excel Version Office 365
    Posts
    211

    Using ABS Correctly

    Hi community

    Below is a formula that I am using that combines Index and Match.

    In a tab called CTA, if a number is negative such as -$250,000, it would take that number and make is positive


    =ABS(INDEX(CTA!$AC$14:$AC$1206,(MATCH('MI Reports'!$B3,CTA!$E$14:$E$1206,0))))


    There are instances when the number in CTA tab is positive and I would like that to be shown as negative
    Question:

    How can I modify the above formula to factor, if the number is negative, make it positive, but if the number is positive, make it negative?




    Thanks.
    Last edited by Excel-Access; 06-06-2019 at 10:01 AM. Reason: Wrong description

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Using ABS Correctly

    You've done it.

    ABS function ALWAYS returns a positive.
    Test it.

    Put 3 in a blank cell, say A1.
    ABS(A1) is 3

    Now change it to -3

    ABS(A10 is still 3

    ABS ALWAYS returns a positive number (or zero).
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Contributor
    Join Date
    10-09-2010
    Location
    London
    MS-Off Ver
    Excel Version Office 365
    Posts
    211

    Re: Using ABS Correctly

    Apologies for my confusion, I wanted to say the opposite.

    If a number is negative make it positive - ABS does that, but if the number in CTA tab is positive make it negative.

    I hope that is clear.

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Using ABS Correctly

    Hi,

    So just put a single minus sign in front of your current formula.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  5. #5
    Forum Contributor
    Join Date
    10-09-2010
    Location
    London
    MS-Off Ver
    Excel Version Office 365
    Posts
    211

    Re: Using ABS Correctly

    Thank you very much.

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Using ABS Correctly

    You're welcome.

    Cheers

+ 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] How to write =IF((E2>75%)+E2*300) correctly
    By TPS in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-10-2018, 10:52 AM
  2. Using =IF correctly?
    By Overdahill in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-14-2018, 08:45 AM
  3. Doing ON KEY Correctly
    By Logit in forum Excel General
    Replies: 2
    Last Post: 12-10-2017, 01:10 PM
  4. [SOLVED] Add-in not loading correctly
    By toddy00 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-08-2016, 11:42 AM
  5. Using formulae correctly
    By jinxtt in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-26-2014, 09:46 AM
  6. how to correctly use the IF function
    By penfold1992 in forum Excel General
    Replies: 5
    Last Post: 04-11-2012, 09:42 PM
  7. CSE Sum-if not working correctly
    By krjohnso in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-30-2009, 05:08 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