+ Reply to Thread
Results 1 to 6 of 6

How to find the Duplicate Column Headers in entire workbook

  1. #1
    Registered User
    Join Date
    11-30-2017
    Location
    California, USA
    MS-Off Ver
    MS Office 10
    Posts
    15

    How to find the Duplicate Column Headers in entire workbook

    Can somebody help me how to find the Duplicate Column Headers in entire workbook. i have a workbook which has multiple sheets and i need to validate none of the sheet shouldn't have a same column present in other sheets or same sheet.

    Thanks in Advance..
    Last edited by sandeepgoud88; 03-26-2019 at 12:44 PM.

  2. #2
    Forum Contributor
    Join Date
    03-28-2018
    Location
    Houston, TX
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    127

    Re: How to find the Duplicate Column Headers in entire workbook

    How many sheets? If it's just a few, then, copying a pasting the headers into a new tab and using a series of MATCH() or HLOOKUP() functions should do the trick. If there are a lot of tabs, then it might be be better suited for VBA.

  3. #3
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: How to find the Duplicate Column Headers in entire workbook

    Hi, how's your vba knowledge? Do you have any experience with macros? I think that would be the quickest way
    Before even attempting to explain you need to give use here enough information to work on.
    You have not told us if all the column headers are on the same row as the other worksheets.
    Is there one worksheet that serves as a master sheet or doesn't that matter? You can also have a macro trigger every time a column header is changed to check if it already is present and then warn the user and reset the old value.
    Don't let the person with the intention to help you base his/her answers on assumptions.
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: How to find the Duplicate Column Headers in entire workbook

    This macro will highlight each duplicate header assuming that the headers are in row 1 of all the sheets. It does not highlight the first occurrence of the header, only all the subsequent ones if found.
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  5. #5
    Registered User
    Join Date
    11-30-2017
    Location
    California, USA
    MS-Off Ver
    MS Office 10
    Posts
    15

    Re: How to find the Duplicate Column Headers in entire workbook

    Thank you this works perfect...

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: How to find the Duplicate Column Headers in entire workbook

    You are very welcome.

+ 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. [SOLVED] Find a value in a column in the entire workbook and ad it into a Textbox
    By RinorM in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-30-2014, 07:29 AM
  2. [SOLVED] Find a value in a column in the entire workbook and ad it into a Textbox
    By RinorM in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-30-2014, 03:17 AM
  3. Find a value in a column in the entire workbook and ad it into a Textbox
    By RinorM in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-29-2014, 10:22 AM
  4. [SOLVED] Find dupicates in column, and delete entire row(s) containing duplicate(s)
    By staggers47 in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 12-31-2012, 01:28 PM
  5. Adding Headers and Footer to an Entire Workbook??
    By Spyder in forum Excel General
    Replies: 1
    Last Post: 02-17-2006, 11:30 AM
  6. Can I edit headers/footers for an entire workbook?
    By On Line All The Time in forum Excel General
    Replies: 2
    Last Post: 11-30-2005, 08:30 PM
  7. Replies: 1
    Last Post: 09-21-2005, 01:05 PM

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