Results 1 to 9 of 9

Add and Remove Rows based on Cells

Threaded View

  1. #1
    Registered User
    Join Date
    11-17-2014
    Location
    California
    MS-Off Ver
    2013
    Posts
    5

    Add and Remove Rows based on Cells

    Hello,

    I'm creating a weekly presentation spreadsheet for a military unit that will change hands frequently and I can't rely on users to know how to right click and add or delete a row.

    In order to uncomplicate the procedure for users, I've added two cells - one for a member's rank, and the other for their last name. The list is required to be in rank order and then alphabetical (I realize that it is not this way in the attached image). When a user enters a name that does not exist in the list and the user clicks "Add Member", I need a macro to add a row in the correct place with that member's rank and name. Alternatively, when an existing member's name and rank are entered and "Remove Member" is clicked, I need a macro that will delete that row. Any help with this is greately appreciated - I'm way in over my head on this one.

    Edit: I've included a sample worksheet with examples as suggested by AlphaFrog. If any more clarification is required, feel free to ask.
    Edit 2: Uploaded .xlsm as per AliGW.

    Rank order from lowest to highest is:
    AB, Amn, A1C, SrA, SSgt, TSgt, MSgt, SMSgt, CMSgt, 2nd Lt, 1st Lt, Capt, Maj, Lt Col, Col

    Capture.PNG
    Attached Files Attached Files
    Last edited by anderb16; 07-29-2017 at 05:43 AM. Reason: Edited for content

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. remove duplicate rows based on condition
    By stephme55 in forum Excel General
    Replies: 1
    Last Post: 08-15-2016, 07:34 PM
  2. Remove rows based on word in column
    By wonderd in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 06-06-2016, 05:55 PM
  3. [SOLVED] Remove Rows based upon list of search terms, copy removed rows to new sheet
    By sam103329 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 02-19-2015, 08:47 PM
  4. Remove Rows based on the value of a drop down box.
    By jcobbexcel in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-05-2014, 12:52 AM
  5. Remove Rows based upon list of search terms, copy removed rows to new sheet
    By sam103329 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-26-2013, 10:32 PM
  6. [SOLVED] Find duplicates rows, sum cells then remove duplcate rows
    By Wagstaff in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-22-2013, 09:37 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