Forum Discussion

SamWhite's avatar
SamWhite
Copper Contributor
Oct 08, 2020

How to find and highlight duplicate values in a excel column using powershell

I have duplicate values in a excel column. I want to find those duplicate values and highlight them with any color. I want to do so using powershell as I have many excel files. I can see that there is a RemoveDuplicate method, however I just want to find and highlight the duplicates. Sample data :

6 Replies

  • NikolinoDE's avatar
    NikolinoDE
    Gold Contributor

    SamWhite 

     

    Maybe this VBA solution will help you.

     

     

     

    I would be happy to know if I could help.

     

    Nikolino

    I know I don't know anything (Socrates)

     

    * Kindly Mark and Vote this reply if it helps please, as it will be beneficial to more Community members reading here.

     

     

     

     

     

      • NikolinoDE's avatar
        NikolinoDE
        Gold Contributor

        SamWhite 

        As for powershell, I'm sure not the right one.
        Sry but here has to be someone else who is familiar with powershell.
        I'm not even sure whether your question will be answered here in the Excel forum, maybe in another forum here in the community.

        Thank you for your patience and time and sry that I could not give you a useful solution.

        Wish you a nice day / night with health and joy.

         

        Nikolino

        I know I don't know anything (Socrates)

Resources