+ Reply to Thread
Results 1 to 4 of 4

Need formula for finding the additive inverse of a given number

  1. #1
    Registered User
    Join Date
    11-16-2019
    Location
    Liechtenstein, Vaduz
    MS-Off Ver
    365 MSO (64bit)
    Posts
    81

    Need formula for finding the additive inverse of a given number

    Hi lovely Forum Users,

    I need help creating a formula that would look for the additive inverse of a given number.

    So, in columns G to K, there are 7 lines of sets of 5 numbers. In the first line (G3 to K3) there is the no 7 (H3) and its additive inverse -7 (I3). I need the formula to identify them and then to translate the positive number to the value 1 and the negative number to the value -1. Those values shall be visible in the second table (columns M to Q). The place of the values in this column should correspond to the place the positive and negative numbers where in the first table (columns G to K). All the other numbers should be translated into the zeros.

    I prepared and attached a xls file to illustrate what I am talking about.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by bansche123; 09-29-2020 at 06:43 AM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Need formula for finding the additive inverse of a given number

    Your attachment is not valid - see the yellow banner at the top of the screen.

    Pete

    EDIT: It is now - you must have changed it.

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: Need formula for finding the additive inverse of a given number

    Try this in cell M3:

    =IF(COUNTIF($G3:$K3,-G3),SIGN(G3),0)

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Need formula for finding the additive inverse of a given number

    An alternative in M3:

    =IF(G3=0,0,IF(COUNTIF($G3:$K3,-G3),G3/ABS(G3),0))

    Copy across and down as required.

    Hope this helps.

    Pete

+ 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. How to have a permanent and additive reference list?
    By andre199017 in forum Excel General
    Replies: 1
    Last Post: 09-26-2016, 04:30 AM
  2. Replies: 1
    Last Post: 03-11-2016, 12:15 PM
  3. All Possible Additive Combinations of a list in multiples of 5
    By twobox in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-04-2015, 11:00 AM
  4. 'Inverse' number scaling formats for decimal fractions
    By petecollier in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-26-2014, 09:48 AM
  5. [SOLVED] graphing additive data
    By mufan in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 10-22-2013, 06:30 PM
  6. Inverse of a number
    By Martindelica in forum Excel General
    Replies: 4
    Last Post: 06-30-2007, 08:52 AM
  7. Replies: 1
    Last Post: 07-04-2005, 07:05 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