Skip to content
- VBA Dictionary SumIf: How to Group and Sum Data in ExcelTo perform a SUMIF-style total in VBA, use a Scripting.Dictionary: make each category a key and add each matching amount to that…VBA & macros
- Excel Formula for Exact Match: XLOOKUP and MATCHWith the value to find in E2, lookup values in A2:A6, and results in B2:B6, use =XLOOKUP(E2,A2:A6,B2:B6,"Not found",0) for an exact match…Formulas & functions
- VBA Dictionary Split: Turn Text into Keys and ValuesIn VBA, use the Split function to break a string into an array, then add the pieces to a Scripting.Dictionary when you…VBA & macros
- Excel Formula for an Entire Column: How to Use ItTo calculate values from an entire column, use a whole-column reference such as A:A inside a function. To apply a calculation separately…Formulas & functions
- Excel Formula for Every Friday Date in a Date Range ListWith a start date in A2 and an end date in B2, this Microsoft 365 formula returns every Friday in that inclusive…Formulas & functions
- VBA Dictionary Set: Create, Add, and Retrieve ItemsIn VBA, use Set to assign a Dictionary object to an object variable, for example Set dict = CreateObject("Scripting.Dictionary"). Add ordinary data…VBA & macros
- Excel Formula for Dividing Two Cells: ExamplesTo divide two cells in Excel, use a forward slash in a formula: with the dividend in A1 and the divisor in…Formulas & functions
- VBA Dictionary Remove Key: Safe Removal and Common ErrorsTo remove one entry from a VBA Dictionary, call its Remove method with the key: dict.Remove key. If the key might be…VBA & macros
- Excel Formula for Date Range: Count Dates and MatchFor dates in A2:A100 and a start date in D2 and end date in E2, count dates in the inclusive range with…Formulas & functions
- VBA Dictionary Reference: Setup, Binding, and AlternativesIn Excel VBA, a Dictionary is provided by the Microsoft Scripting Runtime. To use it with early binding, enable the Microsoft Scripting…VBA & macros
- Excel Date Difference: Formulas for Days, Months & YearsTo find the number of days between two dates in Excel, subtract the earlier date from the later one: with a start…Formulas & functions
- VBA Dictionary: How to Read Key-Value Pairs in ExcelIn VBA, read a Scripting.Dictionary pair by using its key to retrieve the value, as in dict(key), or loop through dict.Keys and…VBA & macros
- Excel Formula for Counting Unique ValuesIn Excel for Microsoft 365, use =IFERROR(ROWS(UNIQUE(FILTER(A2:A100,A2:A100<>""))),0) to count distinct nonblank values in A2:A100. It returns 0 if the range contains no…Formulas & functions
- VBA Dictionary Object: How It Works and When to Use ItA VBA Dictionary object stores unique keys alongside associated values, letting a macro retrieve, update, and count information by key. In Excel…VBA & macros
- VBA Dictionary Multiple Items per Key: Practical GuideYes. A VBA Scripting.Dictionary can hold multiple items for one key if you store a container—most often a Collection—as that key’s value,…VBA & macros
- Excel Formula to Count Cells With a Value, Blanks, or TextTo count cells that contain something in Excel, use =COUNTA(A2:A20), replacing A2:A20 with the range you want to check. COUNTA counts numbers,…Formulas & functions
- VBA Dictionary Library: Setup, Uses, and AlternativesA VBA dictionary library is a way to store and retrieve data as key–value pairs, with each key identifying one item. On…VBA & macros
- Excel Formula for Budget Amount RemainingIf your total budget is in B2 and the amount spent is in C2, enter =B2-C2 in another cell to calculate the…Formulas & functions
- VBA Dictionary Length: How to Count ItemsIn VBA, use a Dictionary’s Count property to find how many key-value pairs it contains: for example, Debug.Print dict.Count. A Dictionary has…VBA & macros
- VBA Dictionary Keys: How They Work and How to Use ThemIn VBA, a dictionary key is a unique identifier used to store and retrieve an associated value in a Scripting.Dictionary. Each key…VBA & macros
- Excel Formula for Beginning of Month: Dates Made EasyIf A2 contains an Excel date, use =EOMONTH(A2,-1)+1 to return the first day of that date’s month. For example, a date of…Formulas & functions
- Excel Formula for Balance Remaining: Simple ExamplesThe basic Excel formula for balance remaining is =B2-C2: subtract the amount paid in C2 from the original amount in B2. For…Formulas & functions
- VBA Dictionary Item Count: Use the Count PropertyTo get the number of entries in a VBA Scripting.Dictionary, read its Count property: dict.Count. It returns the number of key-item pairs…VBA & macros
- Excel Formula for Adding Days to a Date: ExamplesTo add days to a date in Excel, add the number of days to the date cell: with a starting date in…Formulas & functions
- VBA Dictionary Item: Get, Set, Check, and Loop ThroughA VBA Dictionary Item is the value associated with a key in a Dictionary object. In Excel for Microsoft 365 on Windows,…VBA & macros
- Excel Yes or No Formula: How to Return Either AnswerYes. To show “Yes” when a test is true and “No” when it is false, put the value to check in A2…Formulas & functions
- VBA Dictionary Index: Access Items by PositionA VBA Scripting.Dictionary has no built-in numeric index for its entries: you retrieve an item by its unique key. To get an…VBA & macros
- Excel Formula for Years of Service From Hire DateTo calculate completed years of service from a hire date in Excel, use =DATEDIF(A2,TODAY(),"Y"), assuming the hire date is in A2. The…Formulas & functions
- VBA Dictionary Get Value by Key: Syntax and ExamplesTo get a value from a VBA Scripting.Dictionary, use its key as the item index: value = dict.Item(key) or the shorter value…VBA & macros
- Excel Wildcard Text Search: Formulas and Examples GuideTo check whether text in A2 contains the search term in E2, use =ISNUMBER(SEARCH(E2,A2)). It returns TRUE when the term is found…Formulas & functions