Solved

Removing entries from a spreadsheet with 30,000 rows

Posted on 2013-11-05
7
335 Views
Last Modified: 2013-11-23
I have an Excel Spreadsheet from a pivot table in a SQL. I need to save this document as a CSV file so that it can be imported into another database but we need to remove entries and as it contains sensitive information. If I have a list of exclusions, what is the quickest and easiest way to remove that line? There are about 75 exclusions all on another spreadsheet.

Can you also guide me as to how to do it as my excel skills are not that great.

Thank you all in advanced.
0
Comment
Question by:MSSC_support
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 10

Expert Comment

by:etech0
ID: 39624627
Maybe you want to try a find and replace?

If you post your file we can guide you better.
0
 
LVL 18

Expert Comment

by:Steven Harris
ID: 39625148
If you want to remove a row based on a condition, you need to look into VBA.  If you have some examples or a copy of the workbook as etech0 suggested, we can figure something out for you.
0
 

Author Comment

by:MSSC_support
ID: 39626777
maybe a vlookup? I tried find and replace but I want the whole row gone for these entries.

For example we have a product description. If it matches the excusions then that row that it sits on needs to be hidden.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 18

Expert Comment

by:Steven Harris
ID: 39627126
That would be VBA.
0
 
LVL 33

Expert Comment

by:Rob Henson
ID: 39627166
This could be achieved without VBA if so required but with the addition of a helper column.

The helper column would be a check to see of the product description on each row is found in the list of exclusions and if so flags as Delete.

You can then apply a Filter on the data and then have two options:

1) show only those not to be deleted; copying this data to separate sheet would not include the rows hidden by the filter. Saving the file as CSV when the copied sheet is active will then only save that sheet.
2) show those to be deleted, highlight the rows and delete; only those visible will be deleted leaving the remaining rows for then saving as CSV.

Alternatively you can use an Advanced Filter to extract required data to separate sheet.

One point to note when using a field such as description, will all descriptions be exactly the same eg different abbreviations for aspects of the description such as LH  or L/H for Left Hand.

Thanks
Rob H
0
 

Accepted Solution

by:
MSSC_support earned 0 total points
ID: 39656525
I managed to resolve this using MS Access
0
 

Author Closing Comment

by:MSSC_support
ID: 39671073
Used Access to create linked tables and then remove the matching entries.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question