Using a formula to return the other parts of a number

bearcub

Well-known Member
Joined
May 18, 2005
Messages
699
Office Version
  1. 365
  2. 2013
  3. 2010
  4. 2007
Platform
  1. Windows
I have to reconcile visits from two different reports. I in report, I have a patient number which contains 7 characters and another report than contains these same 7 characters plus some additional characters.

for example, in the monthly report I would get a patient number like 502-501 but the master file contains 502-501-606.

I would like to see if the data for 502-501 is contained in the 502-501-606 record (I'm trying to see if this was previously paid). I was using the lookup function where the lookup value was 502-501 and I was looking for this value in the master file but I wanted to return 502-501-606 in a helper column. However, the I got an error message.

Is their a formula in excel that will find partial values in one cell that match the partial values in another cell?

I was afraid I was doing something wrong.

With the Index and Match combination work instead?

Thank you for your help,

Michael
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Michael, Good evening.

You can use wildcard * to do the search.

Suppose:

Montly report -->
A1 --> =502-501
B1 --> helper column

Master File
A1:A1000 --> Patient Number

Try to use:

Montly report -->
B1 --> helper column
B1 --> =VLOOKUP(A1 & "*", 'Master File'!$A$1:$A$1000, 1, False)

Adapt the references to your reality.

Is that what you want?
I hope it helps.
 
Last edited:
Upvote 0
Yes, it was, thank you. I forgot to thank you initially for the help.
 
Upvote 0

Forum statistics

Threads
1,203,491
Messages
6,055,727
Members
444,814
Latest member
AutomateDifficulty

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