SOLVED

Traverse each row, perform conditional checks

%3CLINGO-SUB%20id%3D%22lingo-sub-3182970%22%20slang%3D%22en-US%22%3ETraverse%20each%20row%2C%20perform%20conditional%20checks%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3182970%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20want%20to%20traverse%20rows%20which%20have%20duplications%20and%20extract%20unique%20data%20from%20their%20respective%20columns.%3C%2FP%3E%3CP%3ELike%20the%20data%20is%20in%20this%20form%3C%2FP%3E%3CTABLE%20width%3D%22381%22%3E%3CTBODY%3E%3CTR%3E%3CTD%20width%3D%22125%22%3E%3CSTRONG%3EAbc%20Id%3C%2FSTRONG%3E%3C%2FTD%3E%3CTD%20width%3D%22126%22%3E%3CSTRONG%3EFull%2Fpart%20time%3C%2FSTRONG%3E%3C%2FTD%3E%3CTD%20width%3D%22130%22%3E%3CSTRONG%3Ecount%3C%2FSTRONG%3E%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EC001%3C%2FTD%3E%3CTD%3EFull%20time%3C%2FTD%3E%3CTD%3E5%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EC001%3C%2FTD%3E%3CTD%3EPart%20time%3C%2FTD%3E%3CTD%3E3%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EC002%3C%2FTD%3E%3CTD%3EFull%20time%3C%2FTD%3E%3CTD%3E9%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EC002%3C%2FTD%3E%3CTD%3EPart%20time%3C%2FTD%3E%3CTD%3E4%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3EI%20want%20to%20convert%20it%20like%20this%3C%2FP%3E%3CTABLE%20width%3D%22381%22%3E%3CTBODY%3E%3CTR%3E%3CTD%20width%3D%22125%22%3E%3CSTRONG%3EAbc%20Id%3C%2FSTRONG%3E%3C%2FTD%3E%3CTD%20width%3D%22126%22%3E%3CSTRONG%3EFull%20Time%3C%2FSTRONG%3E%3C%2FTD%3E%3CTD%20width%3D%22130%22%3E%3CSTRONG%3EPart%20time%3C%2FSTRONG%3E%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EC001%3C%2FTD%3E%3CTD%3E5%3C%2FTD%3E%3CTD%3E3%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EC002%3C%2FTD%3E%3CTD%3E9%3C%2FTD%3E%3CTD%3E4%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3182970%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPower%20BI%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3183008%22%20slang%3D%22en-US%22%3ERe%3A%20Traverse%20each%20row%2C%20perform%20conditional%20checks%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3183008%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1311186%22%20target%3D%22_blank%22%3E%40sadafzafar%3C%2FA%3E%26nbsp%3BA%20pivot%20table%20will%20do.%20See%20picture.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Riny_van_Eekelen_0-1645176116799.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F349436iDBF617E46358D402%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Riny_van_Eekelen_0-1645176116799.png%22%20alt%3D%22Riny_van_Eekelen_0-1645176116799.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3183038%22%20slang%3D%22en-US%22%3ERe%3A%20Traverse%20each%20row%2C%20perform%20conditional%20checks%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3183038%22%20slang%3D%22en-US%22%3EThanks.%20It%20worked%3C%2FLINGO-BODY%3E
New Contributor

Hi,

I want to traverse rows which have duplications and extract unique data from their respective columns.

Like the data is in this form

Abc IdFull/part timecount
C001Full time5
C001Part time3
C002Full time9
C002Part time4

I want to convert it like this

Abc IdFull TimePart time
C00153
C00294

 

2 Replies
best response confirmed by Sergei Baklan (MVP)
Solution

@sadafzafar A pivot table will do. See picture.

Riny_van_Eekelen_0-1645176116799.png

 

Thanks. It worked