web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to deduplicate a c...
Power Automate
Answered

How to deduplicate a column of data in Excel and generate a list

(0) ShareShare
ReportReport
Posted on by 31

Hi,

 

Do you know how can I deduplicate a column of data in Excel and generate a list? And this column have a column name "workflow name". 

 

Thanks a lot!

Sophia

I have the same question (0)
  • Verified answer
    Deenuji_Loganathan_ Profile Picture
    6,255 Moderator on at

    @sophia111 

    Please follow the below suggested actions.

    1.  Launch Excel - Open the Workbook

    2. Read from Excel Worksheet and read your required range of columns 

    3. convert you datable column into list using "Retrieve data table into list"

    4. Use remove duplicate items from list to remove your duplicate values

     

    Sample Excel:

    Deenuji_0-1710314025970.png

    Before Duplicate removal:

    Deenuji_2-1710314112892.png

     

    After duplicate removal:

    Deenuji_3-1710314146112.png

    Full flow:

    Deenuji_4-1710314171862.png

    Code:

    Excel.LaunchExcel.LaunchAndOpenUnderExistingProcess Path: $'''C:\\Users\\Documents\\Workflow_duplicate.xlsx''' Visible: True ReadOnly: False Instance=> ExcelInstance
    Excel.ReadFromExcel.ReadAllCells Instance: ExcelInstance ReadAsText: False FirstLineIsHeader: True RangeValue=> ExcelData
    Variables.RetrieveDataTableColumnIntoList DataTable: ExcelData ColumnNameOrIndex: $'''workflow name''' ColumnAsList=> WorkflowList
    Variables.RemoveDuplicateItemsFromList List: WorkflowList IgnoreCase: False

     


    Thanks,
    Deenuji Loganathan
    🤖 Automation Evangelist
    Deenuji - Follow me on LinkedIn

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🌟

  • sophia111 Profile Picture
    31 on at

    Hi Deenuji,

     

    Thank you so much!!  It works😉

     

    Best regards,

    Sophia

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 785

#2
Valantis Profile Picture

Valantis 669

#3
Haque Profile Picture

Haque 563

Last 30 days Overall leaderboard