+ Reply to Thread
Results 1 to 2 of 2

Deleting data in a rows

  1. #1
    Registered User
    Join Date
    01-16-2018
    Location
    New South Wales
    MS-Off Ver
    2016 64-Bit
    Posts
    34

    Deleting data in a rows

    Hello all,

    I have a spreadsheet that has data from B3:AA15000 that is filled with numbers. I also have a drop down box in cell A1 where a logical (i.e. >,<,<>) is chosen, a drop down box where a data type is chosen (A,B,C,D, these data types are column headers for columns X:AA) in cell B1 and the value is entered in cell C1, and if the criteria is met (e.g. value = 100, logical = <, data type = A), all the values lower than 100 in cells column X3 which is data type "A" are deleted, but also the row that contains this data is also deleted.

    So for example, if Z100 has a value lower than 100, the whole row "100" is deleted but only from X3:AA15000.

    Any help would be greatly appreciated. Thanks!

    Edit this has been cross posted to https://www.mrexcel.com/forum/excel-...ml#post5106771
    Last edited by nekmat97; 07-17-2018 at 11:28 PM. Reason: Clarification

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Deleting data in a rows

    Quote Originally Posted by nekmat97 View Post
    (e.g. value = 100, logical = <, data type = A), all the values lower than 100 in cells column X3 which is data type "A" are deleted, but also the row that contains this data is also deleted.

    So for example, if Z100 has a value lower than 100, the whole row "100" is deleted but only from X3:AA15000.
    Just for clarification, is this a typo? I thought Data Type A pertained to column X, so unsure why we'd be deleting row 100 if Z100 was less than 100 as per your example.

    Might be a good idea to attach a small sample workbook so we can fully understand your data layout.

    BSB

+ 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. Cleaning rows of data and clean rows of duplicates not deleting.
    By guidom in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-21-2014, 12:48 PM
  2. Replies: 7
    Last Post: 07-17-2014, 12:39 PM
  3. [SOLVED] Macro help with combining data across 2 rows (and deleting non-required rows)
    By InnesMcc in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 05-20-2013, 05:21 AM
  4. Deleting rows of data
    By ajc5382 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-31-2012, 06:54 PM
  5. Deleting rows with certain data in them
    By greg7468 in forum Excel General
    Replies: 2
    Last Post: 03-18-2010, 10:46 AM
  6. finding data in duplicate rows, revising row data and deleting duplicates
    By MF Xrx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-16-2008, 06:49 PM
  7. Deleting the rows with no data
    By amehra in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-14-2008, 08:05 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