Index with multiple matches from seperate tabs

mtaylor

Board Regular
Joined
May 1, 2013
Messages
73
Platform
  1. Windows
  2. MacOS
Hi all,

Ok, I have the student login details for everyone in the school. I've created this dashboard but need it a little more secure than simply typing in the orison number (unique student identifier), I want the use to type in their orison number and their DOB.

Where the class (KG2A) is in the picture below, I am using the formula: =index(UPS!B2:B,(match(F6,UPS!S2:S,0))*(match(C5,UPS!C2:C,0)))

UPS is the seperate tab which holds all the information required.
Column B = class
Column C = orison number
Column S = DOB

My issue atm, is that it worked, however when I input change the DOB but keep the orison number as is, the class remains the same. I want the two variables to work together and produce the class, and if they don't work together produce an error.

Screenshot 2021-01-03 at 16.38.23.png



Many thanks
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Try this one which must be entered as an array formula. In excel that is done by pressing Ctrl Shift and Enter together, it appears that you are using google sheets which may be slightly different.
Excel Formula:
=index(UPS!B:B,SMALL(IFERROR(ROW(UPS!B2:B)/(F6=UPS!S2:S)/(C5=UPS!C2:C),""),1))
 
Upvote 0
Solution
Try this one which must be entered as an array formula. In excel that is done by pressing Ctrl Shift and Enter together, it appears that you are using google sheets which may be slightly different.
Excel Formula:
=index(UPS!B:B,SMALL(IFERROR(ROW(UPS!B2:B)/(F6=UPS!S2:S)/(C5=UPS!C2:C),""),1))
Love it!!

Many thanks.
 
Upvote 0

Forum statistics

Threads
1,214,926
Messages
6,122,305
Members
449,079
Latest member
juggernaut24

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