+ Reply to Thread
Results 1 to 5 of 5

Fix formula to get unique OP from multiple rows

  1. #1
    Registered User
    Join Date
    05-08-2014
    Location
    Dublin
    MS-Off Ver
    Excel 2010
    Posts
    2

    Fix formula to get unique OP from multiple rows

    See attached workbook - trying to fix the formula in Column K which should deliver a unique output for each row while checking the OPs in the rows above also. The correct OP is shown in Col M.
    Attached Files Attached Files

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

    Re: Fix formula to get unique OP from multiple rows

    Why is in M8 C2 correct? I expected C1 from A8. See attached file.
    C1 doesn't appear above in column M either.

    If the intention is to find all unique OPs, use this formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by HansDouwe; 08-30-2022 at 06:29 PM.

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

    Re: Fix formula to get unique OP from multiple rows

    Your profile is CLEARLY incorrect. Since you used FILTER, I assume you have O365. Please modify it NOW.

    I suspect two of your expected answers are incorrect. Please check them (purple cells)

    =LET(r,A2:J2,str,FILTERXML("<A><B>"&SUBSTITUTE(TEXTJOIN(",",,r),",","</B><B>")&"</B></A>","//B"),f,IF(ISNUMBER(MATCH(str,O$1:O1,0)),"",str),fl,FILTER(f,f<>""),INDEX(fl,1,))

    copied down.
    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

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

    Re: Fix formula to get unique OP from multiple rows

    This works also

    Please try =A2 in cell N2
    Please try in N3 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    @Liverpool100, You was very close with your own formula in column K
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-08-2014
    Location
    Dublin
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Fix formula to get unique OP from multiple rows

    Hi Glenn and Hans - both solutions work - much appreciated

+ 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. A formula to find unique rows without using the UNIQUE function
    By kyojin in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-31-2022, 07:42 PM
  2. [SOLVED] Transpose data in six columns into unique and multiple rows based on unique club name
    By JimmyB11 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-04-2021, 09:12 AM
  3. Get the Unique Names from the Multiple Rows
    By Sanjibghosh in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-25-2017, 11:03 AM
  4. Replies: 6
    Last Post: 05-30-2016, 01:59 PM
  5. Replies: 2
    Last Post: 02-06-2013, 04:44 AM
  6. Replies: 1
    Last Post: 11-29-2012, 06:24 PM
  7. Get unique rows from multiple rows with varying values
    By Sarah-Ann in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-03-2011, 09:33 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