Find text in range

bfournier5

New Member
Joined
Apr 17, 2018
Messages
17
Hello

Looking for some help. I'm trying to find the row value of a specific text that appears inside a range. Once I have this row, I'll need to copy the data that is located 3 columns to the left of this same row. I have placed the search text inside a cell and if that do not work, I need to search the same range with another set of words that is placed right under.

I'll also need some help to bypass this if the range is less then 5 lines.

Here is my formula so far

=MATCH(P1;SingleInteraction;0) but it returns #n/a ... but my range has the search text in it. If I only have this text inside the cell, it will return the row, but the cell will always have more text before what I'm looking for.

Hope this make sense?
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
solved one issue ... able to search and return a value ... here is the updated formula ... =MATCH(" * "&P1;SingleInteraction;0)

still need help with

a) how to bypass this if the range is less then 5 rows

b) check for something that is in either P1 or P2
 
Upvote 0
have solved a) ... but now have an error when using the formula

ActiveCell.Formula = "=MATCH(" * " & P1;SingleInteraction;0)", believe the issue is the quotes and ampersand within the formula that is causing me an issue.
 
Upvote 0
Simply needed to add another set of quotes to make it work ... final formula is ActiveCell.Formula = "=MATCH("" * "" & P1;SingleInteraction;0)"
 
Upvote 0

Forum statistics

Threads
1,214,618
Messages
6,120,544
Members
448,970
Latest member
kennimack

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