L
Lady Success
I am creating a query worksheet where text is entered. I then want to verify
the status of that entry against a database. I need to identify anything
that contains all or part of the name listed in the query. It would look
something like this:
Sheet 1 is where the query is:
A1 "Type in drug name"
B2 Drug name is entered by user
C2 - through C6 I want the formula(s) to find the drug name shown in
B2 and if more than one instance, indicate all the instances it found.
D2 through D6 - I want the formula(s) to find the content of Column B in the
database that matches the content of C2- through C6.
The example and outcome would look like this:
The word "Nifedipine" is entered in the query sheet.
I want the query formulas to come back with the following responses:
C2 Nifedipine D2 Covered generic
C3 Nifedipine ER D3 Non-Covered Generic
Sheet 2 contains the database:
Column A Column B
NIFEDICAL XL Covered Generic
NIFEDIPINE Covered Generic
NIFEDIPINE ER Non-Covered Generic
NILSTAT Covered Generic
NIMODIPINE Covered Generic
NISOLDIPINE Covered Generic
NITREK Covered Generic
NITRO-BID Covered Generic
NITROFURANTOIN Covered Generic
Is it even possible for me to do what I want to do? I know how to use the
Vlookup function, but not sure how I can identify an entire string rather
than just the exact match and also identify more than one instance of the
name?
the status of that entry against a database. I need to identify anything
that contains all or part of the name listed in the query. It would look
something like this:
Sheet 1 is where the query is:
A1 "Type in drug name"
B2 Drug name is entered by user
C2 - through C6 I want the formula(s) to find the drug name shown in
B2 and if more than one instance, indicate all the instances it found.
D2 through D6 - I want the formula(s) to find the content of Column B in the
database that matches the content of C2- through C6.
The example and outcome would look like this:
The word "Nifedipine" is entered in the query sheet.
I want the query formulas to come back with the following responses:
C2 Nifedipine D2 Covered generic
C3 Nifedipine ER D3 Non-Covered Generic
Sheet 2 contains the database:
Column A Column B
NIFEDICAL XL Covered Generic
NIFEDIPINE Covered Generic
NIFEDIPINE ER Non-Covered Generic
NILSTAT Covered Generic
NIMODIPINE Covered Generic
NISOLDIPINE Covered Generic
NITREK Covered Generic
NITRO-BID Covered Generic
NITROFURANTOIN Covered Generic
Is it even possible for me to do what I want to do? I know how to use the
Vlookup function, but not sure how I can identify an entire string rather
than just the exact match and also identify more than one instance of the
name?