[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Patient Name (or Id)
[/TD]
[TD]Vaccine Name
[/TD]
[TD]date of vaccine
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sally Smith
[/TD]
[TD]Mumps
[/TD]
[TD]5/17/13
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sally Smith
[/TD]
[TD]Rubella
[/TD]
[TD]5/17/13
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sally Smith
[/TD]
[TD]Measles
[/TD]
[TD]5/17/13
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]John Doe
[/TD]
[TD]Mumps
[/TD]
[TD]5/17/13
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]JohnDoe
[/TD]
[TD]Measles
[/TD]
[TD]5/17/13
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sally Smith
[/TD]
[TD]Measles
[/TD]
[TD]6/4/1990
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Hi everyone,
First time post. Having a bit of trouble with deciding whether I need to use VBA or standard formulas for this criteria
I have a sheet where I need to identify different vaccines for people and group them as one record. I would like to identify any time a person received a Measles, Mumps, and Rubella vaccine on the same day and return a new record with the same date with the vaccine name as MMR
This is the formula I was using but I couldn't figure out my argument:
SMALL(IF((AND($F$2:$F$28134,$X$2,$F$2:$F$28134=$Y$2,$F$2:$F$28134=$Z$2),A2:$A$28134,MMR)))
It is definitely wrong but I was hoping someone could help me out! Thanks!
<tbody>[TR]
[TD]Patient Name (or Id)
[/TD]
[TD]Vaccine Name
[/TD]
[TD]date of vaccine
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sally Smith
[/TD]
[TD]Mumps
[/TD]
[TD]5/17/13
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sally Smith
[/TD]
[TD]Rubella
[/TD]
[TD]5/17/13
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sally Smith
[/TD]
[TD]Measles
[/TD]
[TD]5/17/13
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]John Doe
[/TD]
[TD]Mumps
[/TD]
[TD]5/17/13
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]JohnDoe
[/TD]
[TD]Measles
[/TD]
[TD]5/17/13
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sally Smith
[/TD]
[TD]Measles
[/TD]
[TD]6/4/1990
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Hi everyone,
First time post. Having a bit of trouble with deciding whether I need to use VBA or standard formulas for this criteria
I have a sheet where I need to identify different vaccines for people and group them as one record. I would like to identify any time a person received a Measles, Mumps, and Rubella vaccine on the same day and return a new record with the same date with the vaccine name as MMR
This is the formula I was using but I couldn't figure out my argument:
SMALL(IF((AND($F$2:$F$28134,$X$2,$F$2:$F$28134=$Y$2,$F$2:$F$28134=$Z$2),A2:$A$28134,MMR)))
It is definitely wrong but I was hoping someone could help me out! Thanks!