+ Reply to Thread
Results 1 to 8 of 8

Help fix a formula to return unmatched values

  1. #1
    Registered User
    Join Date
    11-03-2019
    Location
    China
    MS-Off Ver
    Microsoft Office 2016
    Posts
    12

    Help fix a formula to return unmatched values

    Hey guys

    We have specific values in cell C36 to C43.

    We want to match these against values in cell C1 to C34, and return the unmatched values.

    So, we were given this formula to do so:

    =IFERROR(INDEX(C:C, AGGREGATE(15,6,ROW(C$1:C$34)/(ISERROR(MATCH(C$1:C$34,C$36:C$43, 0))), ROWS(C$45:C45))),”")

    Somehow it doesn’t work.

    Please refer to the enclosed Excel file.

    Can someone help fix it or suggest alternative?

    (BTW, this is a simplified scenario. We are actually working on many rows, so best if the formula do not need to reference to all cells in column C, otherwise we would be prone to error.)

    thank you very much!
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Help fix a formula to return unmatched values

    Please try at C45
    =IFERROR(AGGREGATE(15,6,$C$36:$C$43/ISNA(MATCH($C$36:$C$43,$C$1:$C$34,)),ROWS(C$45:C45)),"")
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-03-2019
    Location
    China
    MS-Off Ver
    Microsoft Office 2016
    Posts
    12

    Re: Help fix a formula to return unmatched values

    Dear Bo_Ry
    The formula appears to be working well.
    Thank you very much !
    Just to be sure, let me test it further before marking this thread solved.

  4. #4
    Registered User
    Join Date
    11-03-2019
    Location
    China
    MS-Off Ver
    Microsoft Office 2016
    Posts
    12

    Re: Help fix a formula to return unmatched values

    Dear,

    The formula works perfectly when there is one column of data to match against.
    But then we try to add one more column of data, and use a defined name to cover both columns
    Then we went into problem.
    Would you be kind enough to take a look at the enclosed worksheet?
    Thank you!!
    Attached Files Attached Files

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Help fix a formula to return unmatched values

    Most of the formula doesn't work with unconnected range.

    Try this with connected range
    =IFERROR(AGGREGATE(15,6,AF$36:AF$39/(COUNTIF($AF$1:$AJ$34,$AF$36:$AF$39)=0),ROWS(AF$41:AF41)),"")

    or this with unconeted range
    =IFERROR(AGGREGATE(15,6,AF$36:AF$39/ISNA(MATCH(AF$36:AF$39,AF$1:AF$34,))*ISNA(MATCH(AF$36:AF$39,$AJ$1:$AJ$34,)),ROWS(AG$41:AG41)),"")
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    11-03-2019
    Location
    China
    MS-Off Ver
    Microsoft Office 2016
    Posts
    12

    Re: Help fix a formula to return unmatched values

    Thank you again!
    The formula seem to work.
    There is one minor issue - when one of the matched values comes from the 2nd column, the formula always returns “zero”.
    If there are further suggestion on how to handle this, I would be eager to know.

    Bo_Ry, you have help me twice already.
    Appreciated!
    God bless.
    Attached Files Attached Files

  7. #7
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Help fix a formula to return unmatched values

    I miss this just change * to /

    =IFERROR(AGGREGATE(15,6,P$36:P$39/ISNA(MATCH(P$36:P$39,P$1:P$34,))/ISNA(MATCH(P$36:P$39,T$1:T$34,)),ROWS(Q$41:Q41)),"")

  8. #8
    Registered User
    Join Date
    11-03-2019
    Location
    China
    MS-Off Ver
    Microsoft Office 2016
    Posts
    12

    Re: Help fix a formula to return unmatched values

    Really great!
    Thank you very much!

+ 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] Formula to return unmatched numbers
    By FierceExcel in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-30-2019, 09:26 AM
  2. Need Formula help to identify unmatched entry
    By pavanranjan in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-25-2019, 02:08 AM
  3. [SOLVED] Macro not adding unmatched values to list
    By Ochimus in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-16-2018, 04:15 PM
  4. Formula that returns only values of cells and doesnt return blank/NA values
    By pageandrewr1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-08-2016, 12:32 PM
  5. Finding Unmatched Values
    By archimaitreya in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-15-2016, 07:58 AM
  6. [SOLVED] Sum of unmatched values
    By nagesh.tvsr in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-23-2015, 02:43 AM
  7. [SOLVED] matching pairs and removing unmatched (unique) values
    By limeinside in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-16-2012, 07:47 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