Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Find char in string and mark
I have several thousand address' in this format:
123 Any Street # 23 234 Main Street # A I need to have a space after the #. In some cases I do not: 576 South Street #24 Using VBA how can I search a range (1 column) and find the address' without the space and then mark the cell color red. Thanks for your help!! Fred |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Find char in string and mark
Hi Fred
After they are marked red what do you intend to do ? Could you not use the Find/Replace function within Excel if what you are doing is going to add a space to those cells maked red? "Fred" wrote: I have several thousand address' in this format: 123 Any Street # 23 234 Main Street # A I need to have a space after the #. In some cases I do not: 576 South Street #24 Using VBA how can I search a range (1 column) and find the address' without the space and then mark the cell color red. Thanks for your help!! Fred |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Find char in string and mark
On Jul 24, 10:32 am, steve_doc
wrote: Hi Fred After they are marked red what do you intend to do ? Could you not use the Find/Replace function within Excel if what you are doing is going to add a space to those cells maked red? "Fred" wrote: I have several thousand address' in this format: 123 Any Street # 23 234 Main Street # A I need to have a space after the #. In some cases I do not: 576 South Street #24 Using VBA how can I search a range (1 column) and find the address' without the space and then mark the cell color red. Thanks for your help!! Fred- Hide quoted text - - Show quoted text - Hi, I plan to send the Excel sheet to the data entry people to use as a reference to fix the errors in the database. Thanks! |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Find char in string and mark
Don't bother with VBA, use conditional formatting.
Select column A Menu FormatConditional Formatting Change Condition 1 To formula Is Add a formula of =AND(ISNUMBER(FIND("#",A1)),NOT(ISNUMBER(FIND("# ",A1)))) Click Format Select Pattern Choose Red OK OK -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Fred" wrote in message ps.com... I have several thousand address' in this format: 123 Any Street # 23 234 Main Street # A I need to have a space after the #. In some cases I do not: 576 South Street #24 Using VBA how can I search a range (1 column) and find the address' without the space and then mark the cell color red. Thanks for your help!! Fred |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How can I find a value from one cell in a char string in another? | Excel Worksheet Functions | |||
FIND 1 char in cell of any 3 char =True | Excel Discussion (Misc queries) | |||
How to retrieve certain char within a string? | Excel Discussion (Misc queries) | |||
string/char CONTAINS function? | Excel Worksheet Functions | |||
last char of a string | Excel Programming |