VBA / Office

VBA / Office

What happens when Excel's FILTER function returns 0 results? Testing the difference between #CALC! and empty strings

Explaining why FILTER returns #CALC! for 0 results, the difference from using an empty string as the third argument, and a safe experiment using COUNTIF to isolate result counts.
VBA / Office

Counting "*" and "?" as characters in Excel's COUNTIF: How to use tildes and potential pitfalls

Comparing COUNTIF wildcards (*, ?) and the escape character (~) using a fictitious product table. Explains exact matches, partial matches, and troubleshooting failures.
VBA / Office

Enumerating all matches with Range.FindNext in Excel VBA and stopping at the first cell

Enumerating all matches with Range.Find/FindNext in Excel VBA and stopping when returning to the first cell. A read-only example checking 0, 1, and 2 matches using a fictional P101 table.
VBA / Office

Verification Example of Distinguishing Between No Match and #SPILL! Using the Excel FILTER Function

Distinguishing between 0 matches, #CALC!, and #SPILL! in Excel's FILTER function. Using dummy data, this guide explains how to compare the formula in F2 with the obstruction in G2 through three operations.
VBA / Office

Causes of inconsistent Excel VBA Find results: Unomitted search conditions in Copilot-generated code

Explains the causes of inconsistent results in Excel VBA Range.Find. Covers persistent settings such as LookIn and LookAt, Nothing handling, stopping FindNext loops, and verification methods for Copilot-generated code.
VBA / Office

Searching for Duplicate Codes with XLOOKUP in Excel: How to Choose Between First and Last Matches

Verification status: Specification checked (spec_checked). The specification has been verified against official documentation. Execution of the formula examples has not been verified. In tables where product codes or employee codes appear across multiple rows, the values returned for the same search value may differ between the first and last rows. By default, XLOOKUP scans from the beginning of the search range and returns the first match found. To get the match at the end,
VBA / Office

Daily Sales Aggregation with Date and Time Using Excel SUMIFS: From 00:00 Today to Under 00:00 Tomorrow

About this article: This article was created using an automated generation workflow leveraging generative AI. It is based on the SUMIFS syntax and multi-condition summation from Microsoft Support. Because daily aggregation examples using date-time boundary conditions are not documented in the provided reference materials, the following formulas and expected results have not been verified on a physical device. Verification Status: spec_checked
VBA / Office

Freezing Windows in Excel to Keep Headers Visible: How to Freeze Rows and Columns Simultaneously

Learn how to select cells to keep both rows and columns visible simultaneously using Excel's freeze panes feature, how to unfreeze them, and how it differs from printing.
VBA / Office

Before Excel's Remove Duplicates Deletes Rows: Safely Verify Using Conditional Formatting and Extraction

To prevent Excel's Remove Duplicates from deleting necessary rows, this article explains conditional formatting, extracting unique values, and selecting deletion columns based on official Microsoft specifications.
VBA / Office

Make aggregation ranges follow row additions using structured references in Excel tables

Using an Excel table and structured references, we verify how to make SUM and SUMIFS aggregation ranges follow row additions using a fictional equipment ledger.