+ Reply to Thread
Results 1 to 3 of 3

vba macro to sort the column data by a word that starts with"Elect"

  1. #1
    Registered User
    Join Date
    02-24-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    76

    vba macro to sort the column data by a word that starts with"Elect"

    Hi,

    I have an input excel file that has data columns from A to I. In the attached sheet(Sheet3), The Column A is for Company, Column B is for Ticker, Column C is for Meeting ID, Column D is for Market Capital, Column E is for Proposal Number(Proposal#), Column F is for Proposal Text, Column G is for Votecast and Column H & I for Proposal Text and Votecast for the previous year. My Input file consist of all the data for each company i.e. each company has one more proposals. Majority of companies starts with the director-related proposal(i.e Column F values that starts with the "Elect xxx As Director" as 1,1.1,etc) but some companies do have those in Proposal number 3 or 5 just like the Company "Tyco International"in the input sheet(Sheet 3). My requirement is to sort those data with the word "Elect" and move that data to first set and rewrite their proposal number as 1.1,1.2,1.3, etc.and move the other proposal text(ColumnF) accordingly. I guess I have explained what it is i needed. I tried various ways of filter but it did not meet my need. I would like some help on this. I have attached the workbook with Sheet3 as Input and Sheet4 as the Desired Output.

    Thanks,
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    02-24-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: vba macro to sort the column data by a word that starts with"Elect"

    Can anyone help me with this as I am try it for few days.

  3. #3
    Registered User
    Join Date
    02-24-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: vba macro to sort the column data by a word that starts with"Elect"

    I tried with the custom sort and I get problem with tracking of range for each company. this is the following code
    Please Login or Register  to view this content.
    Can anyone please help with this???

+ 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] vba code to replace the column names for those column name "Proposal that starts with "1."
    By mvneema in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-31-2014, 01:21 PM
  2. Replies: 2
    Last Post: 09-26-2013, 12:17 PM
  3. Replies: 2
    Last Post: 06-06-2013, 12:45 PM
  4. Macro to insert a column and fill that column with word "January"
    By aka189 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-23-2012, 09:22 PM
  5. Need Macro to sort by column "Y" with zero values last
    By Bart77764 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-30-2012, 02:18 AM

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