HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to use AND, OR and Formulas with VBA Advanced Filter

33,809 views November 1, 2019 6:34

Watch on YouTube
ChannelExcel Macro Mastery

Chapters

Description from the creator

👉 Ready to master VBA?
- Check out my full courses: courses.excelmacromastery.com/
- Subscribe to the channel here: bit.ly/36hpTCY
- FREE CHEAT SHEET: Get the free cheat sheet on VBA arrays here: bit.ly/2MXsnz9
(Note: If the download page doesn't work then make sure to turn off any popup blockers)

In a previous video, I show that Advanced Filter is the fastest and most efficient way to copy and filter data using Excel VBA.

In this video, I show you how to unlock the power of the Advanced Filter using AND and OR in the criteria.

We also look at the little-known method of using an Excel formula in the criteria.
Quick Guide to Advanced Filter here: (excelmacromastery.com/vba-advanced-filter/#VBA_…)

Shortcut Keys:
Alt + F11: Switch between Excel and the VBA Editor.
Ctrl + R: View the Project Properties Window.
Ctrl + Shift + 8(or Ctrl + *): Get the current region on a worksheet.
F5: Run the code from the current sub.
F9(or click left margin): Add a breakpoint to pause the code.
Tab: To move lines of code to the right(Indent)
Shift + Tab: To move lines of code to the left(Outdent).

Table of Contents:

00:00 - Introduction
01:06 - Using AND criteria
01:47 - Using OR Criteria
02:46 - Using Formulas in Criteria
05:03 - Using Wildcards

About this tutorial

Excel Macro Mastery published this 6:34 video tutorial on November 1, 2019. It has been watched 33,809 times on YouTube.

Category
Education
Duration
6:34
Published
November 1, 2019
Views
33,809
Likes
715

Tags

Share

This tutorial in other languages