In column A locate partial text from column C then apply corresponding column D text to column B

Krikit256

New Member
Joined
May 30, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello

I have Windows 11 and Office 365. I have included a screenshot because corporate will not allow me to install the XL2BB tool.

I have a long list of email addresses in column A. I need to know the person’s parent company.
In column C I have a list of text strings that might be in one of the (col A) email addresses. In column D, I have the corresponding Parent Company.

I would like Excel to search all email addresses in col A, find a match in col C and apply the Parent Company (col D) to column B (next to each email address.).
Fill col B based on col C and D.png

My column A list will change each month, and I will add to columns C & D as more come in.

Currently, column A is A2 to A473, columns C & D are 2 to 58.

Do I need my lists to be tables? Do I need helper cells? Do I use a search or filter or lookup formula?

Thank you in advance for suggestions and help on this. I am not an advanced Excel user, and I feel as though I have read every post, looked at every similar question on this site, and watched one million tutorials. I cannot figure out what I need.

Again, thank you!
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Provided that all those email addresses have the same structure as in this picture (i.e. chain + dot + something) and there are no duplicates in column C with different companies in column D:

Excel Formula:
=XLOOKUP(TEXTBEFORE(A2:A12,"."),C2:C12,D2:D12,"not found")

If it is more complicated post more examples.
 
Upvote 0
Solution
Provided that all those email addresses have the same structure as in this picture (i.e. chain + dot + something) and there are no duplicates in column C with different companies in column D:

Excel Formula:
=XLOOKUP(TEXTBEFORE(A2:A12,"."),C2:C12,D2:D12,"not found")

If it is more complicated post more examples.
This was so simple and yet ellusive to me due to my lack of Excel knowledge. This formula works perfectly.

I greatly appreciate your help and quick response.
Thank you!
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,190
Members
452,616
Latest member
intern444

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