QUESTION: Finding cell text in other cell text, returning value from third cell

BeeDub57

New Member
Joined
Mar 8, 2019
Messages
1
I need to determine if the individual cells in column A (A1:A17933) contain text from any of the cells in column C (C1:C1957), and if so, return the column C cell's corresponding value in column D (D1:D1957) to the column B cell next to the column A cell containing the column C cell text.

For instance, in the following sample table, B1:B13 would be filled with 0.44, while B:14:B20 would be filled with 0.82.

10 N Trauma 10 [201965] * James Barbra [0048668]

<tbody>
</tbody>
10 N Trauma 10
0.44

<tbody>
</tbody>
10 N Trauma 10 [201965] * James Barbra [0048668]10 N Trauma 20
0.82

<tbody>
</tbody>
10 N Trauma 10 [201965] * James Barbra [0048668]

<tbody>
</tbody>
10 N Trauma 30
0.72

<tbody>
</tbody>
10 N Trauma 10 [201965] * James Barbra [0048668]

<tbody>
</tbody>
10 N Trauma 40
0.52

<tbody>
</tbody>
10 N Trauma 10 [201965] * James Barbra [0048668]

<tbody>
</tbody>
10 N Trauma 50
0.77

<tbody>
</tbody>
10 N Trauma 10 [201965] * James Barbra [0048668]

<tbody>
</tbody>
10 N Trauma 60
0.58

<tbody>
</tbody>
10 N Trauma 10 [201965] * James Barbra [0048668]

<tbody>
</tbody>
10 N Trauma Admin
0.82

<tbody>
</tbody>
10 N Trauma 10 [201965] * James Barbra [0048668]

<tbody>
</tbody>
100 Oaks Admin
1.00

<tbody>
</tbody>
10 N Trauma 10 [201965] * James Barbra [0048668]

<tbody>
</tbody>
100 Oaks Clinic Pharmacy
1.00

<tbody>
</tbody>
10 N Trauma 10 [201965] * James Barbra [0048668]

<tbody>
</tbody>
100 Oaks Phlebotomy
0.65

<tbody>
</tbody>
10 N Trauma 10 [201965] * James Barbra [0048668]

<tbody>
</tbody>
1st Shift
0.92

<tbody>
</tbody>
10 N Trauma 10 [201965] * James Barbra [0048668]

<tbody>
</tbody>
2nd Shift
0.83

<tbody>
</tbody>
10 N Trauma 10 [201965] * James Barbra [0048668]

<tbody>
</tbody>
340B Multi Cont
0.90

<tbody>
</tbody>
10 N Trauma 20 [201966] * Abigail Wardlaw [0107904]3MCN General Medicine
1.00

<tbody>
</tbody>
10 N Trauma 20 [201966] * Abigail Wardlaw [0107904]3MCN General Medicine Admin
0.50

<tbody>
</tbody>
10 N Trauma 20 [201966] * Abigail Wardlaw [0107904]3rd Shift
1.00

<tbody>
</tbody>
10 N Trauma 20 [201966] * Abigail Wardlaw [0107904]3RW Cohort 10
0.76

<tbody>
</tbody>
10 N Trauma 20 [201966] * Abigail Wardlaw [0107904]3RW Cohort 20
0.94

<tbody>
</tbody>
10 N Trauma 20 [201966] * Abigail Wardlaw [0107904]3RW Inpatient Medicine
0.83

<tbody>
</tbody>
10 N Trauma 20 [201966] * Abigail Wardlaw [0107904]4 East Obstetrics
0.87

<tbody>
</tbody>

<tbody>
</tbody>








































I've been trying:

=IF(ISNUMBER(SEARCH($C$1:C$1957,A1)),$D$1:$D$1957,"")

...but no luck.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hi,

B1 formula copied down:


Book1
ABCD
110 N Trauma 10 [201965] * James Barbra [0048668]0.4410 N Trauma 100.44
210 N Trauma 10 [201965] * James Barbra [0048668]0.4410 N Trauma 200.82
310 N Trauma 10 [201965] * James Barbra [0048668]0.4410 N Trauma 300.72
410 N Trauma 10 [201965] * James Barbra [0048668]0.4410 N Trauma 400.52
510 N Trauma 10 [201965] * James Barbra [0048668]0.4410 N Trauma 500.77
610 N Trauma 10 [201965] * James Barbra [0048668]0.4410 N Trauma 600.58
710 N Trauma 10 [201965] * James Barbra [0048668]0.4410 N Trauma Admin0.82
810 N Trauma 10 [201965] * James Barbra [0048668]0.44100 Oaks Admin1
910 N Trauma 10 [201965] * James Barbra [0048668]0.44100 Oaks Clinic Pharmacy1
1010 N Trauma 10 [201965] * James Barbra [0048668]0.44100 Oaks Phlebotomy0.65
1110 N Trauma 10 [201965] * James Barbra [0048668]0.441st Shift0.92
1210 N Trauma 10 [201965] * James Barbra [0048668]0.442nd Shift0.83
1310 N Trauma 10 [201965] * James Barbra [0048668]0.44340B Multi Cont0.9
1410 N Trauma 20 [201966] * Abigail Wardlaw [0107904]0.823MCN General Medicine1
1510 N Trauma 20 [201966] * Abigail Wardlaw [0107904]0.823MCN General Medicine Admin0.5
1610 N Trauma 20 [201966] * Abigail Wardlaw [0107904]0.823rd Shift1
1710 N Trauma 20 [201966] * Abigail Wardlaw [0107904]0.823RW Cohort 100.76
1810 N Trauma 20 [201966] * Abigail Wardlaw [0107904]0.823RW Cohort 200.94
1910 N Trauma 20 [201966] * Abigail Wardlaw [0107904]0.823RW Inpatient Medicine0.83
2010 N Trauma 20 [201966] * Abigail Wardlaw [0107904]0.824 East Obstetrics0.87
Sheet635
Cell Formulas
RangeFormula
B1=IFERROR(LOOKUP(2,1/SEARCH(C$1:C$20,A1),D$1:D$20),"")
 
Upvote 0
You're welcome, welcome to the forum, thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,648
Messages
6,120,726
Members
448,987
Latest member
marion_davis

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