Share via

excel function

Anonymous
2024-08-13T10:24:19+00:00

hello, please help me.

i have table like this

30,29,28,27,26,25,24,23,22,21,20,19,18,17 15,16,17,18,19,30,29 28,27,26,25,24,23,22,21,20
1,2,3,8,9,10 1,2,8 3,9,10
5,6,9,11,12,13,15 9,11,12 5,6,13,15
30,29,28,27,26,1,2,3 30,29,27,26,1 28,2,3

column A (left) data text, column B (middle) random data text take from column A. and column C is the rest from A. what excel function that i have to used for column C?

thank you

Microsoft 365 and Office | Excel | Other | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

4 answers

Sort by: Most helpful
  1. HansV 462.6K Reputation points
    2024-08-13T11:05:17+00:00

    In C2:

    =LET(all, TEXTSPLIT(A2, ","), some, TEXTSPLIT(B2, ","), rest, FILTER(all, ISERROR(XMATCH(all, some)), ""), TEXTJOIN(", ", TRUE, rest))

    Fill down.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Ashish Mathur 102K Reputation points Volunteer Moderator
    2024-08-13T23:36:12+00:00

    Hi,

    In Power Query, this M code will work

    let

    Source = Excel.CurrentWorkbook(){[Name="Data"]}[Content], 
    
    #"Added Custom" = Table.AddColumn(Source, "Custom", each Text.Combine(List.RemoveMatchingItems(Text.Split([All],","),Text.Split([Criteria],",")),",")) 
    

    in

    #"Added Custom"
    

    Hope this helps.

    Was this answer helpful?

    0 comments No comments
  3. Ashish Mathur 102K Reputation points Volunteer Moderator
    2024-08-13T23:29:41+00:00

    Hi,

    In cell C2, enter this formula

    =MAP(A2:A5,B2:B5,LAMBDA(x,y,LET(a,TEXTSPLIT(x,,","),TEXTJOIN(",",TRUE,FILTER(a,ISERROR(XMATCH(a,TEXTSPLIT(y,,","))))))))

    Hope this helps.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2024-08-13T11:06:59+00:00

    @arthika pusparini

    Please enter the below formula in C1

    =TEXTJOIN(",",,LET(mn,TEXTSPLIT(A1,","),SRC,TEXTSPLIT(B1,","),LKUP,XLOOKUP(mn,SRC,SRC,"NF"),FILTER(mn,LKUP="NF")))

    Was this answer helpful?

    0 comments No comments