Forum Discussion

Adam08780's avatar
Adam08780
Copper Contributor
Feb 06, 2024
Solved

Return Values from Other Tabs

I'm trying to return what the values from tab 1 for duty & tab 2 for location in tab 3 log

Tab 1 duty rota

DateJohnZack   
01/02SDPNCQ   
      


Tab 2 location

NameMonTueWedThuFri
JohnWFHOfficeOfficeWFHWFH
ZackOfficeWFHWFHOfficeOffice


Tab 3 log

DateDayTimeNameDutyLocation
01/02Thur13:00JohnSDPWFH
01/02Thur14:00ZackNCQOffice

 

I was thinking index match match but couldn't get it to work
I don't want to use VLOOKUP as it'll drain to much processing power
Potentially =IFS with "" somewhere?
Please advise

  • Adam08780 

    =INDEX($B$8:$F$9,MATCH(D13,$A$8:$A$9,0),MATCH(B13,$B$7:$F$7,0))

     

    An alternative could be INDEX and MATCH. In cell E7 i've replaced "Thu" by "Thur" to return an exact match.

  • Adam08780 

    =INDEX($B$8:$F$9,MATCH(D13,$A$8:$A$9,0),MATCH(B13,$B$7:$F$7,0))

     

    An alternative could be INDEX and MATCH. In cell E7 i've replaced "Thu" by "Thur" to return an exact match.

    • Adam08780's avatar
      Adam08780
      Copper Contributor
      I can't get the formula to work properly for location
      It accepts it but doesn't populate the right answer
      I've tried changing the names and still doesn't work correctly
      What was the formula for duty too?
      I've never seen a VERGLIECH function either
      Please advise
      • OliverScheurich's avatar
        OliverScheurich
        Gold Contributor

        Adam08780 

        Attached is my sample file. VERGLEICH is MATCH in english Excel or COINCIDIR in spanish Excel or..... I've translated the whole formula into english in my first reply. All formulas in the attached file are shown in your language when you open the file.

         

        Formula for duty

        =INDEX($B$3:$C$3,MATCH(A13,$A$3,0),MATCH(D13,$B$2:$C$2,0))

        Formula for location

        =INDEX($B$8:$F$9,MATCH(D13,$A$8:$A$9,0),MATCH(B13,$B$7:$F$7,0))

        Both formulas are filled down as shown in the sample file.

    • Adam08780's avatar
      Adam08780
      Copper Contributor

      Edited response. Troubleshooting formula later tonight

Resources