analysing big excel data

resiexfor

New Member
Joined
Jan 6, 2018
Messages
3
Hello all,
I need your help analysing these data if possible.
This is the number of medications charged on patients in a data range, and arranged per patient or "MR"

Is it possible to know how many total days the patient was charged? like for example MR1 charged first on 16/10/2017 and last charging on 19/10/2017
Meaning number of days is 4.



is there an easy way to do all the MRs without checking one by one?

Also... can it be further analysed by item name afterwards?

Thanks

[TABLE="width: 656"]
<colgroup><col><col><col span="2"><col><col></colgroup><tbody>[TR]
[TD]ITEM NAME[/TD]
[TD]ISSUE DATE[/TD]
[TD]QTY[/TD]
[TD]RATE[/TD]
[TD]MR NO[/TD]
[TD]ENC NO[/TD]
[/TR]
[TR]
[TD]MEPRA 1GM POWDER SOLUTION FOR INJECTION[/TD]
[TD="align: right"]16/10/2017[/TD]
[TD]1[/TD]
[TD]43.9900[/TD]
[TD]Mr1[/TD]
[TD]Enc1[/TD]
[/TR]
[TR]
[TD]PRIZMA 4.5GM POWDER FOR INFUSION[/TD]
[TD="align: right"]16/10/2017[/TD]
[TD]4[/TD]
[TD]71.2500[/TD]
[TD]Mr1[/TD]
[TD]Enc1[/TD]
[/TR]
[TR]
[TD]PRIZMA 4.5GM POWDER FOR INFUSION[/TD]
[TD="align: right"]18/10/2017[/TD]
[TD]2[/TD]
[TD]71.2500[/TD]
[TD]Mr1[/TD]
[TD]Enc1[/TD]
[/TR]
[TR]
[TD]PRIZMA 4.5GM POWDER FOR INFUSION[/TD]
[TD="align: right"]19/10/2017[/TD]
[TD]2[/TD]
[TD]71.2500[/TD]
[TD]Mr1[/TD]
[TD]Enc1[/TD]
[/TR]
[TR]
[TD]CEFAXON 1GM I.V VIAL[/TD]
[TD="align: right"]26/10/2017[/TD]
[TD]2[/TD]
[TD]48.0500[/TD]
[TD]Mr2[/TD]
[TD]Enc2[/TD]
[/TR]
[TR]
[TD]CEFAXON 1GM I.V VIAL[/TD]
[TD="align: right"]27/10/2017[/TD]
[TD]5[/TD]
[TD]48.0500[/TD]
[TD]Mr2[/TD]
[TD]Enc2[/TD]
[/TR]
[TR]
[TD]CEFAXON 1GM I.V VIAL[/TD]
[TD="align: right"]29/10/2017[/TD]
[TD]2[/TD]
[TD]48.0500[/TD]
[TD]Mr2[/TD]
[TD]Enc2[/TD]
[/TR]
[TR]
[TD]CEFAXON 1GM I.V VIAL[/TD]
[TD="align: right"]30/10/2017[/TD]
[TD]2[/TD]
[TD]48.0500[/TD]
[TD]Mr2[/TD]
[TD]Enc2[/TD]
[/TR]
[TR]
[TD]MIACIN 500MG/2ML AMPOULE[/TD]
[TD="align: right"]25/10/2017[/TD]
[TD]5[/TD]
[TD]25.1333[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]COLOMYCIN 2MILLION UNITS VIAL[/TD]
[TD="align: right"]01/10/2017[/TD]
[TD]3[/TD]
[TD]60.0000[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]COLOMYCIN 2MILLION UNITS VIAL[/TD]
[TD="align: right"]02/10/2017[/TD]
[TD]2[/TD]
[TD]60.0000[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]COLOMYCIN 2MILLION UNITS VIAL[/TD]
[TD="align: right"]04/10/2017[/TD]
[TD]2[/TD]
[TD]60.0000[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]COLOMYCIN 2MILLION UNITS VIAL[/TD]
[TD="align: right"]04/10/2017[/TD]
[TD]1[/TD]
[TD]60.0000[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]COLOMYCIN 2MILLION UNITS VIAL[/TD]
[TD="align: right"]05/10/2017[/TD]
[TD]2[/TD]
[TD]60.0000[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]ZYVOx 600MG/300ML injection (Linezolid)[/TD]
[TD="align: right"]05/10/2017[/TD]
[TD]1[/TD]
[TD]301.5800[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]COLOMYCIN 2MILLION UNITS VIAL[/TD]
[TD="align: right"]06/10/2017[/TD]
[TD]2[/TD]
[TD]60.0000[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]PRIZMA 4.5GM POWDER FOR INFUSION[/TD]
[TD="align: right"]07/10/2017[/TD]
[TD]2[/TD]
[TD]71.2500[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]COLOMYCIN 2MILLION UNITS VIAL[/TD]
[TD="align: right"]07/10/2017[/TD]
[TD]1[/TD]
[TD]60.0000[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]MEPRA 1GM POWDER SOLUTION FOR INJECTION[/TD]
[TD="align: right"]08/10/2017[/TD]
[TD]3[/TD]
[TD]43.9900[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]MEPRA 1GM POWDER SOLUTION FOR INJECTION[/TD]
[TD="align: right"]09/10/2017[/TD]
[TD]2[/TD]
[TD]43.9900[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]TARGOPLANIN 200MG INJECTION[/TD]
[TD="align: right"]10/10/2017[/TD]
[TD]4[/TD]
[TD]68.4500[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]MEPRA 1GM POWDER SOLUTION FOR INJECTION[/TD]
[TD="align: right"]10/10/2017[/TD]
[TD]2[/TD]
[TD]43.9900[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]TARGOPLANIN 200MG INJECTION[/TD]
[TD="align: right"]10/10/2017[/TD]
[TD]2[/TD]
[TD]68.4500[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]MEPRA 1GM POWDER SOLUTION FOR INJECTION[/TD]
[TD="align: right"]11/10/2017[/TD]
[TD]2[/TD]
[TD]43.9900[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]TARGOPLANIN 200MG INJECTION[/TD]
[TD="align: right"]11/10/2017[/TD]
[TD]2[/TD]
[TD]68.4500[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]TARGOPLANIN 200MG INJECTION[/TD]
[TD="align: right"]12/10/2017[/TD]
[TD]2[/TD]
[TD]68.4500[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]MEPRA 1GM POWDER SOLUTION FOR INJECTION[/TD]
[TD="align: right"]12/10/2017[/TD]
[TD]2[/TD]
[TD]43.9900[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]MEPRA 1GM POWDER SOLUTION FOR INJECTION[/TD]
[TD="align: right"]13/10/2017[/TD]
[TD]1[/TD]
[TD]43.9900[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]MEPRA 1GM POWDER SOLUTION FOR INJECTION[/TD]
[TD="align: right"]14/10/2017[/TD]
[TD]2[/TD]
[TD]43.9900[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]TARGOPLANIN 200MG INJECTION[/TD]
[TD="align: right"]14/10/2017[/TD]
[TD]2[/TD]
[TD]68.4500[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]TARGOPLANIN 200MG INJECTION[/TD]
[TD="align: right"]15/10/2017[/TD]
[TD]2[/TD]
[TD]68.4500[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]MEPRA 1GM POWDER SOLUTION FOR INJECTION[/TD]
[TD="align: right"]15/10/2017[/TD]
[TD]2[/TD]
[TD]43.9900[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]MEPRA 1GM POWDER SOLUTION FOR INJECTION[/TD]
[TD="align: right"]16/10/2017[/TD]
[TD]2[/TD]
[TD]43.9900[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]TARGOPLANIN 200MG INJECTION[/TD]
[TD="align: right"]16/10/2017[/TD]
[TD]2[/TD]
[TD]68.4500[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]TARGOPLANIN 200MG INJECTION[/TD]
[TD="align: right"]17/10/2017[/TD]
[TD]2[/TD]
[TD]68.4500[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]MEPRA 1GM POWDER SOLUTION FOR INJECTION[/TD]
[TD="align: right"]17/10/2017[/TD]
[TD]2[/TD]
[TD]43.9900[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]MEPRA 1GM POWDER SOLUTION FOR INJECTION[/TD]
[TD="align: right"]18/10/2017[/TD]
[TD]1[/TD]
[TD]43.9900[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]TARGOPLANIN 200MG INJECTION[/TD]
[TD="align: right"]18/10/2017[/TD]
[TD]2[/TD]
[TD]68.4500[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]MEPRA 1GM POWDER SOLUTION FOR INJECTION[/TD]
[TD="align: right"]19/10/2017[/TD]
[TD]2[/TD]
[TD]43.9900[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]TARGOPLANIN 200MG INJECTION[/TD]
[TD="align: right"]19/10/2017[/TD]
[TD]2[/TD]
[TD]68.4500[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]MEPRA 1GM POWDER SOLUTION FOR INJECTION[/TD]
[TD="align: right"]21/10/2017[/TD]
[TD]1[/TD]
[TD]43.9900[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]TARGOPLANIN 200MG INJECTION[/TD]
[TD="align: right"]21/10/2017[/TD]
[TD]2[/TD]
[TD]68.4500[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]MEPRA 1GM POWDER SOLUTION FOR INJECTION[/TD]
[TD="align: right"]22/10/2017[/TD]
[TD]1[/TD]
[TD]43.9900[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]TARGOPLANIN 200MG INJECTION[/TD]
[TD="align: right"]22/10/2017[/TD]
[TD]2[/TD]
[TD]68.4500[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]MEPRA 1GM POWDER SOLUTION FOR INJECTION[/TD]
[TD="align: right"]22/10/2017[/TD]
[TD]2[/TD]
[TD]43.9900[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]TARGOPLANIN 200MG INJECTION[/TD]
[TD="align: right"]23/10/2017[/TD]
[TD]2[/TD]
[TD]68.4500[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]MEPRA 1GM POWDER SOLUTION FOR INJECTION[/TD]
[TD="align: right"]23/10/2017[/TD]
[TD]1[/TD]
[TD]43.9900[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]TARGOPLANIN 200MG INJECTION[/TD]
[TD="align: right"]24/10/2017[/TD]
[TD]2[/TD]
[TD]68.4500[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]MEPRA 1GM POWDER SOLUTION FOR INJECTION[/TD]
[TD="align: right"]24/10/2017[/TD]
[TD]2[/TD]
[TD]43.9900[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]MEPRA 1GM POWDER SOLUTION FOR INJECTION[/TD]
[TD="align: right"]25/10/2017[/TD]
[TD]2[/TD]
[TD]43.9900[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]MEPRA 1GM POWDER SOLUTION FOR INJECTION[/TD]
[TD="align: right"]26/10/2017[/TD]
[TD]6[/TD]
[TD]43.9900[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
[TR]
[TD]TARGOPLANIN 200MG INJECTION[/TD]
[TD="align: right"]27/10/2017[/TD]
[TD]4[/TD]
[TD]68.4500[/TD]
[TD]Mr3[/TD]
[TD]Enc3[/TD]
[/TR]
</tbody>[/TABLE]
 

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)
I would create three columns: array formulas for the min and max dates, and a days counter in the third (+1 to be inclusive of the first day in your example). I messed with the columns in my formulas to convert to US dates, but in your case E would be the MrNo column, and G would be the date column.

From there, you could summarize in a pivot table by putting the MrNo and days columns in the rows section.

Be sure to check out array formulas if you are unfamiliar. You will need to use ctrl+shift+enter.


H=MIN(IF($E$2:$E$1000=E2,$G$2:$G$1000))

I=MAX(IF($E$2:$E$1000=E2,$G$2:$G$1000))

=DAYS(I2,H2)+1
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,200
Members
453,022
Latest member
RobertV1609

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