Forum Discussion

bmil3015's avatar
bmil3015
Copper Contributor
Jul 22, 2024
Solved

Display Specific Value Based on Multiple Inputs

Hello, I'm trying to display a specific value based on multiple inputs. Details:   Rate Schedule Table: Description Rate Schedule #1 Rate Schedule #2 Personnel A $70 $75 Personnel B ...
  • djclements's avatar
    Jul 23, 2024

    bmil3015 You can try a double-XLOOKUP or INDEX-MATCH-MATCH:

     

    =IFNA(XLOOKUP(selected_personnel, personnel_range, XLOOKUP(selected_schedule, schedule_range, rate_range)), 0)
    
    //OR
    
    =IFNA(INDEX(rate_range, MATCH(selected_personnel, personnel_range, 0), MATCH(selected_schedule, schedule_range, 0)), 0)
    
    //For example:
    
    =IFNA(XLOOKUP(F2, A2:A6, XLOOKUP(F1, B1:C1, B2:C6)), 0)
    
    //OR
    
    =IFNA(INDEX(B2:C6, MATCH(F2, A2:A6, 0), MATCH(F1, B1:C1, 0)), 0)

     

    Sample Results

     

    XMATCH can also be used instead of MATCH.

Resources