+ Reply to Thread
Results 1 to 8 of 8

Matching Positive and Negative values with matching non numeric attributes

  1. #1
    Registered User
    Join Date
    09-15-2017
    Location
    london
    MS-Off Ver
    xp
    Posts
    3

    Lightbulb Matching Positive and Negative values with matching non numeric attributes

    Hi All,

    Can any one assist is providing a unique formula that will match positive and negative with corresponding matching attributes.

    e.g.

    Find positive and negative values with matching Projects, Cost Centres & POs

    Project Cost Centre PO Value Formula needed
    N20549 05327 20922767 -100 MATCH
    N20549 05327 20922767 100 MATCH
    I01392 06391 20899753 100 No MATCH
    I01356 06693 20899753 100 No MATCH
    I01394 06667 20917173 300 MATCH
    I01394 06667 20917173 -300 MATCH
    I02466 06686 20916172 400 No MATCH
    I01463 06686 20916172 -400 No MATCH

    I have tried a few formulas and access queries but I'm unable to crack this.

    Your support would be greatly appreciated.

    Regards, Mr H

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: Matching Positive and Negative values with matching non numeric attributes

    Use this, copied down:

    =IF(SUMPRODUCT(($A$2:$A$9=A2)*($B$2:$B$9=B2)*($C$2:$C$9=C2)*(ABS($D$2:$D$9)=ABS(D2)))=2,"Match","No Match")
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Matching Positive and Negative values with matching non numeric attributes

    Or this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Matching Positive and Negative values with matching non numeric attributes

    =IF(SUM(INDEX($D$2:$D$18,MAX(IF((A2=$A$2:$A$18)*(B2=$B$2:$B$18)*(C2=$C$2:$C$18)=1,ROW($A$1:$A$16)))),INDEX($D$2:$D$18,MATCH(1,(A2=$A$2:$A$18)*(B2=$B$2:$B$18)*(C2=$C$2:$C$18),)))=0,"","No ")&"MATCH"
    as array formula

  5. #5
    Registered User
    Join Date
    09-15-2017
    Location
    london
    MS-Off Ver
    xp
    Posts
    3

    Re: Matching Positive and Negative values with matching non numeric attributes

    Hi Glenn,

    Thanks for your quick response.

    I copied it onto on a larger data set but the formula came back with matches when there wasn't a corresponding -/+.

    See attached sample worksheet.

    Regards, Mr H
    Attached Files Attached Files

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Matching Positive and Negative values with matching non numeric attributes

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

  7. #7
    Registered User
    Join Date
    09-15-2017
    Location
    london
    MS-Off Ver
    xp
    Posts
    3

    Re: Matching Positive and Negative values with matching non numeric attributes

    Hi Alkey,

    Thanks for you reply.

    I have copied the formula into a larger data set and found the formula matches non negatives. What needs to change in the formula to ensure the + / - net off to zero and doesn't find any additional matches.

    See attached file.

    Thanks again,

    Mr H
    Attached Files Attached Files

  8. #8
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Matching Positive and Negative values with matching non numeric attributes

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

+ 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] Matching negative value w/ corresponding positive value
    By Tom K in forum Excel General
    Replies: 22
    Last Post: 05-14-2019, 02:27 AM
  2. Matching positive to negative values
    By harrison298 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-08-2017, 11:52 PM
  3. Replies: 5
    Last Post: 01-30-2017, 10:16 AM
  4. [SOLVED] Matching negative and positive reconciliation
    By boon-yao.tek in forum Excel General
    Replies: 5
    Last Post: 10-25-2016, 06:07 PM
  5. Replies: 2
    Last Post: 09-10-2014, 08:56 AM
  6. Matching negative value w/ corresponding positive value
    By clarayee82 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-07-2013, 04:15 PM
  7. Replies: 8
    Last Post: 07-28-2012, 03:22 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