Find text

sajohnson05

New Member
Joined
Aug 21, 2013
Messages
20
I am trying to find text from worksheet 2 and put the risk factor into worksheet 1. Any help would be great, not sure the best formula to use.

1
Area ServedFactor
*******Forumla
MRI
Operating Room

<tbody>
</tbody>

2
Area ServedRisk Factor
Operating Rooms5

<tbody>
</tbody>
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
assuming that
- the data is in columns A and B on both sheets , column header in row 1 and the data itself in rows 2 onwards
- sheets are called sheet1 and sheet2

formula in B2 then drag down is =VLOOKUP(A2,Sheet2!$A:$B,2,FALSE) .. result below. note that the 2nd row returns a result of N/A because you refer to "Operating Room" on sheet1 and "Operating Rooms" on shhet2
this is not an exact match so doesn't work.

Use the same term on both sheets and you will

Area ServedFactor
MRI#N/A
Operating Room#N/A

<tbody>
</tbody>


Use the same term on both sheets and you will get this result
Area ServedFactor
MRI#N/A
Operating Rooms5

<tbody>
</tbody>


Can you use the same term on both sheets
 
Last edited:
Upvote 0
Is there a way it will work if a certain text is in sheet 1 but the exact is not in sheet 2. Say in sheet 1 it say ICU but in sheet two it may say ICU/CCU.
 
Upvote 0
try this then =VLOOKUP(CONCATENATE("*",A2,"*"),Sheet2!$A:$B,2,FALSE)

uses * as wild card so on the "operating room" row looks for *Operating Room* on sheet 2 .

unfortunately this wont work if sheet1 has the longer text . eg in my example I have added a row "Car Parks" on shheet1. On sheet2 I have just called it "Car Park" so the VLOOKUp with wildcard still returns n/A
If at all possible would be a good idea to standardize the terminology


Area ServedFactor
MRI#N/A
Operating Room5
Car Parks#N/A

<colgroup><col><col></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,422
Messages
6,119,395
Members
448,891
Latest member
tpierce

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