+ Reply to Thread
Results 1 to 4 of 4

Get all Results from Number +/- 2

  1. #1
    Registered User
    Join Date
    08-16-2011
    Location
    Tehran,Iran
    MS-Off Ver
    Excel 2007
    Posts
    25

    Get all Results from Number +/- 2

    Hello,

    I have some numbers that I can add or subtract 2 by 2 to get different results.

    So I will have (n(n-1)/2)+n results and some of them will be duplicate values.

    How can I get all unique results in Excel?
    Last edited by AliGW; 09-18-2022 at 06:23 AM. Reason: Thread title improved - please make your thread titles explicit & not generic in future.

  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,853

    Re: Get all Results from Number +/- 2

    Administrative Note:

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. As you are not a frequent visitor, I have done it for you this time.)
    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 Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Get all Results from Number +/- 2

    Are you still using Excel 2007?

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Get all Results from Number +/- 2

    This solution is available in Excel 2007

    This example is for 6 numbers.

    Please try for the possible outcomes of a subtraction copy across and down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Please try for the possible outcomes of an addition copy across and down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Please try for selecting all numbers and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Please try for counting the numbers and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    For the Unique numbers filter the numbers with COUNT=1.
    Attached Files Attached Files
    Last edited by HansDouwe; 09-18-2022 at 08:05 AM.

+ 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. I would like a formula that will look for and plus or situations
    By dtpunshon in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2022, 08:07 AM
  2. if formula for 2 situations
    By search4f in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-30-2019, 09:04 PM
  3. find first zero in two different situations
    By Nitty_gritty in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-07-2018, 08:33 AM
  4. Countif with multiple situations
    By mcgarnagal in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-20-2013, 04:42 PM
  5. Two situations in the same column
    By Steved in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-22-2005, 09:05 PM
  6. [SOLVED] Multiple IF situations
    By K.W.Martens in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-06-2005, 08:06 PM
  7. what if situations
    By scayers in forum Excel General
    Replies: 3
    Last Post: 01-05-2005, 09:37 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