+ Reply to Thread
Results 1 to 4 of 4

Deleting a row of data based on a single cell deletion, and shifting remaining cell up.

  1. #1
    Registered User
    Join Date
    10-20-2014
    Location
    Warner Robins, Georgia
    MS-Off Ver
    2010
    Posts
    2

    Deleting a row of data based on a single cell deletion, and shifting remaining cell up.

    I know that was a lot in the title. I'm relatively new to VB and macro's if that's what this requires.

    I've got an excel file that totals up student points that they earn on a daily basis. The teachers manually input the data, the sheet totals it and decides based on the percentage whether the student qualifies for the quarterly celebration (Yes/No). There are four separate sheets (4 celebrations), and then a fifth sheet that takes the results from the first four sheets and tells me whether the student has been to all four celebrations. If so, the student qualifies for an extra award at the end of the year. The students' names and percentage data are linked between the pages.

    Here's where I need help. We have students constantly enrolling and withdrawing. The teachers want to delete/add names to keep their name columns up to date but the data that is associated with their student's name remains on the sheet. For example, If they delete a student name and copy and past all the names up, the data for each student won't shift up with them.
    Here is a screen shot of the sheet.
    Attached Images Attached Images
    Last edited by Dewydecimalpatriot; 10-20-2014 at 03:14 PM. Reason: screen capture format incorrect

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Deleting a row of data based on a single cell deletion, and shifting remaining cell up

    You will get few if any responses.

    Few people here will be bothered to retype your data to recreate your spreadsheets.

    Please post your spreadsheets.

  3. #3
    Registered User
    Join Date
    10-20-2014
    Location
    Warner Robins, Georgia
    MS-Off Ver
    2010
    Posts
    2

    Re: Deleting a row of data based on a single cell deletion, and shifting remaining cell up

    Thanks for the tip.

    Here is the unprotected sheet. Sorry that wasn't because of you guys. It was protected to keep the teachers from messing up the formulas and formatting.
    Attached Files Attached Files
    Last edited by Dewydecimalpatriot; 10-21-2014 at 04:18 PM. Reason: needed to unprotect the sheet

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Deleting a row of data based on a single cell deletion, and shifting remaining cell up

    Your workbook is protected so I created an outline

    ctrl and d will run a macro

    It can only be called from one of your Quarter Sheets and only if the row is greater than 5

    it will ask for confirmation and then delete the active row in all 5 sheets with data.

    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. Deleting a range of cells based on a deletion of a cell outside that range
    By Carlos90 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-22-2013, 03:07 PM
  2. Deleting Entire Row Based on Criteria in single cell
    By CBG05QB in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-08-2011, 08:40 AM
  3. Replies: 3
    Last Post: 01-28-2010, 08:35 AM
  4. Replies: 8
    Last Post: 11-07-2009, 09:48 PM
  5. [SOLVED] Cell Deleting and Shifting
    By bodhisatvaofboogie in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-15-2006, 08:40 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