+ Reply to Thread
Results 1 to 4 of 4

Help with scrubbing a list

  1. #1
    Registered User
    Join Date
    03-28-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    31

    Help with scrubbing a list

    Hello,

    I can achieve the desired outcome in the attachment by marking the desired rows, then filtering, then deleting.

    Is there a way to do it more efficiently, e.g., something like finding all blank cells and then deleting those rows in one operation?

    Thank you.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Help with scrubbing a list

    I know that is just a sample, but I used a different approach. Instead of deleting what you dont need, I used the ARRAY formula below to extract what you DO want...
    =IFERROR(INDEX(A:A,SMALL(IF($A$2:$A$39={2,5,8},ROW($A$2:$A$39)),ROWS($A$1:A1))),"")
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    Then copy down as needed
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Help with scrubbing a list

    Macro Solution-
    Please Login or Register  to view this content.
    Check attached for a Sample.
    Attached Files Attached Files
    Happy to Help

    How to upload excel workbooks at this forum - http://www.excelforum.com/the-water-...his-forum.html

    "I don't get things easily, so please be precise and elaborate"

    If someone's post has helped you, thank by clicking on "Add Reputation" below the post.
    If your query is resolved please mark the thread as "Solved" from the "Thread Tools" above.

    Sourabh

  4. #4
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Help with scrubbing a list

    another way may be
    in B2 copy paste below
    =MATCH(A2,{2,5,8},0) then drag down
    now select B2 to B39 and click find and select go to special===> formula ====> select only errors hit ok then right click an higlighted cell in column B and click delete entire row
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

+ 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] scrubbing data
    By Bobster0007 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 11-23-2014, 10:00 AM
  2. Replies: 3
    Last Post: 04-22-2014, 03:30 PM
  3. Need help with email list scrubbing macro
    By Ronnie_Greytruck in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-08-2013, 09:24 AM
  4. Data Scrubbing
    By vertigo44 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-29-2011, 01:43 PM
  5. Scrubbing a Database in Excel
    By leahy16 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-24-2008, 08:37 PM
  6. Scrubbing info from a cell
    By ScratchN in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 02-11-2008, 09:17 PM
  7. Scrubbing data using excel
    By twilsonmi in forum Excel General
    Replies: 1
    Last Post: 03-26-2007, 12:47 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