Excel 2007 on Windows 7
Hi,
I don't know if what I am about to ask is even possible. I kind of think not. But, Mr Excel people have done amazing things for me so far.
Here is the situation:
I have hundreds of files like this one:
https://my.syncplicity.com/share/bbxisyzjvs/WV_macro_applied.xlsm
The first sheet is a bunch of legal case information, spread out over hundreds of rows in column A.
The second sheet is always called "Report". It has taken the information from the first sheet and nicely put every case into its own row, separating data into it proper column. Super kudos to Rick Rothstein and Sektor for those codes.
One further transformation is necessary. I have resigned myself to thinking I will have to do this by hand, but maybe someone can surprise me. The last column of the second sheet contains the voting records of the judges on the case. Those need to be coded into 1,0, and 9.
A 1 means that the judge voted in the majority (or concurred)in the case.
A 0 means that the judge voted in the minority (dissented) in the case.
A 9 means that the judge did not vote or did not participate.
In a separate sheet, needs to be the following:
The list of docket numbers (always going to be column B from the "report" sheet) transposed to go on row A of the new "Binary" sheet.
Then magic occurs. The judges’ votes (always in column E of the Report sheet) in each case need to be put into the 0,1,9 category. There can be no other information in the "binary" sheet (per the requirements of the statistical program later used to process this stuff).
Problem is, the formatting is not beautiful. And they vary state by state. Here are three example files where I translated by hand, the judges’ votes from the “Report” sheet to the “Binary” sheet I created. (On two of them, I only did the first 5)
https://my.syncplicity.com/share/6xwkn0vp31/FL_cases_macro_applied.xlsm
https://my.syncplicity.com/share/gbe5eiem8e/VT_cases_macro_applied.xlsm
https://my.syncplicity.com/share/bbxisyzjvs/WV_macro_applied.xlsm
They can look like anything from the typical (I would venture to guess 75% of them look like this):
Adkins, C.J., and Roberts, Overton and Hatchett, JJ., concur. Boyd, J., dissents....
{So, obviously Adkins, Roberts, Overton, and Hatchett would all get a 1. Boyd would get a 0.
- to a little more complex
England, Justice. Boyd, Overton and Sundberg, JJ., concur. Adkins, C.J., dissents with an opinion, with which Chappell, Circuit Judge, concurs. ...
{Here, Boyd, Overton, and Sundberg get 1s, while Adkins and Chappell get 0s.}
- to really complicated
Adkins, Chief Justice. McCain, J., and McCrary and Lee, Circuit Court Judges, concur. Overton, J., concurring in part and dissenting in part with opinion with which Drew (Retired), J., concurs.
{Here, Adkins, McCain, McCrary and Lee get 1s. Overton and Drew get 0s. Even a partial dissent is to be coded as dissent.}
=====
So from those example files you can see what an end product needs to be. 1,0, and 9s. Deceivingly simple sounding.
I will update this post with my thoughts and experiences as I try to apply a good solution to save me weeks, possibly months! of time.
Even anything that can automate or help part of this problem would be extremely appreciated. Even just thoughts about how to go about approaching it in the most efficient way would help.
Questions, thoughts, encouragement:
Reply to this post and/or
dsguenth [at] wustl.edu
Hi,
I don't know if what I am about to ask is even possible. I kind of think not. But, Mr Excel people have done amazing things for me so far.
Here is the situation:
I have hundreds of files like this one:
https://my.syncplicity.com/share/bbxisyzjvs/WV_macro_applied.xlsm
The first sheet is a bunch of legal case information, spread out over hundreds of rows in column A.
The second sheet is always called "Report". It has taken the information from the first sheet and nicely put every case into its own row, separating data into it proper column. Super kudos to Rick Rothstein and Sektor for those codes.
One further transformation is necessary. I have resigned myself to thinking I will have to do this by hand, but maybe someone can surprise me. The last column of the second sheet contains the voting records of the judges on the case. Those need to be coded into 1,0, and 9.
A 1 means that the judge voted in the majority (or concurred)in the case.
A 0 means that the judge voted in the minority (dissented) in the case.
A 9 means that the judge did not vote or did not participate.
In a separate sheet, needs to be the following:
The list of docket numbers (always going to be column B from the "report" sheet) transposed to go on row A of the new "Binary" sheet.
Then magic occurs. The judges’ votes (always in column E of the Report sheet) in each case need to be put into the 0,1,9 category. There can be no other information in the "binary" sheet (per the requirements of the statistical program later used to process this stuff).
Problem is, the formatting is not beautiful. And they vary state by state. Here are three example files where I translated by hand, the judges’ votes from the “Report” sheet to the “Binary” sheet I created. (On two of them, I only did the first 5)
https://my.syncplicity.com/share/6xwkn0vp31/FL_cases_macro_applied.xlsm
https://my.syncplicity.com/share/gbe5eiem8e/VT_cases_macro_applied.xlsm
https://my.syncplicity.com/share/bbxisyzjvs/WV_macro_applied.xlsm
They can look like anything from the typical (I would venture to guess 75% of them look like this):
Adkins, C.J., and Roberts, Overton and Hatchett, JJ., concur. Boyd, J., dissents....
{So, obviously Adkins, Roberts, Overton, and Hatchett would all get a 1. Boyd would get a 0.
- to a little more complex
England, Justice. Boyd, Overton and Sundberg, JJ., concur. Adkins, C.J., dissents with an opinion, with which Chappell, Circuit Judge, concurs. ...
{Here, Boyd, Overton, and Sundberg get 1s, while Adkins and Chappell get 0s.}
- to really complicated
Adkins, Chief Justice. McCain, J., and McCrary and Lee, Circuit Court Judges, concur. Overton, J., concurring in part and dissenting in part with opinion with which Drew (Retired), J., concurs.
{Here, Adkins, McCain, McCrary and Lee get 1s. Overton and Drew get 0s. Even a partial dissent is to be coded as dissent.}
=====
So from those example files you can see what an end product needs to be. 1,0, and 9s. Deceivingly simple sounding.
I will update this post with my thoughts and experiences as I try to apply a good solution to save me weeks, possibly months! of time.
Even anything that can automate or help part of this problem would be extremely appreciated. Even just thoughts about how to go about approaching it in the most efficient way would help.
Questions, thoughts, encouragement:
Reply to this post and/or
dsguenth [at] wustl.edu