sequential lookup??

ajm

Well-known Member
Joined
Feb 5, 2003
Messages
2,008
Office Version
  1. 365
Platform
  1. Windows
hi folks, i am working on a course selection workbook and have run into an issue. I have listed the course's core subjects at the top of the tab and these are marked off ( a 1 is placed next to the subject name) when the student completes each subject. in one term, they get to choose four electives from 6 choices. In the Core Subjects table, the four electives are listed as Elective 1, 2, 3, & 4, not by subject name. The six choices are in a separate box below the core subjects. when these electives are completed, a mark (a 1) will be placed next to the particular subject. Once a student has completed their first elective, how do i get the mark the mark (a 1) to appear in the Core Subjects table next to Elective 1, and then also for their second, third, and fourth choices?
1616027291789.png


So if a student completed Elective B, we would place a 1 adjacent to B in the Electives table. How do i get this to show up adjacent to Elective 1 in the Core Subjects table above? I was thinking of a sequential lookup but that requires the lookup value to be common to both tables.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
You meant something like this?
Elective.xlsx
AB
1CORE courses
2Cool Subject1
3Another Cool Subject1
4Elective 1B
5Elective 2
6Elective 3
7Elective 4
8Not as Cool Subject
9Ordinary Subject
10Elective Level 2
11
12Electives
13A
14B1
15C
16D
17E
18F
Sheet1
 
Upvote 0
Not sure I quite understand the question. Would this cover your requirement?

Using Zot's table as example:
B4 formula: =if(sum(B13:B18)=1,1,0)
B5 formula: =if(sum(B13:B18)=2,1,0)
B6 formula: =if(sum(B13:B18)=3,1,0)
B7 formula: =if(sum(B13:B18)=4,1,0)
 
  • Like
Reactions: ajm
Upvote 0
Not sure I quite understand the question. Would this cover your requirement?

Using Zot's table as example:
B4 formula: =if(sum(B13:B18)=1,1,0)
B5 formula: =if(sum(B13:B18)=2,1,0)
B6 formula: =if(sum(B13:B18)=3,1,0)
B7 formula: =if(sum(B13:B18)=4,1,0)
I was just guessing since it was not clear. Putting B in Core Courses is the way to relate the Core Courses table to Elective Table ;)
 
  • Like
Reactions: ajm
Upvote 0
Not sure I quite understand the question. Would this cover your requirement?

Using Zot's table as example:
B4 formula: =if(sum(B13:B18)=1,1,0)
B5 formula: =if(sum(B13:B18)=2,1,0)
B6 formula: =if(sum(B13:B18)=3,1,0)
B7 formula: =if(sum(B13:B18)=4,1,0)
Peter, this is almost what i want. using these formulas works when there is only one elective selected. if two electives are selected, the mark only shows against the second Elective 2 in the Core Subjects table, as the sum (in the electives table) is now two.
1616031347419.png


then when 2 electives are marked:

1616031404241.png


Thank you though. your answer gave me an idea. I have used the following formulas in conjunction with a simple sum formula in C20, under the electives table. Seems to work.
1616031865801.png

Thanks Peter.
 
Upvote 0
Solution
I was just guessing since it was not clear. Putting B in Core Courses is the way to relate the Core Courses table to Elective Table ;)
Zot, you get a gong too. in another column, i actually need to identify which Elective subject was selected so will be using what you sent through also.

Many thanks.
 
Upvote 0
Please use XL2BB in future so that we can just copy paste your sheet instead of recreated from picture.
 
Upvote 0
Zot, you get a gong too. in another column, i actually need to identify which Elective subject was selected so will be using what you sent through also.

Many thanks.
Yes. I don't see how to relate between table
 
Upvote 0
You meant something like this?
Elective.xlsx
AB
1CORE courses
2Cool Subject1
3Another Cool Subject1
4Elective 1B
5Elective 2
6Elective 3
7Elective 4
8Not as Cool Subject
9Ordinary Subject
10Elective Level 2
11
12Electives
13A
14B1
15C
16D
17E
18F
Sheet1

Did you have a formula that did this?
 
Upvote 0

Forum statistics

Threads
1,215,432
Messages
6,124,858
Members
449,194
Latest member
HellScout

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