Covid Vaccine Next dose

abarodi1

New Member
Joined
Apr 10, 2023
Messages
1
Office Version
  1. 2016
  2. 2013
  3. 2011
  4. 2010
  5. 2007
  6. 2003 or older
Platform
  1. Windows
  2. MacOS
  3. Mobile
Hi,

I'm a healthworker and i relly need your help guys. I have the sample data (please see attached image). The real data consist of thousands of patients but i will give 3 patients only for the benefit of time.

What I want to achieve guys is to show only the row where the recent or last dose of the patient Given 3 patients below
1. Mr. Wick has 1st and 2nd dose so I want to retain only the row 4 where the recent dose of Mr. Wick is 2.
2. Mr. Reeves has 1, 2, and 3 dose so i want to retain only the data on row 7.
3. Mr. Trump has only 1 dose so i want to retain the data of row 8.

I hope you guys can help us. We really need this to monitor our patient's next dose.

God bless and thank you!
20230411_094241.jpg
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Try:
This should work in Excel 2010 and higher.
You will need to enter the formula with CTRL-SHIFT-ENTER.
But the formula in cell C13 (change to match your actual data) and then drag (not copy) the formula down the rows.

Book4
ABCDE
1SAMPLE DATA
2LAST NAMEFIRST NAMEDATEVaccineDOSE
3WICKJOHN1/1/2021Pfizer1
4WICKJOHN3/3/2021Pfizer2
5REEVESKEANU1/1/2021Pfizer1
6REEVESKEANU3/3/2021Pfizer2
7REEVESKEANU5/5/2021Pfizer3
8TRUMPDONALD1/1/2021Pfizer1
9
10
11OUPUT WANT TO SHOW
12LAST NAMEFIRST NAMEDATEVaccineDOSE
13WICKJOHN3/3/2021Pfizer2
14REEVESKEANU5/5/2021Pfizer3
15TRUMPDONALD1/1/2021Pfizer1
Sheet4
Cell Formulas
RangeFormula
C13:E15C13=INDEX($C$3:$E$8,AGGREGATE(14,6,(ROW($C$3:$C$8)-ROW($C$3)+1)/(MAX(IF(($A13=$A$3:$A$8)*($B13=$B$3:$B$8),$E$3:$E$8))=$E$3:$E$8),1),{1,2,3})
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,388
Messages
6,124,641
Members
449,177
Latest member
Sousanna Aristiadou

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