Skip to content
- VBA Dictionary Functions and How to Use ThemIn VBA, a Dictionary is an object for storing unique keys alongside values, and its main functions are the Add, Exists, Item,…VBA & macros
- Excel VLOOKUP Yes or No: How to Return a Match ResultYes. In Excel for Microsoft 365, you can make VLOOKUP return “Yes” or “No” by wrapping an exact-match lookup in a formula…Formulas & functions
- VBA Dictionary For Each Key: How to Loop Through ItemsTo loop through every key in a VBA dictionary, use For Each key In dict.Keys, declaring key as a Variant. Inside the…VBA & macros
- Excel Formula: Check If a Value Is Between Two NumbersIf the value is in A2, the lower limit in B2, and the upper limit in C2, use =AND(A2>=B2,A2<=C2) to check whether…Formulas & functions
- VBA Dictionary For Each: Loop Through Keys and ItemsIn VBA, use For Each key In dict.Keys to loop through a Scripting.Dictionary’s keys, then read each value with dict(key). You can…VBA & macros
- Excel Formula to Uppercase the First Letter in CellsTo uppercase only the first character in an Excel cell while leaving the rest unchanged, use =UPPER(LEFT(A2,1))&MID(A2,2,LEN(A2)). If the original text is…Formulas & functions
- VBA Dictionary Exists: Check Whether a Key Is PresentYes. In VBA, a Scripting.Dictionary has an Exists method that returns True when a specified key is present and False when it…VBA & macros
- Excel Formula to Count Cells With Text in Any RangeTo count cells containing text in Excel, use =COUNTIF(A2:A100,"*"), replacing A2:A100 with your range. The asterisk is a wildcard that matches text…Formulas & functions
- VBA Dictionary Exists and Add: How They WorkYes. In a VBA Dictionary, use Exists to check whether a key is already present and Add to insert a new key…VBA & macros
- Excel Formula to Split Text by Delimiter: How It WorksIn Microsoft 365 for Windows, split text with =TEXTSPLIT(A2,","), replacing A2 with the cell that contains your text and the comma with…Formulas & functions
- VBA Dictionary: How It Works and When to Use ItYes. A VBA Dictionary exists as the Scripting.Dictionary object: a key-value container that lets a macro store items under unique keys and…VBA & macros
- Excel Formula to Round Up to the Nearest Thousand in ExcelTo round a number in cell A2 up to the next thousand in Excel, use =ROUNDUP(A2,-3). The negative 3 tells Excel to…Formulas & functions
- VBA Dictionary Example: Create, Find, and Count ItemsA VBA dictionary stores unique keys with associated values, making it useful for counting repeated entries or looking up information by name.…VBA & macros
- Excel Formula for Quarter From Date: 3 Easy MethodsIf the date is in A2, use =ROUNDUP(MONTH(A2)/3,0) to return its calendar quarter as a number from 1 to 4. To display…Formulas & functions
- VBA Dictionary Early Binding: Setup, Benefits, and LimitsYes. To use a VBA Dictionary with early binding in Excel for Microsoft 365 on Windows, add a reference to Microsoft Scripting…VBA & macros
- Excel Proper Case Formula: How PROPER Works in CellsIn Excel for Microsoft 365, use =PROPER(A2) to convert the text in A2 to proper case: the first letter of each word…Formulas & functions
- VBA Dictionary Documentation: Setup, Methods, Properties & ExamplesFor VBA Dictionary documentation, start with Microsoft’s Dictionary object reference: it describes the Scripting.Dictionary object, which stores unique keys and their associated…VBA & macros
- Excel Formula for Percentage Increase: Examples and TipsTo calculate percentage increase in Excel, subtract the old value from the new value, then divide by the old value. With the…Formulas & functions
- VBA Dictionary Declaration: Setup, Methods, and ExamplesTo declare a VBA Dictionary in Excel for Microsoft 365 on Windows, use Dim dict As Object followed by Set dict =…VBA & macros
- Excel Formula or Operator? Understand the DifferenceIn Excel, a formula is an expression that calculates a result, while an operator is a symbol that tells Excel what action…Formulas & functions
- VBA Dictionary Count: What It Returns and How to Use ItIn VBA, read a dictionary’s item count with its Count property: dict.Count. It returns the number of key–item pairs currently stored, so…VBA & macros
- Excel Formula Opposite of CONCATENATE: Split Text ApartThe closest Excel formula to the opposite of CONCATENATE is =TEXTSPLIT(A2,"|"): it takes text in A2 and splits it wherever it finds…Formulas & functions
- VBA Dictionary Case Insensitive? How CompareMode WorksYes. A VBA Scripting.Dictionary can treat keys as case-insensitive: set its CompareMode property to vbTextCompare before adding any keys. With that setting,…VBA & macros
- Excel Formula: Capitalize Only the First Letter in TextTo capitalize the first character in a cell and make the remaining characters lowercase, use =UPPER(LEFT(A2,1))&LOWER(MID(A2,2,LEN(A2))), assuming the text is in A2.…Formulas & functions
- VBA Dictionary as a Public Constant? What Works in ExcelNo: a VBA Scripting.Dictionary cannot be declared as a Public Const, because VBA constants must hold compile-time values and a dictionary is…VBA & macros
- Excel Formula Cell Reference Lock: Absolute ReferencesTo lock a cell reference in an Excel formula, add dollar signs before the column letter, row number, or both: $A$1 locks…Formulas & functions
- Excel Formula Line Break: How to Add One in a CellTo put a line break in an Excel formula, join the text with CHAR(10), then turn on Wrap Text for the cell.…Formulas & functions
- VBA Dictionary Add Key: Syntax, Examples, and Common ErrorsTo add a key and its associated value to a VBA Dictionary, call the dictionary’s Add method: dict.Add "key", value. For example,…VBA & macros
- Excel Formula Showing Instead of Result? Causes and FixesIf Excel is showing a formula instead of its result, first check whether Show Formulas is turned on; if it is not,…Formulas & functions
- VBA Dictionary Add Item: Syntax and ExamplesIn Excel VBA, add an item to a Scripting.Dictionary with dict.Add key, item; create the dictionary first, and make sure the key…VBA & macros