Using VLookups and If Statements Together

simm5580

New Member
Joined
Mar 4, 2015
Messages
3
I think I need to combine a Vlookup and IF statement together. Basically, I have a list of participants with a medication start date and I also have a list of medical reports for each of those participants (note: each participant has more than 1 medical report). Essentially, I would like to pull out 1 value from the medical report closest to the start of the medication (before medication start date not after).
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Post a sample of the data showing cols & rows and what results you expect.
 
Upvote 0
Sheet 1
Study IDMedication Start
102010/12/13

<tbody>
</tbody>


Sheet 2
Study IDMedical Report DateMedical report Value
102014/10/2010
102013/12/1320
102010/12/1130

<tbody>
</tbody>


In this case, I would like it to pull out the Medical Report Value "30" since the date is prior to the "Medication Start Date"
 
Upvote 0
how is the data structured
can you put a link to a example file on dropbox or onedrive?
 
Upvote 0
Unfortunately not. It is structured across two sheets.

Sheet 1 - Contains Study ID (listed down rows) & medication start Date (1 column)
Sheet 2 - Contains study ID with multiple reports for each study ID (listed down rows), the date for each Medical Report, the Medical Value for each report.
 
Upvote 0
You're making this hard! Is there only 1 Study ID? Are the dates sorted? If so Ascending or Descending?
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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