Using Macro to Find a Value within X Characters of another Value

astarr57

New Member
Joined
Dec 28, 2011
Messages
5
I currently have a Macro that will search through source data for any values that are built into an array I have constructed. It will also put an X in the column next to the data when it is found.

What I am looking to add to this process is a conditional or tiered search. Ideally, I am looking to be able to search for a value within a specified number of characters of another established value.

Ex - Find "Phone Number" within 50 characters of "Attraction Name"

The reason I need this is I have a very large pool for source data, and certain elements like "Phone Number" repeat throughout, but I would like to be able to search for specific instances.

Any insight or advice would be most welcome. Ideally I would like to integrate the conditional format search with my existing macro so I could continue to mark the column next to it when the value is found.

Thanks in advance for any and all help.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,215,107
Messages
6,123,126
Members
449,097
Latest member
mlckr

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