+ Reply to Thread
Results 1 to 2 of 2

How to delete rows by especifying the values of a single cell?

  1. #1
    Registered User
    Join Date
    09-18-2017
    Location
    Fortaleza, Brazil
    MS-Off Ver
    Excel Online
    Posts
    7

    How to delete rows by especifying the values of a single cell?

    Hello guys,

    I have a document with students grades as the following:


    Do you guys know how can I delete a specific row by informing just the name of a cell, say the discipline's name in the picture. For example, if the discipline's name is 'Algebra Linear', how can I delete the row which contains this discipline? I need a general method so I can delete any row containing any discipline, not just Algebra Linear. I'll add a sample of the data to facilitate the things out.

    Thanks in advance!!
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by Urlant; 09-21-2017 at 11:13 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,884

    Re: How to delete rows by especifying the values of a single cell?

    Please Login or Register  to view this content.
    How to install your new code
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Press Alt+F11 to open the Visual Basic Editor
    Choose Insert > Module
    Edit > Paste the macro into the module that appeared
    Close the VBEditor
    Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    To run the Excel VBA code:
    Press Alt-F8 to open the macro list
    Select a macro in the list
    Click the Run button
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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 Split Cell Contents to New Rows & Copy Cells containing single values to the new rows
    By jaimelwilson in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-14-2017, 05:30 PM
  2. Copy values from single cell and paste to several number of rows
    By farel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-31-2017, 02:44 AM
  3. [SOLVED] Multiple values in single cell (known column) split into rows with duplicate information
    By bwashbourne in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-06-2015, 05:00 PM
  4. VBA to delete rows with not specified cell values
    By alper93 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-05-2013, 10:43 PM
  5. Need help on the rows & column values to be merged to a single cell.
    By phanindrachitta in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-20-2012, 05:15 PM
  6. Delete multiple rows of data based on criteria in a single cell
    By slaga9 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-12-2011, 03:41 AM
  7. delete rows when values in cell =0
    By tdyl1969 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-19-2009, 03:59 PM

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