I would like to perform a count of data, based on the number of times an item is referenced. On one sheet I have the items I wish to count, the data on a second, and the references in a third.
My data returns a number for the column i would like to count, but this needs to be 'interpreted' into a category. Any help would be appreciated
Data:
[TABLE="width: 429"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]Time of Incident[/TD]
[TD]Type of Incident[/TD]
[TD]Mechanism of Accident:[/TD]
[TD]Treatment of Injury[/TD]
[/TR]
[TR]
[TD]10:50am[/TD]
[TD]Accident[/TD]
[TD]5[/TD]
[TD]First aid only[/TD]
[/TR]
[TR]
[TD]11:10am[/TD]
[TD]Accident[/TD]
[TD]5[/TD]
[TD]First aid only[/TD]
[/TR]
[TR]
[TD]12:00am[/TD]
[TD]Discomfort[/TD]
[TD]3[/TD]
[TD]None[/TD]
[/TR]
[TR]
[TD]9:00am[/TD]
[TD]Accident[/TD]
[TD]5[/TD]
[TD]First aid only[/TD]
[/TR]
[TR]
[TD]3:00pm[/TD]
[TD]Discomfort[/TD]
[TD]8[/TD]
[TD]None[/TD]
[/TR]
[TR]
[TD]10:00am[/TD]
[TD]Discomfort[/TD]
[TD]3[/TD]
[TD]None[/TD]
[/TR]
[TR]
[TD]6:15am[/TD]
[TD]Discomfort[/TD]
[TD]6[/TD]
[TD]Hospitalisation[/TD]
[/TR]
[TR]
[TD]3:10pm[/TD]
[TD]Discomfort[/TD]
[TD]3[/TD]
[TD]None[/TD]
[/TR]
[TR]
[TD]3:30pm[/TD]
[TD]Near Miss[/TD]
[TD]9[/TD]
[TD]None[/TD]
[/TR]
[TR]
[TD]3:46am[/TD]
[TD]Accident[/TD]
[TD]5[/TD]
[TD]First aid only[/TD]
[/TR]
[TR]
[TD]2:30am[/TD]
[TD]Discomfort[/TD]
[TD]3[/TD]
[TD]None[/TD]
[/TR]
[TR]
[TD]1:00am[/TD]
[TD]Accident[/TD]
[TD]5[/TD]
[TD]None[/TD]
[/TR]
[TR]
[TD]7:00am[/TD]
[TD]Near Miss[/TD]
[TD]9[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Reference:
[TABLE="width: 249"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD="colspan: 2"]Mechanism of Accident[/TD]
[/TR]
[TR]
[TD]1 [/TD]
[TD]Fall, trip or slip[/TD]
[/TR]
[TR]
[TD]2 [/TD]
[TD]Sound or pressure[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Body stressing[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Mental stress[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Hitting objects with part of the body[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Biological factors[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Heat, radiation or energy[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Chemical or other substances[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]Being hit by moving objects[/TD]
[/TR]
</tbody>[/TABLE]
Analysis: (where I want it to say how many times each item has occurred in the data)
[TABLE="width: 235"]
<colgroup><col></colgroup><tbody>[TR]
[TD]Mechanism of accident[/TD]
[/TR]
[TR]
[TD]Fall, trip or slip[/TD]
[/TR]
[TR]
[TD]Sound or pressure[/TD]
[/TR]
[TR]
[TD]Body stressing[/TD]
[/TR]
[TR]
[TD]Mental stress[/TD]
[/TR]
[TR]
[TD]Hitting objects with part of the body[/TD]
[/TR]
[TR]
[TD]Biological factors[/TD]
[/TR]
[TR]
[TD]Heat, radiation or energy[/TD]
[/TR]
[TR]
[TD]Chemical or other substances[/TD]
[/TR]
[TR]
[TD]Being hit by moving objects[/TD]
[/TR]
</tbody>[/TABLE]
T.I.A.
My data returns a number for the column i would like to count, but this needs to be 'interpreted' into a category. Any help would be appreciated
Data:
[TABLE="width: 429"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]Time of Incident[/TD]
[TD]Type of Incident[/TD]
[TD]Mechanism of Accident:[/TD]
[TD]Treatment of Injury[/TD]
[/TR]
[TR]
[TD]10:50am[/TD]
[TD]Accident[/TD]
[TD]5[/TD]
[TD]First aid only[/TD]
[/TR]
[TR]
[TD]11:10am[/TD]
[TD]Accident[/TD]
[TD]5[/TD]
[TD]First aid only[/TD]
[/TR]
[TR]
[TD]12:00am[/TD]
[TD]Discomfort[/TD]
[TD]3[/TD]
[TD]None[/TD]
[/TR]
[TR]
[TD]9:00am[/TD]
[TD]Accident[/TD]
[TD]5[/TD]
[TD]First aid only[/TD]
[/TR]
[TR]
[TD]3:00pm[/TD]
[TD]Discomfort[/TD]
[TD]8[/TD]
[TD]None[/TD]
[/TR]
[TR]
[TD]10:00am[/TD]
[TD]Discomfort[/TD]
[TD]3[/TD]
[TD]None[/TD]
[/TR]
[TR]
[TD]6:15am[/TD]
[TD]Discomfort[/TD]
[TD]6[/TD]
[TD]Hospitalisation[/TD]
[/TR]
[TR]
[TD]3:10pm[/TD]
[TD]Discomfort[/TD]
[TD]3[/TD]
[TD]None[/TD]
[/TR]
[TR]
[TD]3:30pm[/TD]
[TD]Near Miss[/TD]
[TD]9[/TD]
[TD]None[/TD]
[/TR]
[TR]
[TD]3:46am[/TD]
[TD]Accident[/TD]
[TD]5[/TD]
[TD]First aid only[/TD]
[/TR]
[TR]
[TD]2:30am[/TD]
[TD]Discomfort[/TD]
[TD]3[/TD]
[TD]None[/TD]
[/TR]
[TR]
[TD]1:00am[/TD]
[TD]Accident[/TD]
[TD]5[/TD]
[TD]None[/TD]
[/TR]
[TR]
[TD]7:00am[/TD]
[TD]Near Miss[/TD]
[TD]9[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Reference:
[TABLE="width: 249"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD="colspan: 2"]Mechanism of Accident[/TD]
[/TR]
[TR]
[TD]1 [/TD]
[TD]Fall, trip or slip[/TD]
[/TR]
[TR]
[TD]2 [/TD]
[TD]Sound or pressure[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Body stressing[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Mental stress[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Hitting objects with part of the body[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Biological factors[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Heat, radiation or energy[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Chemical or other substances[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]Being hit by moving objects[/TD]
[/TR]
</tbody>[/TABLE]
Analysis: (where I want it to say how many times each item has occurred in the data)
[TABLE="width: 235"]
<colgroup><col></colgroup><tbody>[TR]
[TD]Mechanism of accident[/TD]
[/TR]
[TR]
[TD]Fall, trip or slip[/TD]
[/TR]
[TR]
[TD]Sound or pressure[/TD]
[/TR]
[TR]
[TD]Body stressing[/TD]
[/TR]
[TR]
[TD]Mental stress[/TD]
[/TR]
[TR]
[TD]Hitting objects with part of the body[/TD]
[/TR]
[TR]
[TD]Biological factors[/TD]
[/TR]
[TR]
[TD]Heat, radiation or energy[/TD]
[/TR]
[TR]
[TD]Chemical or other substances[/TD]
[/TR]
[TR]
[TD]Being hit by moving objects[/TD]
[/TR]
</tbody>[/TABLE]
T.I.A.