Skip to content
- Excel Chart Legend Text: Rename Series and Edit LabelsTo change legend text in an Excel chart, select the chart, choose Chart Design > Select Data, select the series under Legend…Charts & pivot tables
- Excel Chart Axis Range: Set Minimum and Maximum ValuesTo change an Excel chart’s numeric axis range in Microsoft 365 for Windows, select the chart axis, right-click it, choose Format Axis,…Charts & pivot tables
- Excel Chart Series Order: Bring a Data Series to FrontYes. In Excel for Microsoft 365 on Windows, select the chart, choose Chart Design > Select Data, select the series under Legend…Charts & pivot tables
- Excel Chart Axis in Millions: Format Values ClearlyTo show an Excel chart axis in millions, select the axis, open Format Axis, and either choose Millions under Axis Options >…Charts & pivot tables
- Excel Chart Average Line: Add and Format the MeanTo add an average line to an Excel chart, calculate the mean in a worksheet cell, repeat that value in a helper…Charts & pivot tables
- Excel Chart Axis Range: Set Minimum and Maximum ValuesTo adjust an Excel chart’s axis range, select the value axis, open Format Axis, and enter new values under Axis Options >…Charts & pivot tables
- Excel Chart: Add a Vertical Line at a DateTo add a vertical line at a date in an Excel chart, create a helper series with the target date listed twice…Charts & pivot tables
- Excel Chart: How to Add, Move, and Customize a LegendTo add a legend in Excel for Microsoft 365 on Windows, select the chart, then choose Chart Design > Add Chart Element…Charts & pivot tables
- Excel Chart: Add a Data Label to the Last PointTo label only the last point in an Excel chart, click the data series once, click its final point again to select…Charts & pivot tables
- VBA Range Variables: How to Declare and Use ThemA VBA Range variable is an object variable that refers to one or more cells in an Excel worksheet. Declare it with…VBA & macros
- VBA Range.Value: Reading and Writing Excel Cell DataIn Excel VBA, Range.Value reads or writes the value of a cell or range, such as a number, text string, date, error,…VBA & macros
- VBA Range Union: Combine Separate Ranges in ExcelIn VBA, use Application.Union to combine two or more ranges on the same worksheet into one Range object, even when the cells…VBA & macros
- VBA Range Sum: Methods, Examples, and Common ErrorsTo sum a range in Excel VBA, use Application.WorksheetFunction.Sum and assign its result to a variable or cell. For example, total =…VBA & macros
- VBA Range Set: How to Set and Use Excel Cell RangesIn Excel VBA, use the Set keyword to assign a cell or range reference to an object variable: for example, Set rng…VBA & macros
- VBA Range Select: Examples, Uses, and Safer AlternativesIn Excel VBA, use Range.Select to select cells, but the worksheet containing the range must be active first. For example, assign a…VBA & macros
- VBA Range.Resize: Change a Range’s Dimensions in ExcelIn Excel VBA, use the Resize property to return a range with a different number of rows or columns: for example, Range("A1").Resize(3,…VBA & macros
- VBA Range Properties: Values, Formatting, and NavigationIn Excel VBA, a Range property either returns information about cells or another range object, or changes a cell or range setting.…VBA & macros
- VBA Range Offset: How to Select Cells Relative to a RangeIn VBA, Range.Offset(rowOffset, columnOffset) returns a range shifted from the original by the specified number of rows and columns. For example, Range("B2").Offset(1,…VBA & macros
- VBA Range Object: How to Work with CellsThe Excel VBA Range object represents one or more cells on a worksheet, letting code read or change values, formulas, and formatting.…VBA & macros
- VBA Range.Item: How Cell Indexing WorksIn Excel VBA, Range.Item(rowIndex, columnIndex) returns a Range object for the cell at the specified row and column position relative to the…VBA & macros
- VBA Range Is Empty? How to Check Cells CorrectlyTo check whether a VBA range contains no entered values or formulas, use Application.CountA(target) = 0. First make sure the Range variable…VBA & macros
- VBA Range.Intersect: Find Overlapping CellsIn VBA, use Application.Intersect(range1, range2) to find the cells shared by two or more ranges. It returns a Range object for the…VBA & macros
- VBA Range Interior: Set Excel Cell Color and PatternsIn Excel VBA, a range’s Interior object controls its cell fill: set Range("B2").Interior.Color = RGB(255, 255, 0) to make B2 yellow. Use…VBA & macros
- VBA Range.Insert: Insert Cells, Rows, and Columns in ExcelIn VBA, use the Range.Insert method to add cells, rows, or columns and shift existing content out of the way. For example,…VBA & macros
- VBA Range Index: How Cells, Item, and Offsets WorkIn VBA, a range index identifies a cell by its row and column position, starting at 1. For example, Range("B2:D5").Cells(2, 3) refers…VBA & macros
- VBA Range.Hidden: How to Check Hidden Rows and ColumnsIn Excel VBA, Range.Hidden checks or sets whether entire rows or columns are hidden; it does not hide individual cells. Use a…VBA & macros
- VBA Range GoTo: Jump to a Cell or Range in ExcelTo jump to a cell or range with VBA, use Excel’s Application.Goto method, for example: Application.Goto Reference:=Worksheets("Sheet1").Range("B5"), Scroll:=True. There is no Range.GoTo…VBA & macros
- VBA Loops Within Loops: How Nested Loops Work in ExcelYes. VBA can run one loop inside another; this is called a nested loop. The outer loop runs once, the inner loop…VBA & macros
- VBA Loop Through Worksheets: Examples and TipsTo loop through every worksheet in an Excel workbook, declare a Worksheet variable and use For Each ws In ThisWorkbook.Worksheets. Put the…VBA & macros
- VBA Do Until Loop: Syntax, Examples, and Common ErrorsA VBA Do Until loop repeats a block of code until a condition becomes true. Use Do Until condition ... Loop to…VBA & macros