Match Column A with Column B, return Column A (harder than it looks - column B needs number extraction?)

NikolB

New Member
Joined
Sep 7, 2018
Messages
2
I have 3 Columns:

Column A I've widdled down to solely invoice numbers, 6 or 7 digits in length, all begin with 1, although there are some zeros

I.E.:
135678
1803708
121943
0
131251


Column B is an employee populated field where they write things like "This is my Jan 25 invoice 135678 for this business"
no position on number, etc, totally random. AND, there will be other numbers too like telephone numbers or dates, none 6-7 numbers long

Column C is the employee name who made the entry


I am hoping to create a formula that will highlight when the number from column A appears anywhere in column B: when it does, turn the row Green, when it does not, turn Red
or any better ideas? I just need a sense of who is writing their invoices in the titles and who is just writing words. The part I'm stuck on is extracting, or finding, the number in the text string.

Thanks for any thoughts!!
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Hi,

Use D2 formula for CF rule, format Green.
Use E2 formula for CF rule, format Red.


Book1
ABCDE
2135678This is my Jan 25 invoice 135678 for this businessJohn DoeTRUEFALSE
318037081803708 is my Jan 25 invoice for this businessJohn DoeTRUEFALSE
4121943This is my Jan 25 invoice for this business call me at 1234567890John DoeFALSETRUE
50This is my Jan 25 invoice 135678 for this businessJohn DoeFALSETRUE
6131251This is my Jan 25 invoice for this business 131251John DoeTRUEFALSE
Sheet231
Cell Formulas
RangeFormula
D2=ISNUMBER(FIND(" "&$A2&" "," "&$B2&" "))
E2=NOT(ISNUMBER(FIND(" "&$A2&" "," "&$B2&" ")))


Don't know what you want done when Column A is 0 (zero)
 
Upvote 0
Wow that was quick! Ok getting closer, but my invoices (column A) can be anywhere within B - not necessarily check B1 for the value in A1
 
Upvote 0
Wow that was quick! Ok getting closer, but my invoices (column A) can be anywhere within B - not necessarily check B1 for the value in A1

Then you probably don't mean this neither
when it does, turn the row Green,


Book1
ABCDE
2135678This is my Jan 25 invoice for this businessJohn DoeFALSETRUE
31803708This is my Jan 25 invoice for this business 131251John DoeTRUEFALSE
4121943This is my Jan 25 invoice for this business call me at 1234567890John DoeFALSETRUE
50This is my Jan 25 invoice 135678 for this businessJohn DoeTRUEFALSE
61312511803708 is my Jan 25 invoice for this businessJohn DoeTRUEFALSE
Sheet231
Cell Formulas
RangeFormula
D2=ISNUMBER(LOOKUP(2,1/SEARCH(" "&$A$2:$A$6&" "," "&$B2&" ")))
E2=NOT(ISNUMBER(LOOKUP(2,1/SEARCH(" "&$A$2:$A$6&" "," "&$B2&" "))))


D2 for Green.
E2 for Red.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,647
Messages
6,126,006
Members
449,280
Latest member
Miahr

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