Forum Discussion

dm3333's avatar
dm3333
Copper Contributor
Nov 21, 2022
Solved

If Then Statements Across 2 Spreadsheets

Every semester our school gives us a big report of class grades but I only need to track some students and classes. How can I set it up so I can match students names and classes and return specific g...
  • HansVogelaar's avatar
    Nov 21, 2022

    dm3333 

    With a layout like this:

    In B2 on Spreadsheet 2:

     

    =IFERROR(INDEX(Sheet1!$C$2:$C$200,MATCH(1,(Sheet1!$A$2:$A$200=$A2)*(Sheet1!$B$2:$B$200=B$1),0)),"-")

     

    If you don't have Microsoft 365 or Office 2021, confirm the formula by pressing Ctrl+Shift+Enter.

    Fill down, then to the right or vice versa.

    See the sample workbook below.

Resources