Ok, first of all, thanks for any help.
Let me explain the problem. I weekly have to compile a report per employee on there accomplishments, oppurtunities and then list their accomplishments in an actionplan as achievements.
So I made a file with 3 sheets, accomplishments, oppurtunities and actionplan where I typed every single accomplishment or opppurtunity.
Now based on the data, I wanted excell to hide either rows in accomplishment or in oppurtunities and the check if if it was an accomplishment, list it in the actionplan.
It worked reasonably. My problem came when the value achieved meets the exact target. (lets say target is 100 and he achieved 100)
I tried everything. >=. made AND statement > +
But nothing seems to work. I think I need more advanced programming with variables. Here is the code. I can email you the file on request.
Absenteism: Attendance (100%)
Schedule Adherance: Breaks (105% maximum or less)<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
Punctuality (100%)
Productivity: Hold (5% maximum or less)<o></o>
Wrap up (4 minutes or less)<o></o>
AHT (17 minutes or less)<o></o>
Call tagging (100%)<o></o>
Occupancy (more or equal than 70%)<o></o>
RNT usage (more or equal than 100%, up to 200%+)
Requeed Calls (15 or less maximum per week)<o></o>
Quality: Monitoring (more or equal than 85%)<o></o>
CSAT (more or equal than 85%)<o></o>
Let me explain the problem. I weekly have to compile a report per employee on there accomplishments, oppurtunities and then list their accomplishments in an actionplan as achievements.
So I made a file with 3 sheets, accomplishments, oppurtunities and actionplan where I typed every single accomplishment or opppurtunity.
Now based on the data, I wanted excell to hide either rows in accomplishment or in oppurtunities and the check if if it was an accomplishment, list it in the actionplan.
It worked reasonably. My problem came when the value achieved meets the exact target. (lets say target is 100 and he achieved 100)
I tried everything. >=. made AND statement > +
But nothing seems to work. I think I need more advanced programming with variables. Here is the code. I can email you the file on request.
Absenteism: Attendance (100%)
Schedule Adherance: Breaks (105% maximum or less)<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
Punctuality (100%)
Productivity: Hold (5% maximum or less)<o></o>
Wrap up (4 minutes or less)<o></o>
AHT (17 minutes or less)<o></o>
Call tagging (100%)<o></o>
Occupancy (more or equal than 70%)<o></o>
RNT usage (more or equal than 100%, up to 200%+)
Requeed Calls (15 or less maximum per week)<o></o>
Quality: Monitoring (more or equal than 85%)<o></o>
CSAT (more or equal than 85%)<o></o>
Code:
Sub ValidationAccomplishments()
If Worksheets("Accomplishments").Range("J5").Value < 100 Then
Worksheets("Accomplishments").Rows("5:8").EntireRow.Hidden = True
Worksheets("Actionplan").Rows("6:7").EntireRow.Hidden = True
Worksheets("Oppurtunities").Rows("5:8").EntireRow.Hidden = False
Else
End If
If Worksheets("Accomplishments").Range("J5").Value = 100 Then
Worksheets("Accomplishments").Rows("5:8").EntireRow.Hidden = False
Worksheets("Actionplan").Rows("6:7").EntireRow.Hidden = False
Worksheets("Oppurtunities").Rows("5:8").EntireRow.Hidden = True
Else
End If
If Worksheets("Accomplishments").Range("J9").Value > 105 Then
Worksheets("Accomplishments").Rows("9:12").EntireRow.Hidden = True
Worksheets("Oppurtunities").Rows("9:12").EntireRow.Hidden = False
Worksheets("Actionplan").Rows("9").EntireRow.Hidden = True
Else
End If
If Worksheets("Accomplishments").Range("J9").Value = 105 Then
Worksheets("Accomplishments").Rows("9:12").EntireRow.Hidden = False
Worksheets("Oppurtunities").Rows("9:12").EntireRow.Hidden = True
Worksheets("Actionplan").Rows("9").EntireRow.Hidden = False
Else
End If
If Worksheets("Accomplishments").Range("j13").Value < 100 Then
Worksheets("Accomplishments").Rows("13:16").EntireRow.Hidden = True
Worksheets("Oppurtunities").Rows("13:16").EntireRow.Hidden = False
Worksheets("Actionplan").Rows("10").EntireRow.Hidden = True
Else
End If
If Worksheets("Accomplishments").Range("j13").Value = 100 Then
Worksheets("Accomplishments").Rows("13:16").EntireRow.Hidden = True
Worksheets("Oppurtunities").Rows("13:16").EntireRow.Hidden = False
Worksheets("Actionplan").Rows("10").EntireRow.Hidden = True
Else
End If
If Worksheets("Accomplishments").Range("J9").Value < 105 And Worksheets("Accomplishments").Range("j13").Value < 100 Then
Worksheets("Actionplan").Rows("8").EntireRow.Hidden = False
Else
End If
If Worksheets("Accomplishments").Range("J9").Value = 105 And Worksheets("Accomplishments").Range("J9").Value < 105 And Worksheets("Accomplishments").Range("j13").Value = 100 Then
Worksheets("Actionplan").Rows("8").EntireRow.Hidden = False
Else
End If
If Worksheets("Accomplishments").Range("j13").Value < 100 Then
Worksheets("Accomplishments").Rows("13:16").EntireRow.Hidden = True
Worksheets("Actionplan").Rows("10").EntireRow.Hidden = True
Worksheets("Oppurtunities").Rows("13:16").EntireRow.Hidden = False
Else
End If
If Worksheets("Accomplishments").Range("j13").Value = 100 Then
Worksheets("Accomplishments").Rows("13:16").EntireRow.Hidden = True
Worksheets("Actionplan").Rows("10").EntireRow.Hidden = True
Worksheets("Oppurtunities").Rows("13:16").EntireRow.Hidden = False
Else
End If
If Worksheets("Accomplishments").Range("j17").Value < 5 Then
Worksheets("Accomplishments").Rows("17:20").EntireRow.Hidden = False
Worksheets("Actionplan").Rows("15").EntireRow.Hidden = False
Worksheets("Oppurtunities").Rows("17:20").EntireRow.Hidden = True
Else
End If
If Worksheets("Accomplishments").Range("j17").Value = 5 Then
Worksheets("Accomplishments").Rows("17:20").EntireRow.Hidden = False
Worksheets("Actionplan").Rows("15").EntireRow.Hidden = False
Worksheets("Oppurtunities").Rows("17:20").EntireRow.Hidden = True
Else
End If
If Worksheets("Accomplishments").Range("j21").Value < 4 Then
Worksheets("Accomplishments").Rows("21:24").EntireRow.Hidden = False
Worksheets("Actionplan").Rows("17:18").EntireRow.Hidden = False
Worksheets("Oppurtunities").Rows("21:24").EntireRow.Hidden = True
Else
End If
If Worksheets("Accomplishments").Range("j21").Value = 4 Then
Worksheets("Accomplishments").Rows("21:24").EntireRow.Hidden = False
Worksheets("Actionplan").Rows("17:18").EntireRow.Hidden = False
Worksheets("Oppurtunities").Rows("21:24").EntireRow.Hidden = True
Else
End If
If Worksheets("Accomplishments").Range("j25").Value < 17 Then
Worksheets("Accomplishments").Rows("25:28").EntireRow.Hidden = False
Worksheets("Actionplan").Rows("16").EntireRow.Hidden = False
Worksheets("Oppurtunities").Rows("25:28").EntireRow.Hidden = True
Else
End If
If Worksheets("Accomplishments").Range("j25").Value = 17 Then
Worksheets("Accomplishments").Rows("25:28").EntireRow.Hidden = False
Worksheets("Actionplan").Rows("16").EntireRow.Hidden = False
Worksheets("Oppurtunities").Rows("25:28").EntireRow.Hidden = True
Else
End If
If Worksheets("Accomplishments").Range("j33").Value < 70 Then
Worksheets("Accomplishments").Rows("33:36").EntireRow.Hidden = False
Worksheets("Actionplan").Rows("12").EntireRow.Hidden = False
Worksheets("Oppurtunities").Rows("33:36").EntireRow.Hidden = True
Else
End If
If Worksheets("Accomplishments").Range("j33").Value = 70 Then
Worksheets("Accomplishments").Rows("33:36").EntireRow.Hidden = False
Worksheets("Actionplan").Rows("12").EntireRow.Hidden = False
Worksheets("Oppurtunities").Rows("33:36").EntireRow.Hidden = True
Else
End If
If Worksheets("Accomplishments").Range("j37").Value > 100 Then
Worksheets("Accomplishments").Rows("37:41").EntireRow.Hidden = False
Worksheets("Actionplan").Rows("13").EntireRow.Hidden = False
Worksheets("Oppurtunities").Rows("37:41").EntireRow.Hidden = True
Else
End If
If Worksheets("Accomplishments").Range("j37").Value = 100 Then
Worksheets("Accomplishments").Rows("37:41").EntireRow.Hidden = False
Worksheets("Actionplan").Rows("13").EntireRow.Hidden = False
Worksheets("Oppurtunities").Rows("37:41").EntireRow.Hidden = True
Else
End If
If Worksheets("Accomplishments").Range("j42").Value < 15 Then
Worksheets("Accomplishments").Rows("42:45").EntireRow.Hidden = False
Worksheets("Actionplan").Rows("14").EntireRow.Hidden = False
Worksheets("Oppurtunities").Rows("42:45").EntireRow.Hidden = True
Else
End If
If Worksheets("Accomplishments").Range("j42").Value = 15 Then
Worksheets("Accomplishments").Rows("42:45").EntireRow.Hidden = False
Worksheets("Actionplan").Rows("14").EntireRow.Hidden = False
Worksheets("Oppurtunities").Rows("42:45").EntireRow.Hidden = True
Else
End If
If Worksheets("Accomplishments").Range("j17").Value < 5 And Worksheets("Accomplishments").Range("j17").Value = 5 And Worksheets("Accomplishments").Range("j21").Value < 4 And Worksheets("Accomplishments").Range("j21").Value = 4 And Worksheets("Accomplishments").Range("j25").Value < 17 And Worksheets("Accomplishments").Range("j25").Value = 17 And Worksheets("Accomplishments").Range("j33").Value > 70 And Worksheets("Accomplishments").Range("j33").Value = 70 And Worksheets("Accomplishments").Range("j37").Value > 100 And Worksheets("Accomplishments").Range("j37").Value = 100 And Worksheets("Accomplishments").Range("j42").Value = 15 And Worksheets("Accomplishments").Range("j42").Value < 15 Then
Worksheets("Actionplan").Rows("11").EntireRow.Hidden = False
Else
End If
If Worksheets("Accomplishments").Range("j52").Value < 85 Then
Worksheets("Accomplishments").Rows("52:61").EntireRow.Hidden = True
Worksheets("Actionplan").Rows("19").EntireRow.Hidden = True
Worksheets("Oppurtunities").Rows("52:61").EntireRow.Hidden = False
Else
End If
If Worksheets("Accomplishments").Range("j52").Value = 85 Then
Worksheets("Accomplishments").Rows("52:61").EntireRow.Hidden = False
Worksheets("Actionplan").Rows("19").EntireRow.Hidden = False
Worksheets("Oppurtunities").Rows("52:61").EntireRow.Hidden = True
Else
End If
If Worksheets("Accomplishments").Range("j62").Value < 85 Then
Worksheets("Accomplishments").Rows("62:77").EntireRow.Hidden = True
Worksheets("Actionplan").Rows("20").EntireRow.Hidden = True
Worksheets("Oppurtunities").Rows("62:77").EntireRow.Hidden = False
Else
End If
If Worksheets("Accomplishments").Range("j62").Value = 85 Then
Worksheets("Accomplishments").Rows("62:77").EntireRow.Hidden = False
Worksheets("Actionplan").Rows("20").EntireRow.Hidden = False
Worksheets("Oppurtunities").Rows("62:77").EntireRow.Hidden = True
Else
End If
If Worksheets("Accomplishments").Range("j52").Value > 85 And Worksheets("Accomplishments").Range("j52").Value = 85 And Worksheets("Accomplishments").Range("j62").Value > 85 And Worksheets("Accomplishments").Range("j62").Value = 85 Then
Worksheets("Actionplan").Rows("18").EntireRow.Hidden = False
Else
End If
Worksheets("Accomplishments").Rows("29:32").EntireRow.Hidden = True
Worksheets("Accomplishments").Rows("46:51").EntireRow.Hidden = True
Worksheets("Oppurtunities").Rows("29:32").EntireRow.Hidden = True
Worksheets("Oppurtunities").Rows("46:51").EntireRow.Hidden = True
End Sub