+ Reply to Thread
Results 1 to 2 of 2

Need Excel macro to check order of columns ?

  1. #1
    Registered User
    Join Date
    04-12-2014
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    3

    Need Excel macro to check order of columns ?

    As an part of QA activity
    1. first I export data and directly paste in the "RAWDATA" Sheet.
    2.There are 50 columns and each has header like Clientname,date,Id,campaign,websitename,frequecncy etc.
    3.Exported data does not have same order
    4.so when I paste data in excel I check manually if orders are in correct or not?which takes my long time to review/manually check

    so can anyone help me in excel using macro or something else to review the order and if any discrepancy then raise error? Need Excel to check order of columns ?

  2. #2
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,784

    Re: Need Excel macro to check order of columns ?

    Since Excel can sort from left to right I would suggest you make a "custom list" containing all the headers and the order you wish them sorted in and use this list to sort your columns in the proper order.

    Alf

+ 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. Need a macro to conditionally delete and re-order columns
    By choader in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-03-2013, 03:25 PM
  2. Replies: 0
    Last Post: 03-19-2013, 12:23 AM
  3. How to do Accumulated Order in Excel by using only two columns
    By nilson in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 11-05-2012, 07:53 AM
  4. [SOLVED] Need macro to copy columns to a new sheet in a different order
    By dip11 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-07-2012, 10:10 AM
  5. [SOLVED] Macro to Reverse Order of Columns but Dependent on Number of Data Rows
    By francois28 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-10-2012, 06:34 PM

Tags for this Thread

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