exclude lowercase letter

sksanjeev786

Well-known Member
Joined
Aug 5, 2020
Messages
961
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi Team

I want to exclude lower case letter from the below data where ever i have lowercase letter i need only data for that cell
Via Formula

Data.xlsx
FGH
10342445 A
104141945 A
10593-37 A
106681-2
10782-85 A
10882111 a
10980111 a
11073-511 A
11180-610 A
11280-314 A
11375-82
11480-211 A
11556100100
116
11775-39 a
11871-510 A
11970-31
12073-100
12166111
12230112
12334-74
12456100100
1 (2)
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
What are you trying to do exactly? You said you wanted to exclude it then you said you wanted data for the cell if you had it. Are you wanting to duplicate the value in Column H or what exactly?
 
Upvote 0
What are you trying to do exactly? You said you wanted to exclude it then you said you wanted data for the cell if you had it. Are you wanting to duplicate the value in Column H or what exactly?
Hi,

I would like to remove all lower case from that column ie. need to remove "a" from H column
 
Upvote 0
=EXACT(H1;LOWER(H1)) This gives you if the cell H1 has a lower case and then filter on it.
 
Upvote 0
What would be far more helpful in this question and your other question would be to show us 2 images:
1. A sample of what your current data looks like
2. What your expected result of that data sample should look like when it is complete
(show us what you WANT to see instead of leave it up to chance with an unclear explanation)
 
Upvote 0
Try this macro:

VBA Code:
Sub RemoveLowerLetter()
Dim c As Range, s As String
Application.ScreenUpdating = False
For Each c In Range("H1:H" & Range("H" & Rows.Count).End(xlUp).Row)
    s = Right(c.Text, 1)
    If s <> "" Then If Asc(s) > 96 And Asc(s) < 123 Then c = Trim(Left(c, Len(c) - 1))
Next
Range("H:H").NumberFormat = "General"
Application.ScreenUpdating = True
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,988
Members
452,373
Latest member
TimReeks

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