• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

VBA Search with 3 parameters|VBA & Macros|Excel Forum|My Online Training Hub

You are here: Home / VBA Search with 3 parameters|VBA & Macros|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumVBA & MacrosVBA Search with 3 parameters
sp_PrintTopic sp_TopicIcon
VBA Search with 3 parameters
Avatar
Gael Cabrera

New Member
Members
Level 0
Forum Posts: 1
Member Since:
July 15, 2021
sp_UserOfflineSmall Offline
1
July 15, 2021 - 5:28 am
sp_Permalink sp_Print

I'm trying to do a search with more than 3 parameters.

I.E.

CONCEPT COUNTRY YEAR MONTH BOOK 1ST BOOK LAST LOCATION # BOX
BILLS US 2020 JANUARY  001   013 111643 5743
BILLS US 2020 JANUARY  014   024 111643 5758
BILLS US 2020 JANUARY  025   034 111643 5759
BILLS US 2020 JANUARY  035   039 111643 5760
BILLS US 2020 JANUARY  040   044 111643 5761
PAYMENTS MEXICO 2021 MARCH  001   008 111643 5783
PAYMENTS MEXICO 2021 MARCH  009   017 111643 5767
PAYMENTS MEXICO 2021 MARCH  018   021 111643 5768
PAYMENTS MEXICO 2021 MARCH  022   029 111653 5769
PAYMENTS MEXICO 2021 MARCH  030   033 111653 5770
PAYMENTS MEXICO 2021 MARCH  034   042 111653 5771
PAYMENTS MEXICO 2021 MARCH  043   048 111653 5772
PAYMENTS MEXICO 2021 MARCH  049   061 111653 5773
PAYMENTS MEXICO 2021 MARCH  062   075 111653 5774
PAYMENTS MEXICO 2021 MARCH  076   088 111653 5775
PAYMENTS MEXICO 2021 MARCH  089   100 111653 5776
PAYMENTS MEXICO 2021 MARCH  101   112 111653 5777
PAYMENTS MEXICO 2021 MARCH  113   121 111653 5778

In the list sometimes I need to search for a single box, and I need to search with 3 o more parameters.

 

In this moment I had the Idea of one parameter I don't know if it's possible search with concept, country, year and/or month.

 

The VBA I get is from a topic from this website from Philip Treacy, https://www.myonlinetraininghu.....ment-87977

 

Thanks in advance.

Avatar
Catalin Bombea
Iasi, Romania
Admin
Level 10
Forum Posts: 1810
Member Since:
November 8, 2013
sp_UserOfflineSmall Offline
2
July 18, 2021 - 12:49 pm
sp_Permalink sp_Print sp_EditHistory

Hi Gael,

The easiest way is to add helper columns in the data sheet: for example, you can create a column for 3 parameters search, combining 3 columns into this column.

This way, you don't have to modify the existing code.

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Andy Kirby, Shanna Getschel, Ryan Marceau, Kim Knox, Darrell Hodge, Mike Green, Tiffany Kang
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 871
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
Jessica Stewart: 204
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Maria Conatser
Jefferson Granemann
Glen Coulthard
Nikki Fox
Rachele Dickie
Raj Mattoo
Mark Luke
terimeri dooriyan
Jack Aston
AndyC
Forum Stats:
Groups: 3
Forums: 24
Topics: 6221
Posts: 27285

 

Member Stats:
Guest Posters: 49
Members: 31908
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.