Skip to content

VBA Excel Filter a two-dimensional array by different columns with a variety of criteria

License

Notifications You must be signed in to change notification settings

InExSu/VBA-Excel-Array2_Filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

VBA-Excel-Array2_Filter

VBA Excel Filter a two-dimensional array by different columns with a variety of

How to use?

The A2_Filter_AND function waits for two arguments:

  • a two-dimensional array with data to be filtered
  • a two-dimensional array of criteria.

Array of criteria = two-dimensional array. in column 1 - column numbers in the 2nd column - filter value (row, number, date) in column 3 - filtration method (with a sign of case accounting)

The methods of filtering are implemented in the function Criteria_Check. "EQUAL_TEXT" ' the lines are equal without case. "EQUAL_BINA" ' the lines are equal case sensitive. "CONTA_TEXT" ' the line contains WITHOUT case accounting "CONTA_BINA" ' the string contains case sensitive

An example of a criteria string: 9, "Budget", "CONTA_BINA" - leave the rows that contain "Budget" in the ninth column, case sensitive

Function A2_Filter_AND Returns the array two-dimensional filtered.

Tested

Rubberduck

Plans

Implement date and number filters.

About

VBA Excel Filter a two-dimensional array by different columns with a variety of criteria

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages