Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 3
Default Find rows that contain capital letter?

I've got a spreadsheet with 600,000 email addresses in one column. Some of these email addresses are in CAPS some start with a Capital letter.

What I want to do is to identify ALL of the rows that contain a capital letter with (eg) "yes" in column C.

That way I can sort by this column, remove the No's, convert the remainder to lowercase and import back into the CRM system. I don't want to convert everything in the database as I'll then have to re-import all 600,000 records - not a small job!

Any help would be appreciated - thanks.

Last edited by DustyT : October 19th 12 at 03:23 PM
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default Find rows that contain capital letter?

Hi Dusty,

Am Fri, 19 Oct 2012 13:53:09 +0000 schrieb DustyT:

I've got a spreadsheet with 600,000 email addresses in one column. Some
of these email addresses are in CAPS some start with a Capital letter.

What I want to do is to identify ALL of the rows that contain a capital
letter with (eg) "yes" in column C.


the formula will give you a TRUE or FALSE for the first letter of the
email address:
=AND(CODE(LEFT(B1,1))64,CODE(LEFT(B1,1))<91)


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,045
Default Find rows that contain capital letter?

On Fri, 19 Oct 2012 13:53:09 +0000, DustyT wrote:


I've got a spreadsheet with 600,000 email addresses in one column. Some
of these email addresses are in CAPS some start with a Capital letter.

What I want to do is to identify ALL of the rows that contain a capital
letter with (eg) "yes" in column C.

That way I can sort by this column, remove the No's, convert the
remainder to lowercase and import back into the CRM system. I don't
want to convert everything in the database as I'll then have to
re-import all 600,000 records - not a small job!

Any help would be appreciated - thanks.


I interpret your request as wanting to change ANY capital letter in the email address to lower case; not just the one's that have a capital letter as the first character.

I think this could be done mose easily by a macro.

The following macro assumes your 600,000 or so email addresses are in column A. It looks at each email address. If there are any capital letters, it converts it to lower case and also writes it out sequentially in column C. So if you just select the addresses in column C, you should have just the one's that need to be re-imported.


To enter this Macro (Sub), <alt-F11 opens the Visual Basic Editor.
Ensure your project is highlighted in the Project Explorer window.
Then, from the top menu, select Insert/Module and
paste the code below into the window that opens.

To use this Macro (Sub), <alt-F8 opens the macro dialog box. Select the macro by name, and <RUN.
=================================
Option Explicit
Option Compare Binary
Sub FindCaps()
Dim v As Variant, vRes() As String
Dim i As Long, j As Long
Dim c As Range
Dim rSrc As Range, rDest As Range

Set rSrc = Range("A1", Cells(Rows.count, "A").End(xlUp))
Set rDest = Range("C1")

v = rSrc

ReDim vRes(1 To UBound(v, 1), 1 To 1)
j = 1
For i = LBound(v, 1) To UBound(v, 1)
If v(i, 1) Like "*[A-Z]*" Then
vRes(j, 1) = LCase(v(i, 1))
j = j + 1
End If
Next i

With rDest
.EntireColumn.Clear
.Resize(rowsize:=UBound(vRes)) = vRes
End With

End Sub
=====================================
  #4   Report Post  
Junior Member
 
Posts: 3
Default

Quote:
Originally Posted by Claus Busch View Post

the formula will give you a TRUE or FALSE for the first letter of the
email address:
=AND(CODE(LEFT(B1,1))64,CODE(LEFT(B1,1))<91)
Hi Claus,

That's fantastic - thanks.

Dusty.
  #5   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by DustyT View Post
I've got a spreadsheet with 600,000 email addresses in one column. Some of these email addresses are in CAPS some start with a Capital letter.

What I want to do is to identify ALL of the rows that contain a capital letter with (eg) "yes" in column C.

That way I can sort by this column, remove the No's, convert the remainder to lowercase and import back into the CRM system. I don't want to convert everything in the database as I'll then have to re-import all 600,000 records - not a small job!

Any help would be appreciated - thanks.
Have a look at this thread (on another forum).
Seems you could make this work for you.

http://www.excelforum.com/excel-gene...pper-case.html


  #6   Report Post  
Junior Member
 
Posts: 3
Default

Thanks Ron. This also looks like a good option. I'll give it a go...
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Find Capital Letter Boogie Excel Worksheet Functions 12 January 23rd 09 05:25 PM
How to make First letter of the cell in capital letter Irshad Alam Excel Programming 17 September 7th 08 04:14 PM
New Validation option to format 1st letter as Capital letter Jeff Excel Discussion (Misc queries) 5 July 13th 06 05:11 AM
Default Capital letter for 1st letter of a word Jeff Excel Discussion (Misc queries) 6 July 10th 06 08:36 AM
How to change the first letter in Capital letter Eric[_6_] Excel Programming 2 January 15th 04 09:48 PM


All times are GMT +1. The time now is 10:18 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"