Remove Numbers at Beginning of text from a cell

Pete2020

Board Regular
Joined
Apr 25, 2020
Messages
68
Office Version
  1. 2016
Platform
  1. Windows
I have huge text data contains list of topics and course contents.I am facing a challenge to remove intro section numbers and session Numbers and much more to a normal text pattern. Individual removing them is taking a lot of time and effort.

I need the help of Mr. Excel Experts in resolving this through a Macro or VB Function.In the sample data, I have every thing in column A and my request to remove the intros text and numbers in the same column A.

I observed that in my sample
1. Most of the intros patterns is having serially numbered row after the other
2. 25% of data is followed by intros and text in below row without numbers (Chapter 1 followed by topics with out numbers and Chapter2 so on)

Out Put
=======
I am looking for a solution to remove all numbers and text before the number as shown in the example


Book1
AB
1Course Intro - Before Macro- Sample dataAfter Macro
21. IntroductionIntroduction
32.) Get to know thingsGet to know things
4(1). Happy to see YouHappy to see You
51. Nice to interact with YouNice to interact with You
6Session 1 Number functionsNumber functions
7Session 1 (a) String data types and functionsString data types and functions
8Session 1B The DUAL table and Number typesThe DUAL table and Number types
9Session 2 Adding a second tableAdding a second table
10Session 2A Adding a third tableAdding a third table
11Session 2B Creating and querying part of a tableCreating and querying part of a table
12Session 2 Practice ActivitiesPractice Activities
13Session 2 Summarising and ordering dataSummarising and ordering data
14Session 3 Database terminologyLike Above Format
15Session 3a Find missing data, and delete and update dataLike Above Format
16Session4 Practice ActivitiesLike Above Format
17Session5: Practice ActivitiesLike Above Format
18Chapter1 IntroductionLike Above Format
19Chapter 2:BenefitsLike Above Format
20Section 1 OverviewLike Above Format
21Section 2: Setting up ProjectLike Above Format
22Part 1 ObjectivesLike Above Format
23Part 2: OutcomesLike Above Format
24Step 01 Understanding Full Stack Application ArchitectureLike Above Format
25Step 02 Developing Spring Applications before Spring BootLike Above Format
26Step 02 Quick Overview of Modern JavaScript and TypeScriptLike Above Format
27Step 02 World before JPA JDBC, Spring JDBC and myBatisLike Above Format
28Step 03 Installing Angular CLI Awesome Tool to create Angular ProjectsLike Above Format
29Step 03 - Introduction to JPALike Above Format
30Step 03 Using Spring Initializr to create a Spring Boot ApplicationLike Above Format
31Step 04 Creating a JPA Project using Spring InitializrLike Above Format
32Step-04 Creating a Simple REST ControllerLike Above Format
33Step 04: Creating a JPA Project using Spring InitializrLike Above Format
34Step 04: Creating a Simple REST ControllerLike Above Format
35Step-05 Creating a JPA Project using Spring InitializrLike Above Format
36Step-05 Creating a Simple REST ControllerLike Above Format
37Step 1 Introduction to JPALike Above Format
38Step 2 Benefits of SAASLike Above Format
39Exercise 163 ExceptionsLike Above Format
40Exercise 163 SolutionLike Above Format
41Exercise 03a AnswerLike Above Format
42Exercise 03a QuestionLike Above Format
43Exercise 04a AnswerLike Above Format
44Exercise 04a QuestionLike Above Format
45Exercise 07a AnswerLike Above Format
46Exercise 07a QuestionLike Above Format
47Day 1 Overview of the SpeakerLike Above Format
48Day 2.) Topic OverviewLike Above Format
49Week -1 About the SpeakerLike Above Format
50Week 2 - IntroductionAbout the Speaker
51Introduction
Sheet1
 
Thanks @mikerickson for giving awesome function. It works.

If Possible can you provide me a macro which runs on column A.

My data is around 50k rows. Thanks
 
Upvote 0

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
VBA Code:
Dim i as long
Dim arrValues as Variant

With Range("A:A")
    With Range(.Cells(1,1), .Cells(Rows.Count).End(xlUp)
        arrValues = .Value

        For i = 1 to .Rows.Count
            arrValues(i,1) = RemoveHeading(arrValues(i,1))
        Next i
    
        .Offset(0, 0).Value = arrValues :Rem adjust as desired
    End With
End With
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,550
Members
449,088
Latest member
davidcom

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top