Can we delete labeled or unlabeled digit in Excel?

Hi The below is a group of data. Can we delete labeled or unlabeled digit in Excel with a simpler way? Thank you

18      34
21      35
23      36
25      36
25      40
27      43
29      45
eemoonAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

KoenChange and Transition ManagerCommented:
what are you trying to achieve ? what do you mean with labeled or unlabeled digit?
0
Martin LissOlder than dirtCommented:
Please explain what you mean by "labeled or unlabeled".
0
eemoonAuthor Commented:
Sorry it is not clear.
The labeled or unlabeled is highlighted one with Bold or other colors
In this case, they are 35, 25, and 43
0
Introduction to R

R is considered the predominant language for data scientist and statisticians. Learn how to use R for your own data science projects.

Martin LissOlder than dirtCommented:
When you delete them what should happen to the cell? Should it be blank or should the other data in the column move up?
0
eemoonAuthor Commented:
it does not matter because I can put them together by sorting. It could be blank
0
Martin LissOlder than dirtCommented:
Here a macro. It deletes all cells on the sheet that are bolded. It could easily be limited to a specific range.

Sub DeleteBold()

Dim cel As Range

For Each cel In ActiveSheet.UsedRange
    If cel.Font.Bold = True Then
        cel.Delete
    End If
Next
End Sub

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.