Code Monkey home page Code Monkey logo

csvfilterutility's Introduction

********** CSV Filtering utility for Excel **********

Written by Tad Tarrant. (aka Crowbarmaster).

Created for my lovely wife, to her specifications.

This is a utility created to filter a CSV by column entries. There were a couple goals at hand to start with. This utility needed to:

  -Filter a CSV file with speed and accuracy.
  -Run in a resource-starved environment.
  -Optionally, run as an Excel add-in. 

The current result is still beta, however exceeds expectations. A single filter has seen speeds of almost 14,000 lines-per-second. The process is simple. A line is read and split to an array. Then the selected search column's value is then compared to an assortment of different operations available to filter by. Once a match is made, the user can opt to edit a column with a static value, or insert a new column with a specified value. This value can be specified as a numeric value, a string of plain text, or "value is xxx days old".

Numeric values and date comparisons can be compared in the following ways:

  -Equal to  
  -Not equal to 
  -Greater than 
  -Less than 
  -Greater than or equal to
  -Less than or equal to
  -Within a range (Column value is greater than or equal
  to selected minimum, but less than or equal to selected
  maximum.)

Column values searched for in "Plain text mode" will have the following options:

  -Equal to
  -Not equal to
  -Starts with
  -Contains
  *** Note: Plain text filters must match case and any 
  special characters! ***

Edited filters can optionally save unmatched lines if desired. Multi-filtered searches can be merged to one CSV file if desired.

*** NOTE: Care should be taken if "Merge filters after filtering" option is used! If every filter does not produce unique results, Duplicates will happen! Filters that edit a newly inserted column will produce blanks if used with the "Save all lines" function! ***

If desired, a list of filters can be saved, and retrieved later. This will be found useful for reports that require extensive filtering in the same manner each time.

There are plans to add a few settable defaults for default directories and filter options. Stay tuned!

csvfilterutility's People

Contributors

crowbarmaster avatar dependabot[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.