Macros & Excel VBA

How to Create and Use the Color Function in Excel – Easy Steps

It is possible to make custom functions for calculation based on the color of the cells using the Microsoft Visual Basic for Applications (VBA). ...

Insert Rows in Excel Based on Cell Value with VBA (2 Methods)

Cells(2,3).EntireRow.Insert This line inserts a row above cell C2 (Row 2, Column 3). Insert Rows Based on Cell Value with VBA: 2 ...

How to Delete Row If Cell Contains Specific Values in Excel?

We will be using a sample dataset that contains the Name and Age of some people. Method 1 - Using Find and Replace to Delete a Row If a ...

How to Convert Text to Number in Excel with VBA

  How to Identify Numbers Formatted as Text Take a look at this dataset. We have some numbers in a column. Though we have numbers ...

How to Delete Rows in a Range with VBA in Excel – 3 Methods

Observe the GIF: Click on the image for a better view. The VBA command will be used to delete an entire row. Customize the command to ...

Using a VBA Macro to Insert Rows in Excel Based on Criteria – 4 Methods

Method 1 - Using a VBA Macro to Insert Rows Based on the Cell Text Value in Excel To insert a new row based on the specific text value “Insert ...

How to Remove Spaces in Excel Applying Formula, VBA & Power Query: 11 Methods

Method 1 - Use Excel TRIM Function to Remove All Leading and Trailing Spaces The TRIM function removes all spaces from a text string except for ...

How to Remove the First Character from a String in Excel with VBA?

In this article, I will show you how you can remove the first character from a string in Excel with VBA. You’ll learn two easy procedures to remove ...

How to Use VBA to Remove Numbers from a String in Excel – 4 Methods

This is an overview. Below is the sample dataset. Method 1 - Delete Leading Numbers from String with Excel VBA Steps: ...

How to Delete Infinite Rows in Excel: 5 Methods

Method 1 - Changing Sheet Properties to Delete Infinite Rows Steps: Go to the Developer tab in the Ribbon. Click Properties under the Control ...

How to Add Space between Rows in Excel (2 Ways)

Method 1 - Using the Excel Sort Tool to Add a Space Between Rows Assuming we have a dataset (B4:D9) of the employee names and their total working ...

How to Remove Last Character from String Using VBA in Excel?

The following GIF demonstrates the process of removing the last character from a string using VBA in Excel. How to Remove Last ...

How to Remove Characters from String Using VBA in Excel?

The sample dataset is the Premier League Point Table of the 2012/13 Season. In the dataset, we have Manchester United as the Champion Team. But in ...

How to Count If Cell Contains Text in Excel (5 Easy Approaches)

It is not impossible that we might face the necessity to count how many cells contain text within a specific region. In this article, I will try to ...

How to Delete Multiple Rows with VBA in Excel (4 Ways)

In this article, I’ll show you how you can delete multiple rows in Excel with VBA. The article will combine deleting multiple rows of a selected ...

Close the CTA

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo