howto: search for values in a range of cells where the range is depending on a comparison

fhadlfhdasigfhdaspg

New Member
Joined
Apr 13, 2018
Messages
1
hi,

i can not seem to find a solution for this. thank you in advance for tips or links to a solution. the situation is as follows:

i have 3 tables that are connected through different cells. i give an example:

table1:
patient, age
1, 36
2, 67
3, 43

table 2 (patient occur more than once because of different time points of diagnosis):
patient, diagnosis
1, a
1, c
1, c
2, a
2, d
3, c

table 3:
diagnosis_needs_treatment
c
d
e
f

i now would like to combine the information in the three tables. i would like to add a field to table one that indicates if a patient had a diagnosis that needs treatment. later on, i further want to analyse the age of the patients that need treatment (but this is not important now). i want to end up with a table like this:

result_table
patient, age, needs_treatment
1, 36, yes
3, 43, yes

patient 2 could have a "no" or could be missing. that does not matter.

is this possible with built-in funtions?

thanks
m
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,215,697
Messages
6,126,269
Members
449,308
Latest member
VerifiedBleachersAttendee

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