+ Reply to Thread
Results 1 to 2 of 2

Macro to select data by certain criteria

  1. #1
    Registered User
    Join Date
    10-30-2014
    Location
    New Jersey, USA
    MS-Off Ver
    2010
    Posts
    1

    Macro to select data by certain criteria

    I can do this manually with the use of sort and filters, but I'm new to macros and would like to run this procedure automatically.
    I need to write a macro to copy all rows of data when the specified criteria in a specific column is found.
    Here is a snap shot of the data. I want to copy the selected rows to another sheet.



    Column Headings

    Team Name Type Tot F. Tot Pts. Largest
    Red John Male 10 100 9
    White Mary Female 12 120 10
    Blue Johnny Male Youth 15 150 12
    Orange Jill Female Youth 20 200 15

    So I want to sort the data by Largest---> No problem there
    Then I want to copy data based on type(s) into a new sheet.

    I need to copy male youth and female youth types--> to a new sheet called awards
    Sometimes that type will not be found. Example no males entered the contest, etc.

    Appreciate the help
    Rocky

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: Macro to select data by certain criteria

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

+ 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. VBA Macro to loop through folders and select files with certain criteria
    By sbl56vikes in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-07-2014, 06:05 PM
  2. [SOLVED] Macro to have user select Criteria
    By excelrcb3 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-20-2012, 03:50 PM
  3. [SOLVED] create drop down box to select multiple criteria and link macro to each criteria
    By anand_erin in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 11-03-2012, 06:35 PM
  4. Macro to select criteria and give a value in return
    By FindAnswers in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-20-2012, 10:44 AM
  5. Macro to select row if cell meets criteria
    By D_N_L in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-14-2012, 09:51 AM

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