+ Reply to Thread
Results 1 to 4 of 4

Search within a range of matched IDs and find a matched pair of numbers

  1. #1
    Registered User
    Join Date
    02-28-2024
    Location
    Seattle, WA
    MS-Off Ver
    2021
    Posts
    2

    Search within a range of matched IDs and find a matched pair of numbers

    How do I return a result that says Match or No Match in column C after searching to see if an ID matches in column B and also the numbers in column A are opposite of each other?

    Criteria:

    1. Column B: ID must match
    2. Numbers are opposite of each other in column A by searching in the range of the matched IDs in column B
    3. Return the result in column C: "Match" or "No Match"

    For example:

    sample question.png

  2. #2
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Search within a range of matched IDs and find a matched pair of numbers

    Solution.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    02-28-2024
    Location
    Seattle, WA
    MS-Off Ver
    2021
    Posts
    2

    Re: Search within a range of matched IDs and find a matched pair of numbers

    I understand if True then return "Match" and if False then return "No match".

    What I don't know is how the SUM function with the asterisk works. Do you mind explaining the logic behind the SUM function above?

    Thank you so much for the formula.

  4. #4
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Search within a range of matched IDs and find a matched pair of numbers

    Of course.

    The formula returns to the function SUM a bunch of zeros and 1 (many cells..), the SUM function then return the sum of it all in 'one cell'.
    "*" is the equivalent of function AND(), as "+" is the equivalent of the function OR().
    So, the logic values TRUE and FALSE have an mathematical equivalent of 1 and 0, with them you can add and multiply.

+ 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] split data into two sheets matched & not matched based on matching sheet
    By abdo meghari in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-31-2022, 02:24 PM
  2. [SOLVED] how to write Matched or Not Matched based on other cell value
    By emmr in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-04-2021, 10:52 AM
  3. Number of Unique numbers if value matched in material range
    By GordonKy42 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-26-2021, 04:09 AM
  4. [SOLVED] Formula to Sum range of numbers if dates and text are matched
    By Mr.Castle in forum Excel General
    Replies: 7
    Last Post: 07-26-2020, 02:17 AM
  5. [SOLVED] Search Group of Numbers in Cel Rangel and Highligh matched numbers.
    By david gonzalez in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-24-2013, 01:07 AM
  6. Search a range and copy data if matched
    By Steven811 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-14-2012, 10:22 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