List Questions on variable match

apgmin

Board Regular
Joined
Mar 1, 2010
Messages
150
Office Version
  1. 2013
Platform
  1. Windows
In Column b1, the student choses a subject from the list of 8 subject ( Done through, Data validation List )
Column b2, the student choses another subject from the list of the same 8 subject ( Done through, Data validation formula ). Both the subjects will never be the same

Column e has 20 questions for each of the 8 subjects,. ( A few are shown )

In Column M, I need a formula such that, B1=Physics, then E2 ; B1=Chemistry, then E7.
then a formula in M2, such that, B1=Physics, then E3 ; B1=Chemistry, then E8. and so on
I know how to populate Columns N to R

1724081179051.png

Thanks in Advance for your efforts
 

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.
Hi apgmin,

The ranges will have to be tweaked for each block (subject) but try this for the first block i.e. M2:M6 which will show you how to do it:

Excel Formula:
=XLOOKUP(1,($D$2:$D$16=$L$1)*($C$2:$C$16=L2),$E$2:$E$16)

Regards,

Robert
 
Upvote 0

Forum statistics

Threads
1,223,417
Messages
6,171,995
Members
452,438
Latest member
jimmyleung

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