Hi
Please help me with a formula. I have two tables...the lookup data is in the first table (colums A,B and C...this data is obviously only a small part of the actual data)
The second table must have the lookup formula to return the subject code in Column I and K and M. The problem that I have is if the subject code has an "O/B" next to it in Column C it must start in a new block
Please look at the last table...it must be populated like this
It is currently looking like this which is not correct and it must look like the above table
Thank you in advance
Dries
Please help me with a formula. I have two tables...the lookup data is in the first table (colums A,B and C...this data is obviously only a small part of the actual data)
Excel Workbook | |||||
---|---|---|---|---|---|
A | B | C | |||
2 | BLOCK/ROW/SEAT | SUBJECT CODE | O/B | ||
3 | w2-81-1 | MNP20YT | * | ||
4 | w2-81-2 | MNP20YT | * | ||
5 | w2-81-3 | PTL311T | * | ||
6 | w2-81-4 | PTL311T | * | ||
7 | w2-81-5 | AMF40AT | * | ||
8 | w2-81-6 | BMN23BD | * | ||
9 | w2-81-7 | DLM501T | O/B | ||
10 | w2-81-8 | DLM501T | O/B | ||
11 | w2-81-9 | DLM501T | O/B | ||
12 | w2-81-10 | DLM501T | O/B | ||
13 | w2-82-1 | DLM501T | O/B | ||
14 | w2-82-2 | DLM501T | O/B | ||
15 | w2-82-3 | DLM501T | O/B | ||
16 | w2-82-4 | DLM501T | O/B | ||
17 | w2-82-5 | DLM501T | O/B | ||
18 | w2-82-6 | DLM501T | O/B | ||
19 | w2-82-7 | DLM501T | O/B | ||
20 | w2-82-8 | DLM501T | O/B | ||
21 | w2-82-9 | DLM501T | O/B | ||
22 | w2-82-10 | DLM501T | O/B | ||
23 | w2-83-1 | DLM501T | O/B | ||
24 | w2-83-2 | DLM501T | O/B | ||
25 | w2-83-3 | DLM501T | O/B | ||
26 | w2-83-4 | DLM501T | O/B | ||
27 | w2-83-5 | DLM501T | O/B | ||
28 | w2-83-6 | DLM501T | O/B | ||
29 | w2-83-7 | DLM501T | O/B | ||
30 | w2-83-8 | DLM501T | O/B | ||
31 | w2-83-9 | DLM501T | O/B | ||
32 | w2-83-10 | DLM501T | O/B | ||
data2 |
The second table must have the lookup formula to return the subject code in Column I and K and M. The problem that I have is if the subject code has an "O/B" next to it in Column C it must start in a new block
Excel Workbook | ||||||||
---|---|---|---|---|---|---|---|---|
H | I | J | K | L | M | |||
2 | BLOCK/ROW/SEAT | SUBJECT CODE | BLOCK/ROW/SEAT | SUBJECT CODE | BLOCK/ROW/SEAT | SUBJECT CODE | ||
3 | w2-81-1 | * | w2-82-1 | * | w2-83-1 | * | ||
4 | w2-81-2 | * | w2-82-2 | * | w2-83-2 | * | ||
5 | w2-81-3 | * | w2-82-3 | * | w2-83-3 | * | ||
6 | w2-81-4 | * | w2-82-4 | * | w2-83-4 | * | ||
7 | w2-81-5 | * | w2-82-5 | * | w2-83-5 | * | ||
8 | w2-81-6 | * | w2-82-6 | * | w2-83-6 | * | ||
9 | w2-81-7 | * | w2-82-7 | * | w2-83-7 | * | ||
10 | w2-81-8 | * | w2-82-8 | * | w2-83-8 | * | ||
11 | w2-81-9 | * | w2-82-9 | * | w2-83-9 | * | ||
12 | w2-81-10 | * | w2-82-10 | * | w2-83-10 | * | ||
data2 |
Please look at the last table...it must be populated like this
Excel Workbook | ||||||||
---|---|---|---|---|---|---|---|---|
H | I | J | K | L | M | |||
14 | BLOCK/ROW/SEAT | SUBJECT CODE | BLOCK/ROW/SEAT | SUBJECT CODE | BLOCK/ROW/SEAT | SUBJECT CODE | ||
15 | w2-81-1 | MNP20YT | w2-82-1 | DLM501T - O/B | w2-83-1 | DLM501T - O/B | ||
16 | w2-81-2 | MNP20YT | w2-82-2 | DLM501T - O/B | w2-83-2 | DLM501T - O/B | ||
17 | w2-81-3 | PTL311T | w2-82-3 | DLM501T - O/B | w2-83-3 | DLM501T - O/B | ||
18 | w2-81-4 | PTL311T | w2-82-4 | DLM501T - O/B | w2-83-4 | DLM501T - O/B | ||
19 | w2-81-5 | AMF40AT | w2-82-5 | DLM501T - O/B | w2-83-5 | DLM501T - O/B | ||
20 | w2-81-6 | BMN23BD | w2-82-6 | DLM501T - O/B | w2-83-6 | DLM501T - O/B | ||
21 | w2-81-7 | * | w2-82-7 | DLM501T - O/B | w2-83-7 | DLM501T - O/B | ||
22 | w2-81-8 | * | w2-82-8 | DLM501T - O/B | w2-83-8 | DLM501T - O/B | ||
23 | w2-81-9 | * | w2-82-9 | DLM501T - O/B | w2-83-9 | DLM501T - O/B | ||
24 | w2-81-10 | * | w2-82-10 | DLM501T - O/B | w2-83-10 | DLM501T - O/B | ||
data2 |
It is currently looking like this which is not correct and it must look like the above table
Excel Workbook | ||||||||
---|---|---|---|---|---|---|---|---|
H | I | J | K | L | M | |||
14 | BLOCK/ROW/SEAT | SUBJECT CODE | BLOCK/ROW/SEAT | SUBJECT CODE | BLOCK/ROW/SEAT | SUBJECT CODE | ||
15 | w2-81-1 | MNP20YT | w2-82-1 | DLM501T - O/B | w2-83-1 | DLM501T - O/B | ||
16 | w2-81-2 | MNP20YT | w2-82-2 | DLM501T - O/B | w2-83-2 | DLM501T - O/B | ||
17 | w2-81-3 | PTL311T | w2-82-3 | DLM501T - O/B | w2-83-3 | DLM501T - O/B | ||
18 | w2-81-4 | PTL311T | w2-82-4 | DLM501T - O/B | w2-83-4 | DLM501T - O/B | ||
19 | w2-81-5 | AMF40AT | w2-82-5 | DLM501T - O/B | w2-83-5 | DLM501T - O/B | ||
20 | w2-81-6 | BMN23BD | w2-82-6 | DLM501T - O/B | w2-83-6 | DLM501T - O/B | ||
21 | w2-81-7 | DLM501T - O/B | w2-82-7 | DLM501T - O/B | w2-83-7 | DLM501T - O/B | ||
22 | w2-81-8 | DLM501T - O/B | w2-82-8 | DLM501T - O/B | w2-83-8 | DLM501T - O/B | ||
23 | w2-81-9 | DLM501T - O/B | w2-82-9 | DLM501T - O/B | w2-83-9 | DLM501T - O/B | ||
24 | w2-81-10 | DLM501T - O/B | w2-82-10 | DLM501T - O/B | w2-83-10 | DLM501T - O/B | ||
data2 |
Thank you in advance
Dries