claytont454
New Member
- Joined
- Feb 28, 2013
- Messages
- 8
I'm hoping someone here knows a better way than my current method that takes about 6 hours of messing around between Excel and Access as a beginner/intermediate user.
I'm working with a table that is about 15000 rows by 18 columns.
Column A is a person's initials, and the rest of the row shows a code for different activities that person did in a single day.
Since this represents several months, each person's initials appears in column A of the table many times.
Sometimes they only have 1 activity for the day, or they may have 15 or 20 in a day.
There are thousands of potential "codes" that may appear in the rest of the columns, and each has a specific meaning.
This is from the healthcare world, so some codes start with a 0, others start with a letter, and they may have one or two or no decimals, and each is meaningful.
My task is to create a list for each person that shows how many times each code appeared for them on all the days represented. Here is a short snippet of my raw data (this is junk data, so there's no confidentiality issues):
[TABLE="width: 822"]
<tbody>[TR]
[TD]Name[/TD]
[TD]SDC[/TD]
[TD]SDC1[/TD]
[TD]SDC2[/TD]
[TD]SDC3[/TD]
[TD]SDC4[/TD]
[TD]SDC5[/TD]
[TD]SDC6[/TD]
[TD]SDC7[/TD]
[TD]SDC8[/TD]
[TD]SDC9[/TD]
[TD]SDC10[/TD]
[TD]SDC11[/TD]
[/TR]
[TR]
[TD]MB[/TD]
[TD]729.5[/TD]
[TD]V57.1[/TD]
[TD]V12.72[/TD]
[TD] 414.00[/TD]
[TD] 250.00[/TD]
[TD] 401.1[/TD]
[TD] 272.4[/TD]
[TD] 333.94[/TD]
[TD] 600.90[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]MM[/TD]
[TD]729.5[/TD]
[TD]719.41[/TD]
[TD] V57.1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DLV[/TD]
[TD]724.2[/TD]
[TD]V57.1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AEB[/TD]
[TD]723.1[/TD]
[TD]781.2[/TD]
[TD] V57.1[/TD]
[TD] 295.90[/TD]
[TD] 318.0[/TD]
[TD] 781.0[/TD]
[TD] 715.96[/TD]
[TD] 244.9[/TD]
[TD] 401.9[/TD]
[TD] 272.4[/TD]
[TD] V74.1[/TD]
[TD] V04.81[/TD]
[/TR]
[TR]
[TD]AS[/TD]
[TD]727.41[/TD]
[TD]V57.21[/TD]
[TD] 354.0[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SLM[/TD]
[TD]959.4[/TD]
[TD]V57.21[/TD]
[TD] V62.84[/TD]
[TD] V62.85[/TD]
[TD] 244.9[/TD]
[TD] 493.90[/TD]
[TD] 304.80[/TD]
[TD] 296.90[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]TM[/TD]
[TD]340[/TD]
[TD]729.89[/TD]
[TD] 726.2[/TD]
[TD] V57.1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]MB[/TD]
[TD]V76.51[/TD]
[TD]562.10[/TD]
[TD] V16.0[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]JK[/TD]
[TD]847[/TD]
[TD]V57.1[/TD]
[TD]569.0[/TD]
[TD] 455.2[/TD]
[TD] 455.3[/TD]
[TD] V16.0[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AH[/TD]
[TD]840.9[/TD]
[TD]V57.1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]... [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
When I sort by Column A, 'MB' might have 75 rows, 'AEB' might have 113 rows, and so on. In the end, I want to show them sorted like this with each value and how many times it appears for that person, then the next person and the same list for them. The ideal would be to just show the top 10 for each, but that may be too much to ask.
AEB [TABLE="width: 378"]
<tbody>[TR]
[TD]E000.9[/TD]
[TD="align: right"]15[/TD]
[/TR]
[TR]
[TD]558.9[/TD]
[TD="align: right"]8[/TD]
[/TR]
[TR]
[TD]401.9[/TD]
[TD="align: right"]8[/TD]
[/TR]
[TR]
[TD]E849.0[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]276.51[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]E849.9[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]250[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]780.6[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]303[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]79.99[/TD]
[TD="align: right"]5[/TD]
[/TR]
</tbody>[/TABLE]
MM
[TABLE="width: 378"]
<tbody>[TR]
[TD]V76.44[/TD]
[TD="align: right"]19[/TD]
[/TR]
[TR]
[TD]V65.3[/TD]
[TD="align: right"]18[/TD]
[/TR]
[TR]
[TD]733[/TD]
[TD="align: right"]18[/TD]
[/TR]
[TR]
[TD]780.79[/TD]
[TD="align: right"]17[/TD]
[/TR]
[TR]
[TD]414[/TD]
[TD="align: right"]17[/TD]
[/TR]
[TR]
[TD]211.3[/TD]
[TD="align: right"]16[/TD]
[/TR]
[TR]
[TD]599[/TD]
[TD="align: right"]16[/TD]
[/TR]
[TR]
[TD]300[/TD]
[TD="align: right"]16[/TD]
[/TR]
[TR]
[TD]276.1[/TD]
[TD="align: right"]15[/TD]
[/TR]
[TR]
[TD]724.5[/TD]
[TD="align: right"]15[/TD]
[/TR]
</tbody>[/TABLE]
and so on. Any help you can offer is appreciated!!!
I'm working with a table that is about 15000 rows by 18 columns.
Column A is a person's initials, and the rest of the row shows a code for different activities that person did in a single day.
Since this represents several months, each person's initials appears in column A of the table many times.
Sometimes they only have 1 activity for the day, or they may have 15 or 20 in a day.
There are thousands of potential "codes" that may appear in the rest of the columns, and each has a specific meaning.
This is from the healthcare world, so some codes start with a 0, others start with a letter, and they may have one or two or no decimals, and each is meaningful.
My task is to create a list for each person that shows how many times each code appeared for them on all the days represented. Here is a short snippet of my raw data (this is junk data, so there's no confidentiality issues):
[TABLE="width: 822"]
<tbody>[TR]
[TD]Name[/TD]
[TD]SDC[/TD]
[TD]SDC1[/TD]
[TD]SDC2[/TD]
[TD]SDC3[/TD]
[TD]SDC4[/TD]
[TD]SDC5[/TD]
[TD]SDC6[/TD]
[TD]SDC7[/TD]
[TD]SDC8[/TD]
[TD]SDC9[/TD]
[TD]SDC10[/TD]
[TD]SDC11[/TD]
[/TR]
[TR]
[TD]MB[/TD]
[TD]729.5[/TD]
[TD]V57.1[/TD]
[TD]V12.72[/TD]
[TD] 414.00[/TD]
[TD] 250.00[/TD]
[TD] 401.1[/TD]
[TD] 272.4[/TD]
[TD] 333.94[/TD]
[TD] 600.90[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]MM[/TD]
[TD]729.5[/TD]
[TD]719.41[/TD]
[TD] V57.1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DLV[/TD]
[TD]724.2[/TD]
[TD]V57.1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AEB[/TD]
[TD]723.1[/TD]
[TD]781.2[/TD]
[TD] V57.1[/TD]
[TD] 295.90[/TD]
[TD] 318.0[/TD]
[TD] 781.0[/TD]
[TD] 715.96[/TD]
[TD] 244.9[/TD]
[TD] 401.9[/TD]
[TD] 272.4[/TD]
[TD] V74.1[/TD]
[TD] V04.81[/TD]
[/TR]
[TR]
[TD]AS[/TD]
[TD]727.41[/TD]
[TD]V57.21[/TD]
[TD] 354.0[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SLM[/TD]
[TD]959.4[/TD]
[TD]V57.21[/TD]
[TD] V62.84[/TD]
[TD] V62.85[/TD]
[TD] 244.9[/TD]
[TD] 493.90[/TD]
[TD] 304.80[/TD]
[TD] 296.90[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]TM[/TD]
[TD]340[/TD]
[TD]729.89[/TD]
[TD] 726.2[/TD]
[TD] V57.1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]MB[/TD]
[TD]V76.51[/TD]
[TD]562.10[/TD]
[TD] V16.0[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]JK[/TD]
[TD]847[/TD]
[TD]V57.1[/TD]
[TD]569.0[/TD]
[TD] 455.2[/TD]
[TD] 455.3[/TD]
[TD] V16.0[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AH[/TD]
[TD]840.9[/TD]
[TD]V57.1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]... [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
When I sort by Column A, 'MB' might have 75 rows, 'AEB' might have 113 rows, and so on. In the end, I want to show them sorted like this with each value and how many times it appears for that person, then the next person and the same list for them. The ideal would be to just show the top 10 for each, but that may be too much to ask.
AEB [TABLE="width: 378"]
<tbody>[TR]
[TD]E000.9[/TD]
[TD="align: right"]15[/TD]
[/TR]
[TR]
[TD]558.9[/TD]
[TD="align: right"]8[/TD]
[/TR]
[TR]
[TD]401.9[/TD]
[TD="align: right"]8[/TD]
[/TR]
[TR]
[TD]E849.0[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]276.51[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]E849.9[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]250[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]780.6[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]303[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]79.99[/TD]
[TD="align: right"]5[/TD]
[/TR]
</tbody>[/TABLE]
MM
[TABLE="width: 378"]
<tbody>[TR]
[TD]V76.44[/TD]
[TD="align: right"]19[/TD]
[/TR]
[TR]
[TD]V65.3[/TD]
[TD="align: right"]18[/TD]
[/TR]
[TR]
[TD]733[/TD]
[TD="align: right"]18[/TD]
[/TR]
[TR]
[TD]780.79[/TD]
[TD="align: right"]17[/TD]
[/TR]
[TR]
[TD]414[/TD]
[TD="align: right"]17[/TD]
[/TR]
[TR]
[TD]211.3[/TD]
[TD="align: right"]16[/TD]
[/TR]
[TR]
[TD]599[/TD]
[TD="align: right"]16[/TD]
[/TR]
[TR]
[TD]300[/TD]
[TD="align: right"]16[/TD]
[/TR]
[TR]
[TD]276.1[/TD]
[TD="align: right"]15[/TD]
[/TR]
[TR]
[TD]724.5[/TD]
[TD="align: right"]15[/TD]
[/TR]
</tbody>[/TABLE]
and so on. Any help you can offer is appreciated!!!