Update cells in new sheets

caudillo

New Member
Joined
Feb 13, 2023
Messages
6
Office Version
  1. 2019
Platform
  1. Windows
Hello.
It's my first time here as a registered user, though I 've been getting help from the site for quite sometime.
I am working on a project for my school and I got stuck, so I am asking for your help.
I have a workbook with four sheets. The first two have some informations regarding my colleagues and the students. On the third sheet I have a drop-down list in cell D10, from which I choose a colleague. After choosing a teacher I get the classes he teaches in (in cells J10-J25) by using a formula and the lessons he teaches in every class (in cells K10-K25) again with formula.
Now the fourth sheet is used as a template and, by using a macro, I can copy it as many times as the lessons that the teacher is teaching and make the sheet tab name same as the name of the lesson.
What I want - and can't seem to get it done due to my poor knowledge of VBA - is to update cell D14 in every newly created copy of the template with the classes that were generated by formula in the third sheet (cells J10-J25).
I would appreciate greatly your help on the issue, since it's a project necessary for my school that would save a lot of working time.
Thank you in advance.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
I will try to upload something in English as soon as possible.
You see, my native language is Greek (and so is my workbook).
 
Upvote 0
I 've finally managed to set up an excel file quite similar to the one I am trying to complete.
I hope it will help you understand what I am asking for.
The sheet INFO has many more values but I couldn't get an xl2bb file with all the information in it.
Finally the fourth sheet includes informations that don't affect the other three, so I thought it would be better off without it.

GRADES.xlsm
ABCDEFGHIJK
1CLASS 1TEACHER 1CLASSABR.LESSONTEACHERSTEACHER 1CLASS 19LESSON 120
2CLASS 2TEACHER 2CLASS 1LESSON 1CLASS 1LN 1LESSON 1TEACHER 10 TEACHER 1CLASS 39LESSON 179
3CLASS 3TEACHER 3CLASS 1LESSON 2CLASS 1LN 2LESSON 2TEACHER 11 TEACHER 1CLASS 12LESSON 189
4CLASS 4TEACHER 4CLASS 1LESSON 3CLASS 1LN 3LESSON 3TEACHER 14 TEACHER 1CLASS 36LESSON 18
5CLASS 5TEACHER 5CLASS 1LESSON 4CLASS 1LN 4LESSON 4TEACHER 49 TEACHER 1CLASS 14LESSON 114
6CLASS 6TEACHER 6CLASS 1LESSON 5CLASS 1LN 5LESSON 5TEACHER 21 TEACHER 1CLASS 29LESSON 134
7CLASS 7TEACHER 7CLASS 1LESSON 6CLASS 1LN 6LESSON 6TEACHER 38 TEACHER 2CLASS 10LESSON 203
8CLASS 8TEACHER 8CLASS 1LESSON 7CLASS 1LN 7LESSON 7TEACHER 36 TEACHER 3CLASS 32LESSON 21
9CLASS 9TEACHER 9CLASS 1LESSON 8CLASS 1LN 8LESSON 8TEACHER 66 TEACHER 3CLASS 11LESSON 122
10CLASS 10TEACHER 10CLASS 1LESSON 9CLASS 1LN 9LESSON 9TEACHER 22 TEACHER 3CLASS 30LESSON 115
11CLASS 11TEACHER 11CLASS 1LESSON 10CLASS 1L 10LESSON 10TEACHER 36 TEACHER 3CLASS 18LESSON 24
12CLASS 12TEACHER 12CLASS 1LESSON 11CLASS 1L 11LESSON 11TEACHER 39 TEACHER 3CLASS 33LESSON 202
13CLASS 13TEACHER 13CLASS 1LESSON 12CLASS 1L 12LESSON 12TEACHER 49 TEACHER 3CLASS 5LESSON 78
14CLASS 14TEACHER 14CLASS 1LESSON 13CLASS 1L 13LESSON 13TEACHER 52 TEACHER 3CLASS 26LESSON 126
15CLASS 15TEACHER 15CLASS 1LESSON 14CLASS 1L 14LESSON 14TEACHER 66 TEACHER 3CLASS 37LESSON 10
16CLASS 16TEACHER 16CLASS 1LESSON 15CLASS 1L 15LESSON 15TEACHER 29 TEACHER 3CLASS 9LESSON 31
17CLASS 17TEACHER 17CLASS 1LESSON 16CLASS 1L 16LESSON 16TEACHER 49 TEACHER 4CLASS 35LESSON 155
18CLASS 18TEACHER 18CLASS 1LESSON 17CLASS 1L 17LESSON 17TEACHER 31 TEACHER 4CLASS 13LESSON 100
19CLASS 19TEACHER 19CLASS 2LESSON 1CLASS 2LN 1LESSON 1TEACHER 40 TEACHER 4CLASS 27LESSON 105
20CLASS 20TEACHER 20CLASS 2LESSON 2CLASS 2LN 2LESSON 2TEACHER 16 TEACHER 4CLASS 7LESSON 83
21CLASS 21TEACHER 21CLASS 2LESSON 3CLASS 2LN 3LESSON 3TEACHER 68 TEACHER 4CLASS 22LESSON 140
22CLASS 22TEACHER 22CLASS 2LESSON 4CLASS 2LN 4LESSON 4TEACHER 14 TEACHER 4CLASS 41LESSON 55
23CLASS 23TEACHER 23CLASS 2LESSON 5CLASS 2LN 5LESSON 5TEACHER 35 TEACHER 5CLASS 16LESSON 25
24CLASS 24TEACHER 24CLASS 2LESSON 6CLASS 2LN 6LESSON 6TEACHER 32 TEACHER 5CLASS 24LESSON 180
25CLASS 25TEACHER 25CLASS 2LESSON 7CLASS 2LN 7LESSON 7TEACHER 60 TEACHER 5CLASS 42LESSON 99
26CLASS 26TEACHER 26CLASS 2LESSON 8CLASS 2LN 8LESSON 8TEACHER 6 TEACHER 5CLASS 3LESSON 75
27CLASS 27TEACHER 27CLASS 2LESSON 9CLASS 2LN 9LESSON 9TEACHER 33 TEACHER 5CLASS 23LESSON 47
28CLASS 28TEACHER 28CLASS 2LESSON 10CLASS 2L 10LESSON 10TEACHER 16 TEACHER 5CLASS 21LESSON 116
29CLASS 29TEACHER 29CLASS 2LESSON 11CLASS 2L 11LESSON 11TEACHER 5 TEACHER 5CLASS 20LESSON 158
30CLASS 30TEACHER 30CLASS 2LESSON 12CLASS 2L 12LESSON 12TEACHER 10 TEACHER 5CLASS 28LESSON 56
31CLASS 31TEACHER 31CLASS 2LESSON 13CLASS 2L 13LESSON 13TEACHER 61 TEACHER 6CLASS 25LESSON 182
32CLASS 32TEACHER 32CLASS 2LESSON 14CLASS 2L 14LESSON 14TEACHER 17 TEACHER 6CLASS 15LESSON 80
33CLASS 33TEACHER 33CLASS 2LESSON 15CLASS 2L 15LESSON 15TEACHER 66 TEACHER 6CLASS 34LESSON 108
34CLASS 34TEACHER 34CLASS 2LESSON 16CLASS 2L 16LESSON 16TEACHER 66 TEACHER 6CLASS 40LESSON 74
35CLASS 35TEACHER 35CLASS 2LESSON 17CLASS 2L 17LESSON 17TEACHER 27 TEACHER 6CLASS 43LESSON 167
36CLASS 36TEACHER 36CLASS 3LESSON 17CLASS 3L 17LESSON 17TEACHER 30 TEACHER 6CLASS 2LESSON 159
37CLASS 37TEACHER 37CLASS 3LESSON 5CLASS 3LN 5LESSON 5TEACHER 45 TEACHER 6CLASS 31LESSON 63
38CLASS 38TEACHER 38CLASS 3LESSON 6CLASS 3LN 6LESSON 6TEACHER 45 TEACHER 6CLASS 17LESSON 176
39CLASS 39TEACHER 39CLASS 3LESSON 18CLASS 3L 18LESSON 18TEACHER 41 TEACHER 6CLASS 38LESSON 65
40CLASS 40TEACHER 40CLASS 3LESSON 11CLASS 3L 11LESSON 11TEACHER 5 TEACHER 7CLASS 1LESSON 133
41CLASS 41TEACHER 41CLASS 3LESSON 14CLASS 3L 14LESSON 14TEACHER 21 TEACHER 7CLASS 4LESSON 14
42CLASS 42TEACHER 42CLASS 3LESSON 15CLASS 3L 15LESSON 15TEACHER 4 TEACHER 7CLASS 6LESSON 35
43CLASS 43TEACHER 43CLASS 4LESSON 17CLASS 4L 17LESSON 17TEACHER 27 TEACHER 7CLASS 8LESSON 7
44TEACHER 44CLASS 4LESSON 5CLASS 4LN 5LESSON 5TEACHER 32 TEACHER 7CLASS 41LESSON 104
45TEACHER 45CLASS 4LESSON 6CLASS 4LN 6LESSON 6TEACHER 32 TEACHER 7CLASS 15LESSON 138
46TEACHER 46CLASS 4LESSON 18CLASS 4L 18LESSON 18TEACHER 19 TEACHER 7CLASS 10LESSON 48
47TEACHER 47CLASS 4LESSON 11CLASS 4L 11LESSON 11TEACHER 39 TEACHER 8CLASS 2LESSON 76
48TEACHER 48CLASS 4LESSON 14CLASS 4L 14LESSON 14TEACHER 36 TEACHER 8CLASS 4LESSON 194
49TEACHER 49CLASS 4LESSON 15CLASS 4L 15LESSON 15TEACHER 63 TEACHER 8CLASS 42LESSON 154
50TEACHER 50CLASS 5LESSON 17CLASS 5L 17LESSON 17TEACHER 55 TEACHER 8CLASS 35LESSON 81
51TEACHER 51CLASS 5LESSON 5CLASS 5LN 5LESSON 5TEACHER 67 TEACHER 8CLASS 12LESSON 123
52TEACHER 52CLASS 5LESSON 6CLASS 5LN 6LESSON 6TEACHER 44 TEACHER 8CLASS 19LESSON 73
53TEACHER 53CLASS 5LESSON 18CLASS 5L 18LESSON 18TEACHER 59 TEACHER 9CLASS 25LESSON 51
54TEACHER 54CLASS 5LESSON 11CLASS 5L 11LESSON 11TEACHER 8 TEACHER 9CLASS 39LESSON 59
55TEACHER 55CLASS 5LESSON 14CLASS 5L 14LESSON 14TEACHER 50 TEACHER 9CLASS 21LESSON 95
56TEACHER 56CLASS 5LESSON 15CLASS 5L 15LESSON 15TEACHER 37 TEACHER 9CLASS 40LESSON 11
57TEACHER 57CLASS 6LESSON 19CLASS 6L 19LESSON 19TEACHER 26 TEACHER 38TEACHER 9CLASS 3LESSON 149
58TEACHER 58CLASS 6LESSON 20CLASS 6L 20LESSON 20TEACHER 3 TEACHER 49TEACHER 9CLASS 5LESSON 188
59TEACHER 59CLASS 6LESSON 21CLASS 6L 21LESSON 21TEACHER 58 TEACHER 11TEACHER 9CLASS 36LESSON 16
60TEACHER 60CLASS 6LESSON 22CLASS 6L 22LESSON 22TEACHER 7 TEACHER 21TEACHER 9CLASS 30LESSON 200
61TEACHER 61CLASS 6LESSON 23CLASS 6L 23LESSON 23TEACHER 61 TEACHER 10TEACHER 10CLASS 11LESSON 139
62TEACHER 62CLASS 6LESSON 24CLASS 6L 24LESSON 24TEACHER 53 TEACHER 14TEACHER 10CLASS 26LESSON 162
63TEACHER 63CLASS 6LESSON 25CLASS 6L 25LESSON 25TEACHER 54 TEACHER 14TEACHER 10CLASS 43LESSON 121
64TEACHER 64CLASS 6LESSON 26CLASS 6L 26LESSON 26TEACHER 22 TEACHER 11TEACHER 10CLASS 22LESSON 66
65TEACHER 65CLASS 6LESSON 27CLASS 6L 27LESSON 27TEACHER 41 TEACHER 38TEACHER 10CLASS 37LESSON 157
66TEACHER 66CLASS 7LESSON 19CLASS 7L 19LESSON 19TEACHER 20 TEACHER 49TEACHER 10CLASS 18LESSON 161
67TEACHER 67CLASS 7LESSON 20CLASS 7L 20LESSON 20TEACHER 16 TEACHER 21TEACHER 10CLASS 31LESSON 88
68TEACHER 68CLASS 7LESSON 21CLASS 7L 21LESSON 21TEACHER 16 TEACHER 10TEACHER 11CLASS 14LESSON 185
69CLASS 7LESSON 22CLASS 7L 22LESSON 22TEACHER 28 TEACHER 21TEACHER 11CLASS 29LESSON 70
70CLASS 7LESSON 23CLASS 7L 23LESSON 23TEACHER 48 TEACHER 38TEACHER 11CLASS 32LESSON 183
71CLASS 7LESSON 24CLASS 7L 24LESSON 24TEACHER 67 TEACHER 11TEACHER 11CLASS 28LESSON 71
72CLASS 7LESSON 25CLASS 7L 25LESSON 25TEACHER 23 TEACHER 49TEACHER 11CLASS 1LESSON 141
73CLASS 7LESSON 26CLASS 7L 26LESSON 26TEACHER 31 TEACHER 10TEACHER 11CLASS 33LESSON 164
74CLASS 7LESSON 27CLASS 7L 27LESSON 27TEACHER 55 TEACHER 14TEACHER 11CLASS 27LESSON 175
75CLASS 8LESSON 28CLASS 8L 28LESSON 28TEACHER 19 TEACHER 49TEACHER 12CLASS 38LESSON 89
76CLASS 8LESSON 29CLASS 8L 29LESSON 29TEACHER 47 TEACHER 14TEACHER 12CLASS 20LESSON 107
77CLASS 8LESSON 30CLASS 8L 30LESSON 30TEACHER 2 TEACHER 21TEACHER 12CLASS 6LESSON 40
78CLASS 8LESSON 31CLASS 8L 31LESSON 31TEACHER 30 TEACHER 11TEACHER 12CLASS 9LESSON 22
79CLASS 8LESSON 32CLASS 8L 32LESSON 32TEACHER 5 TEACHER 10TEACHER 12CLASS 8LESSON 111
80CLASS 8LESSON 33CLASS 8L 33LESSON 33TEACHER 41 TEACHER 38TEACHER 12CLASS 17LESSON 172
81CLASS 8LESSON 34CLASS 8L 34LESSON 34TEACHER 43 TEACHER 21TEACHER 12CLASS 13LESSON 50
82CLASS 8LESSON 35CLASS 8L 35LESSON 35TEACHER 12 TEACHER 38TEACHER 12CLASS 16LESSON 197
83CLASS 8LESSON 36CLASS 8L 36LESSON 36TEACHER 60 TEACHER 11TEACHER 12CLASS 23LESSON 195
84CLASS 9LESSON 28CLASS 9L 28LESSON 28TEACHER 20 TEACHER 49TEACHER 13CLASS 7LESSON 146
85CLASS 9LESSON 29CLASS 9L 29LESSON 29TEACHER 30 TEACHER 10TEACHER 13CLASS 24LESSON 101
86CLASS 9LESSON 30CLASS 9L 30LESSON 30TEACHER 15 TEACHER 14TEACHER 13CLASS 34LESSON 156
87CLASS 9LESSON 31CLASS 9L 31LESSON 31TEACHER 47 TEACHER 49TEACHER 13CLASS 41LESSON 77
88CLASS 9LESSON 32CLASS 9L 32LESSON 32TEACHER 50 TEACHER 14TEACHER 13CLASS 15LESSON 102
89CLASS 9LESSON 33CLASS 9L 33LESSON 33TEACHER 62 TEACHER 21TEACHER 14CLASS 10LESSON 93
90CLASS 9LESSON 34CLASS 9L 34LESSON 34TEACHER 17 TEACHER 11TEACHER 14CLASS 2LESSON 54
91CLASS 9LESSON 35CLASS 9L 35LESSON 35TEACHER 64 TEACHER 10TEACHER 14CLASS 4LESSON 205
92CLASS 9LESSON 36CLASS 9L 36LESSON 36TEACHER 34 TEACHER 38TEACHER 14CLASS 42LESSON 178
93CLASS 10LESSON 19CLASS 10L 19LESSON 19TEACHER 23 TEACHER 21TEACHER 14CLASS 35LESSON 34
94CLASS 10LESSON 37CLASS 10L 37LESSON 37TEACHER 61 TEACHER 38TEACHER 14CLASS 12LESSON 30
95CLASS 10LESSON 38CLASS 10L 38LESSON 38TEACHER 2 TEACHER 11TEACHER 14CLASS 19LESSON 38
96CLASS 10LESSON 39CLASS 10L 39LESSON 39TEACHER 11 TEACHER 49TEACHER 15CLASS 25LESSON 127
97CLASS 10LESSON 40CLASS 10L 40LESSON 40TEACHER 57 TEACHER 10TEACHER 15CLASS 39LESSON 42
98CLASS 10LESSON 41CLASS 10L 41LESSON 41TEACHER 10 TEACHER 14TEACHER 16CLASS 21LESSON 190
99CLASS 10LESSON 42CLASS 10L 42LESSON 42TEACHER 1 TEACHER 21TEACHER 16CLASS 40LESSON 79
100CLASS 10LESSON 43CLASS 10L 43LESSON 43TEACHER 31 TEACHER 38TEACHER 16CLASS 3LESSON 109
101CLASS 10LESSON 44CLASS 10L 44LESSON 44TEACHER 28 TEACHER 11TEACHER 16CLASS 5LESSON 192
102CLASS 11LESSON 19CLASS 11L 19LESSON 19TEACHER 21 TEACHER 49TEACHER 16CLASS 36LESSON 94
103CLASS 11LESSON 37CLASS 11L 37LESSON 37TEACHER 30 TEACHER 10TEACHER 16CLASS 30LESSON 64
104CLASS 11LESSON 38CLASS 11L 38LESSON 38TEACHER 54 TEACHER 14TEACHER 16CLASS 11LESSON 136
105CLASS 11LESSON 39CLASS 11L 39LESSON 39TEACHER 42 TEACHER 49TEACHER 17CLASS 26LESSON 62
106CLASS 11LESSON 40CLASS 11L 40LESSON 40TEACHER 32 TEACHER 14TEACHER 17CLASS 43LESSON 36
107CLASS 11LESSON 41CLASS 11L 41LESSON 41TEACHER 23 TEACHER 21TEACHER 17CLASS 22LESSON 168
108CLASS 11LESSON 42CLASS 11L 42LESSON 42TEACHER 8 TEACHER 11TEACHER 17CLASS 37LESSON 177
109CLASS 11LESSON 43CLASS 11L 43LESSON 43TEACHER 24 TEACHER 10TEACHER 17CLASS 18LESSON 1
110CLASS 11LESSON 44CLASS 11L 44LESSON 44TEACHER 26 TEACHER 38TEACHER 17CLASS 31LESSON 150
111CLASS 12LESSON 19CLASS 12L 19LESSON 19TEACHER 54 TEACHER 49TEACHER 17CLASS 14LESSON 171
112CLASS 12LESSON 37CLASS 12L 37LESSON 37TEACHER 34 TEACHER 14TEACHER 18CLASS 29LESSON 27
113CLASS 12LESSON 38CLASS 12L 38LESSON 38TEACHER 58 TEACHER 21TEACHER 18CLASS 32LESSON 20
114CLASS 12LESSON 39CLASS 12L 39LESSON 39TEACHER 29 TEACHER 11TEACHER 18CLASS 28LESSON 41
115CLASS 12LESSON 40CLASS 12L 40LESSON 40TEACHER 23 TEACHER 10TEACHER 18CLASS 1LESSON 85
116CLASS 12LESSON 41CLASS 12L 41LESSON 41TEACHER 13 TEACHER 38TEACHER 18CLASS 33LESSON 32
117CLASS 12LESSON 42CLASS 12L 42LESSON 42TEACHER 35 TEACHER 21TEACHER 18CLASS 27LESSON 69
118CLASS 12LESSON 43CLASS 12L 43LESSON 43TEACHER 24 TEACHER 38TEACHER 18CLASS 38LESSON 33
119CLASS 12LESSON 44CLASS 12L 44LESSON 44TEACHER 9 TEACHER 11TEACHER 19CLASS 20LESSON 19
120CLASS 13LESSON 19CLASS 13L 19LESSON 19TEACHER 18 TEACHER 49TEACHER 19CLASS 6LESSON 96
121CLASS 13LESSON 45CLASS 13L 45LESSON 45TEACHER 24 TEACHER 10TEACHER 19CLASS 9LESSON 130
122CLASS 13LESSON 46CLASS 13L 46LESSON 46TEACHER 26 TEACHER 14TEACHER 19CLASS 8LESSON 193
123CLASS 13LESSON 47CLASS 13L 47LESSON 47TEACHER 48 TEACHER 49TEACHER 19CLASS 17LESSON 4
124CLASS 13LESSON 48CLASS 13L 48LESSON 48TEACHER 58 TEACHER 14TEACHER 19CLASS 13LESSON 166
125CLASS 13LESSON 49CLASS 13L 49LESSON 49TEACHER 19 TEACHER 21TEACHER 19CLASS 16LESSON 128
126CLASS 13LESSON 50CLASS 13L 50LESSON 50TEACHER 42 TEACHER 11TEACHER 20CLASS 23LESSON 72
127CLASS 13LESSON 51CLASS 13L 51LESSON 51TEACHER 11 TEACHER 10TEACHER 20CLASS 7LESSON 160
128CLASS 13LESSON 52CLASS 13L 52LESSON 52TEACHER 53 TEACHER 38TEACHER 20CLASS 24LESSON 91
129CLASS 13LESSON 53CLASS 13L 53LESSON 53TEACHER 6 TEACHER 49TEACHER 20CLASS 34LESSON 184
130CLASS 13LESSON 54CLASS 13L 54LESSON 54TEACHER 26 TEACHER 14TEACHER 20CLASS 4LESSON 191
131CLASS 13LESSON 55CLASS 13L 55LESSON 55TEACHER 43 TEACHER 21TEACHER 20CLASS 6LESSON 119
132CLASS 14LESSON 56CLASS 14L 56LESSON 56TEACHER 54 TEACHER 11TEACHER 20CLASS 8LESSON 17
133CLASS 14LESSON 57CLASS 14L 57LESSON 57TEACHER 59 TEACHER 10TEACHER 20CLASS 41LESSON 199
134CLASS 14LESSON 58CLASS 14L 58LESSON 58TEACHER 24 TEACHER 38TEACHER 20CLASS 15LESSON 152
135CLASS 14LESSON 19CLASS 14L 19LESSON 19TEACHER 22 TEACHER 49TEACHER 20CLASS 10LESSON 196
136CLASS 14LESSON 59CLASS 14L 59LESSON 59TEACHER 62 TEACHER 14TEACHER 21CLASS 2LESSON 147
137CLASS 14LESSON 60CLASS 14L 60LESSON 60TEACHER 1 TEACHER 21TEACHER 21CLASS 4LESSON 92
138CLASS 14LESSON 61CLASS 14L 61LESSON 61TEACHER 57 TEACHER 11TEACHER 21CLASS 42LESSON 118
139CLASS 14LESSON 62CLASS 14L 62LESSON 62TEACHER 25 TEACHER 10TEACHER 21CLASS 35LESSON 144
140CLASS 14LESSON 63CLASS 14L 63LESSON 63TEACHER 64 TEACHER 38TEACHER 21CLASS 12LESSON 198
141CLASS 14LESSON 64CLASS 14L 64LESSON 64TEACHER 3 TEACHER 38TEACHER 21CLASS 19LESSON 165
142CLASS 15LESSON 56CLASS 15L 56LESSON 56TEACHER 57 TEACHER 11TEACHER 21CLASS 25LESSON 201
143CLASS 15LESSON 57CLASS 15L 57LESSON 57TEACHER 46 TEACHER 49TEACHER 21CLASS 39LESSON 57
144CLASS 15LESSON 58CLASS 15L 58LESSON 58TEACHER 64 TEACHER 10TEACHER 21CLASS 21LESSON 112
145CLASS 15LESSON 19CLASS 15L 19LESSON 19TEACHER 67 TEACHER 14TEACHER 22CLASS 40LESSON 67
146CLASS 15LESSON 59CLASS 15L 59LESSON 59TEACHER 3 TEACHER 21TEACHER 22CLASS 3LESSON 110
147CLASS 15LESSON 60CLASS 15L 60LESSON 60TEACHER 12 TEACHER 38TEACHER 22CLASS 5LESSON 8
148CLASS 15LESSON 61CLASS 15L 61LESSON 61TEACHER 48 TEACHER 11TEACHER 22CLASS 36LESSON 3
149CLASS 15LESSON 62CLASS 15L 62LESSON 62TEACHER 6 TEACHER 49TEACHER 22CLASS 30LESSON 6
150CLASS 15LESSON 65CLASS 15L 65LESSON 65TEACHER 1 TEACHER 10TEACHER 22CLASS 11LESSON 117
INFO
Cell Formulas
RangeFormula
D2:D150D2=CONCATENATE(E2,G2)


Cell Formulas
RangeFormula
J10:J25J10=IFERROR(INDEX(INFO!$J$1:$J$497,SMALL(IF(CHOICE!$D$10=INFO!$I$1:$I$497,ROW(INFO!$I$1:$I$497)-ROW(INFO!$I$1)+1),ROW(1:1)))," ")
K10:K25K10=IFERROR(INDEX(INFO!$K$1:$K$497,SMALL(IF(CHOICE!$D$10=INFO!$I$1:$I$497,ROW(INFO!$I$1:$I$497)-ROW(INFO!$I$1)+1),ROW(1:1)))," ")
Press CTRL+SHIFT+ENTER to enter array formulas.
Cells with Data Validation
CellAllowCriteria
D10:H10List=INFO!$B$1:$B$68


GRADES.xlsm
ABCDEFGHIJKLM
1
2
3
4
5
6
7
8
9
10
11
12
13
14CLASS
15LESSON#Δ/ΥTEMPLATE
16TEACHERS#Δ/Υ
17
18
19
TEMPLATE
Cell Formulas
RangeFormula
L15L15=MID(CELL("filename",A2),FIND("]",CELL("filename",A2))+1,256)
D15D15=VLOOKUP($L$15,INFO!$F$2:$G$375,2,FALSE)
D16D16=VLOOKUP($D$14&$D$15,INFO!$D$2:$H$375,5,FALSE)
 
Upvote 0
I forgot to mention that it's a .xlsm file that uses the below code:
VBA Code:
Sub CreateSheetsFromList()
    Dim ws As Worksheet, Ct As Long, c As Range
    Set ws = Worksheets("TEMPLATE")
    Application.ScreenUpdating = False
    For Each c In Sheets("CHOICE").Range("K10:K30")
        If c.Value <> "" Then
            ws.Copy after:=Sheets(Sheets.Count)
            ActiveSheet.Name = c.Value
            Ct = Ct + 1
        End If
    Next c
    If Ct > 0 Then
        MsgBox Ct & " new files were created."
    Else
        MsgBox "There are no items on the list."
    End If
    Application.ScreenUpdating = True
End Sub
 
Upvote 0
I would like to metion something about the code I am using.
When new worksheets get created the code stops creating sheets if the teacher is teaching the same lesson in a different class. Is there a way to correct this?
I don't want to put any pressure but it's been a while since I posted my issue and I got no answer. Am I asking for something that can't be done?
 
Upvote 0
Great news! I 've finally managed to update cell D14 by using INDEX and MATCH formula.
The last problem remaining is to fix the code so that when a teacher teaches the same lesson in different classes the code won't stop creating new sheets. The lessons are in the range K10:K30 that is mentioned in the code.
Any help will be greatly appreciated...
P.S.: Another thing I don't understand about the code (I 've got the code from the internet) is the use of "Ct". What does it do?
 
Upvote 0

Forum statistics

Threads
1,223,877
Messages
6,175,139
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top