BrisAdrian
New Member
- Joined
- Sep 5, 2015
- Messages
- 22
I've been working on this monster (monster to me) Excel for over a month. I'm not an IT person (Paramedic by trade) and the bosses keep shifting the ground under my feet.
I've had some great help from a few people over the last week and I had what I thought was a workable solution.
I've sat down with the boss and told him that what we REALLY need is an Excel professional consultant to come in and do this. But they will not pay for it and I'm left struggling with this train wreck.
I need this database up and running so that I can get on with providing healthcare instead of laboriously entering data manually, and opening my self up to human error.
The Skeleton is there and to a degree it almost does what I need it to. But I keep tripping up in VBA.
So if you've read this far, and you have some time to kill here is the task at hand.
Here is what I currently have: https://app.box.com/s/1po645hp5t25y2ixdk5suif5fs3nf4ov
Task 1:
In Sheet: "Update"
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Column[/TD]
[TD]Purpose[/TD]
[TD]Note[/TD]
[/TR]
[TR]
[TD]E2[/TD]
[TD]Reference Cell[/TD]
[TD]Find in Coulmn A of "Master" as reference point[/TD]
[/TR]
[TR]
[TD]E10[/TD]
[TD]Date[/TD]
[TD]Copy into a new instance starting in Column 'W' of master[/TD]
[/TR]
[TR]
[TD]E12[/TD]
[TD]General Number[/TD]
[TD]Copy into a new instance starting to the right of the date from [E10].
[E10]|[E12] need to go in sequence as a new entry every time this macro is run[/TD]
[/TR]
[TR]
[TD]E14[/TD]
[TD]General Number[/TD]
[TD]Bring up the value that is currently in Column 'V' in "Master" and replace that value with the value entered in [E14] every time this macro is run[/TD]
[/TR]
[TR]
[TD]E20[/TD]
[TD]Date[/TD]
[TD]Replace the value in 'M' of master sheet[/TD]
[/TR]
[TR]
[TD]E22[/TD]
[TD]Text[/TD]
[TD]Replace the value of 'O' in master sheet[/TD]
[/TR]
</tbody>[/TABLE]
Task 2:
In Sheet "Add"
Copy the data from all entry cells [E2],[E4],[E6],[E8] etc up to [E24].
Reference [E2]. If that number already exists in Column 'A' of "Master" bring up an alert and prevent the action from completing.
If it does not exist in Column 'A', enter the value of [E2] into the first empty row in 'A' of "Master". Then enter the remaining data from the Sheet "Add" to the adjacent cells in the matching row in "Master".
This macro also needs to copy the Formulas from "Master" Columns 'N','P',and 'U' down into the newly created Employee Data Row. (these formula's tell me when the employee's need particular health exams performed).
This macro also needs to reset all filters from "Master" before executing any data entry. Previously I had people entering people they thought were not in the list because they didn't realize they had filters on.
It would also be beneficial if the macro would auto fill any empty cells from the Sheet "Add" with "No Data" if a user fails to enter Data. Almost everyone that attempted to enter data complained that they did not have the data. It will be easier for me to Search "No Data" in the master sheet and then manually enter it at a later time, than to try and get 5 or 6 people to be proactive.
Task 3:
In Sheet "History
This one seems to be pretty much what I need. However I also need it to bring up the most recent results from an employee's "Master" record.
So that I can create a graph. Several people did not understand if their health was improving or not based on numerical data.
I tried some formulas to look at Column 'ZZ' in "Master" then look back to the first data entry. And bring that up ie:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Result[/TD]
[/TR]
[TR]
[TD]1/5/15[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]1/4/15[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]1/1/14[/TD]
[TD]6[/TD]
[/TR]
</tbody>[/TABLE]
Coming from a persons history that would be in "Master" as:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]W[/TD]
[TD]X[/TD]
[TD]Y[/TD]
[TD]Z[/TD]
[TD]AA[/TD]
[TD]AB[/TD]
[/TR]
[TR]
[TD]1/1/14[/TD]
[TD]6[/TD]
[TD]1/4/15[/TD]
[TD]5[/TD]
[TD]1/5/15[/TD]
[TD]8[/TD]
[/TR]
</tbody>[/TABLE]
I could then us that to create a simple line graph on the "History" sheet.
Task 4:
In Sheet "EOM-Department"
Currently I am providing weekly reports to different managers by manually filtering departments, test type and then selecting any overdue tests and pasting that into an email for the bosses.
I have been trying to automate this on this sheet.
The goal is to use 2 Drop down lists and a parameter for one of those lists:
List 1: Departments (6 or so of these) List 2: Health Screen (3 of these, this is where I want there to be a parameter)
So that if I select [Management] and [Health Assessment] - (the parameter for health assessment being anything that was due before today) A list will be populated with the data of only those employee's to meet the criteria:
Have [Management] in their "Reporting Group"(Column 'G') on the "Master" sheet, AND have Health Assessments which are overdue Column 'N' for example.
Currently I set aside half to 3/4 of a day to give these reports to the relevant supervisors so that individuals can be notified. Yet they are plagued with human error.
The conditions I am trying to add in are based on the data in the "Master" sheet:
"Blood Lead Screening" Column 'R' is Date =<today()
"Blood Lead Result" Column "E"="m" AND "R"=>15 or <30 / "E"="f" AND "R"=>5 or <10
"Health Assessment" Column 'N' is Date =<today()
< TODAY()
"Blood Lead Testing" Column 'U' is Date = <TODAY()
I've uploaded it to Box with (hopefully) all Macro's included. Though I think they are a hindrance more than an aid since I have been attempting to tweak them to suit the new layout.
Any help is greatly appreciated, I will continue to read "Excel VBA Programming for dummies" and I will also continue to google the hell out of this, but with any luck one of you VBA Wizard will be able to get me over the line.
Special thanks to:
MARK858anddmt32 who's VBA I'm already using in the sheet, and was doing exactly what I needed it to. Before the goal posts got moved.</today()
</today()
I've had some great help from a few people over the last week and I had what I thought was a workable solution.
I've sat down with the boss and told him that what we REALLY need is an Excel professional consultant to come in and do this. But they will not pay for it and I'm left struggling with this train wreck.
I need this database up and running so that I can get on with providing healthcare instead of laboriously entering data manually, and opening my self up to human error.
The Skeleton is there and to a degree it almost does what I need it to. But I keep tripping up in VBA.
So if you've read this far, and you have some time to kill here is the task at hand.
Here is what I currently have: https://app.box.com/s/1po645hp5t25y2ixdk5suif5fs3nf4ov
Task 1:
In Sheet: "Update"
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Column[/TD]
[TD]Purpose[/TD]
[TD]Note[/TD]
[/TR]
[TR]
[TD]E2[/TD]
[TD]Reference Cell[/TD]
[TD]Find in Coulmn A of "Master" as reference point[/TD]
[/TR]
[TR]
[TD]E10[/TD]
[TD]Date[/TD]
[TD]Copy into a new instance starting in Column 'W' of master[/TD]
[/TR]
[TR]
[TD]E12[/TD]
[TD]General Number[/TD]
[TD]Copy into a new instance starting to the right of the date from [E10].
[E10]|[E12] need to go in sequence as a new entry every time this macro is run[/TD]
[/TR]
[TR]
[TD]E14[/TD]
[TD]General Number[/TD]
[TD]Bring up the value that is currently in Column 'V' in "Master" and replace that value with the value entered in [E14] every time this macro is run[/TD]
[/TR]
[TR]
[TD]E20[/TD]
[TD]Date[/TD]
[TD]Replace the value in 'M' of master sheet[/TD]
[/TR]
[TR]
[TD]E22[/TD]
[TD]Text[/TD]
[TD]Replace the value of 'O' in master sheet[/TD]
[/TR]
</tbody>[/TABLE]
Task 2:
In Sheet "Add"
Copy the data from all entry cells [E2],[E4],[E6],[E8] etc up to [E24].
Reference [E2]. If that number already exists in Column 'A' of "Master" bring up an alert and prevent the action from completing.
If it does not exist in Column 'A', enter the value of [E2] into the first empty row in 'A' of "Master". Then enter the remaining data from the Sheet "Add" to the adjacent cells in the matching row in "Master".
This macro also needs to copy the Formulas from "Master" Columns 'N','P',and 'U' down into the newly created Employee Data Row. (these formula's tell me when the employee's need particular health exams performed).
This macro also needs to reset all filters from "Master" before executing any data entry. Previously I had people entering people they thought were not in the list because they didn't realize they had filters on.
It would also be beneficial if the macro would auto fill any empty cells from the Sheet "Add" with "No Data" if a user fails to enter Data. Almost everyone that attempted to enter data complained that they did not have the data. It will be easier for me to Search "No Data" in the master sheet and then manually enter it at a later time, than to try and get 5 or 6 people to be proactive.
Task 3:
In Sheet "History
This one seems to be pretty much what I need. However I also need it to bring up the most recent results from an employee's "Master" record.
So that I can create a graph. Several people did not understand if their health was improving or not based on numerical data.
I tried some formulas to look at Column 'ZZ' in "Master" then look back to the first data entry. And bring that up ie:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Result[/TD]
[/TR]
[TR]
[TD]1/5/15[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]1/4/15[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]1/1/14[/TD]
[TD]6[/TD]
[/TR]
</tbody>[/TABLE]
Coming from a persons history that would be in "Master" as:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]W[/TD]
[TD]X[/TD]
[TD]Y[/TD]
[TD]Z[/TD]
[TD]AA[/TD]
[TD]AB[/TD]
[/TR]
[TR]
[TD]1/1/14[/TD]
[TD]6[/TD]
[TD]1/4/15[/TD]
[TD]5[/TD]
[TD]1/5/15[/TD]
[TD]8[/TD]
[/TR]
</tbody>[/TABLE]
I could then us that to create a simple line graph on the "History" sheet.
Task 4:
In Sheet "EOM-Department"
Currently I am providing weekly reports to different managers by manually filtering departments, test type and then selecting any overdue tests and pasting that into an email for the bosses.
I have been trying to automate this on this sheet.
The goal is to use 2 Drop down lists and a parameter for one of those lists:
List 1: Departments (6 or so of these) List 2: Health Screen (3 of these, this is where I want there to be a parameter)
So that if I select [Management] and [Health Assessment] - (the parameter for health assessment being anything that was due before today) A list will be populated with the data of only those employee's to meet the criteria:
Have [Management] in their "Reporting Group"(Column 'G') on the "Master" sheet, AND have Health Assessments which are overdue Column 'N' for example.
Currently I set aside half to 3/4 of a day to give these reports to the relevant supervisors so that individuals can be notified. Yet they are plagued with human error.
The conditions I am trying to add in are based on the data in the "Master" sheet:
"Blood Lead Screening" Column 'R' is Date =<today()
"Blood Lead Result" Column "E"="m" AND "R"=>15 or <30 / "E"="f" AND "R"=>5 or <10
"Health Assessment" Column 'N' is Date =<today()
< TODAY()
"Blood Lead Testing" Column 'U' is Date = <TODAY()
I've uploaded it to Box with (hopefully) all Macro's included. Though I think they are a hindrance more than an aid since I have been attempting to tweak them to suit the new layout.
Any help is greatly appreciated, I will continue to read "Excel VBA Programming for dummies" and I will also continue to google the hell out of this, but with any luck one of you VBA Wizard will be able to get me over the line.
Special thanks to:
MARK858anddmt32 who's VBA I'm already using in the sheet, and was doing exactly what I needed it to. Before the goal posts got moved.</today()
</today()
Last edited: