Find job code based on 2 criteria in a different data set no longer working

cmacnab

Board Regular
Joined
Jun 24, 2013
Messages
57
Office Version
  1. 2016
Platform
  1. Windows
Hi, I have 2 data sets. I need to find the job code based on a date & employee ID. The formula was working with the prior data set but now I have changed one data set and the formula is no longer working. The logic is fairly simple, on a specific date, for a specific person, what job were they working?

The 1st data set that works (column Q is the result I'm looking for):
PP01-2022 Reuben's (2020-12-13 to 2021-12-26).xlsx
ABCHIKLMPQ
1ADP ID#CashoutDescriptiondateof netsales totalcc totalcctips employeenameemployeeid displayname Job Code
27CN6200000072American ExpressTue-14-Dec-21$ 32.00$ 42.31$ 5.52Andres R406 Reubens SERVER
37CN6200000072CashTue-14-Dec-21$ 272.50$ -$ -Andres R406 Reubens SERVER
47CN6200000072InteractTue-14-Dec-21$ 233.00$ 309.75$ 41.87Andres R406 Reubens SERVER
57CN6200000072Master ChargeTue-14-Dec-21$ 153.00$ 201.77$ 25.86Andres R406 Reubens SERVER
67CN6200000072VISATue-14-Dec-21$ 322.50$ 428.90$ 58.11Andres R406 Reubens SERVER
77CN6200000072CashThu-16-Dec-21$ 102.00$ -$ -Andres R406 Reubens BARTENDER
87CN6200000072InteractThu-16-Dec-21$ 36.00$ 47.60$ 6.21Andres R406 Reubens BARTENDER
97CN6200000072Master ChargeThu-16-Dec-21$ 30.00$ 39.66$ 5.17Andres R406 Reubens BARTENDER
107CN6200000072American ExpressSat-18-Dec-21$ 143.00$ 197.29$ 32.88Andres R406 Reubens SERVER
117CN6200000072CashSat-18-Dec-21$ 203.00$ -$ -Andres R406 Reubens SERVER
127CN6200000072InteractSat-18-Dec-21$ 209.50$ 277.82$ 36.94Andres R406 Reubens SERVER
137CN6200000072Master ChargeSat-18-Dec-21$ 505.79$ 684.66$ 103.13Andres R406 Reubens SERVER
147CN6200000072VISASat-18-Dec-21$ 360.50$ 480.96$ 66.46Andres R406 Reubens SERVER
157CN6200000072American ExpressSun-19-Dec-21$ 35.00$ 46.28$ 6.04Andres R406 Reubens BARTENDER
167CN6200000072Master ChargeSun-19-Dec-21$ 138.50$ 183.14$ 23.89Andres R406 Reubens BARTENDER
Declared Tips & Pool
Cell Formulas
RangeFormula
A2:A16A2=VLOOKUP($M2,'Validation Sheet'!$D:$F,3,FALSE)
Q2:Q16Q2=IFERROR(INDEX('Punch Report'!$H:$H,MATCH(1,($C2='Punch Report'!$B:$B)*($A2='Punch Report'!$A:$A),0)),"Takeout")
Press CTRL+SHIFT+ENTER to enter array formulas.
Named Ranges
NameRefers ToCells
'Punch Report'!_FilterDatabase='Punch Report'!$A$1:$U$338Q2:Q16
Cells with Conditional Formatting
CellConditionCell FormatStop If True
Q2:Q482Cell Value="Takeout"textNO
Q2:Q482Cell Value="BARTENDER"textNO
Q2:Q482Cell Value="SERVER"textNO
Q1,Q483:Q1048576Cell Value="Takeout"textNO
Q1,Q483:Q1048576Cell Value="BARTENDER"textNO
Q1,Q483:Q1048576Cell Value="SERVER"textNO


This is the data set that it is looking at for the result:
PP01-2022 Reuben's (2020-12-13 to 2021-12-26).xlsx
ABFGHILMOR
1ADP ID#SingleInvoicePaidOpenedClosedEmployee NameEmployee IDAMPMJob Code
347CN62000000721292174336.79Tue-14-Dec-21Tue-14-Dec-21Andres R406AM#N/A
357CN62000000721292176755.19Tue-14-Dec-21Tue-14-Dec-21Andres R406AM#N/A
367CN62000000721292177927.59Tue-14-Dec-21Tue-14-Dec-21Andres R406AM#N/A
377CN62000000721292177827.59Tue-14-Dec-21Tue-14-Dec-21Andres R406AM#N/A
387CN62000000721292177725.29Tue-14-Dec-21Tue-14-Dec-21Andres R406AM#N/A
Sales by Shift PP01-2022
Cell Formulas
RangeFormula
A34:A38A34=VLOOKUP($M34,'Validation Sheet'!$D:$F,3,FALSE)
R34:R38R34=INDEX('Punch Report'!$H:$H,MATCH(1,($H34='Punch Report'!$B:$B)*($A34='Punch Report'!$A:$A),0))
Press CTRL+SHIFT+ENTER to enter array formulas.
Named Ranges
NameRefers ToCells
'Punch Report'!_FilterDatabase='Punch Report'!$A$1:$U$338R34:R38
Cells with Conditional Formatting
CellConditionCell FormatStop If True
R2:R2240Cell Value="Takeout"textNO
R2:R2240Cell Value="BARTENDER"textNO
R2:R2240Cell Value="SERVER"textNO
R1Cell Value="Takeout"textNO
R1Cell Value="BARTENDER"textNO
R1Cell Value="SERVER"textNO


Any help is greatly appreciated! :)
 

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
Excel Formula:
{=INDEX('Punch Report'!$H:$H,MATCH(1,(INT($H34)='Punch Report'!$B:$B)*($A34='Punch Report'!$A:$A),0))}
 
Upvote 0
Try
Excel Formula:
{=INDEX('Punch Report'!$H:$H,MATCH(1,(INT($H34)='Punch Report'!$B:$B)*($A34='Punch Report'!$A:$A),0))}

Thanks Fluff, unfortunately didn't work. Got #NAME? as a result. See below (R2 is an array formula, not sure why it is not showing it):

PP01-2022 Reuben's (2020-12-13 to 2021-12-26).xlsx
ABFGHILMOR
1ADP ID#SingleInvoicePaidOpenedClosedEmployee NameEmployee IDAMPMJob Code
27CN60000000501292175196.01Tue-14-Dec-21Tue-14-Dec-21Danny C302AM#NAME?
37CN60000000501292176264.39Tue-14-Dec-21Tue-14-Dec-21Danny C302AM#NAME?
47CN60000000501292177288.53Tue-14-Dec-21Tue-14-Dec-21Danny C302AM#NAME?
57CN600000005012921814100.03Tue-14-Dec-21Tue-14-Dec-21Danny C302AM#NAME?
Sales by Shift PP01-2022
Cell Formulas
RangeFormula
A2:A5A2=VLOOKUP($M2,'Validation Sheet'!$D:$F,3,FALSE)
R2R2=INDEX('Punch Report'!$H:$H,MATCH(INT,($H2='Punch Report'!$B:$B)*($A2='Punch Report'!$A:$A),0))
R3:R5R3=INDEX('Punch Report'!$H:$H,MATCH(INT,($H3='Punch Report'!$B:$B)*($A3='Punch Report'!$A:$A),0))
Press CTRL+SHIFT+ENTER to enter array formulas.
Named Ranges
NameRefers ToCells
'Punch Report'!_FilterDatabase='Punch Report'!$A$1:$U$338R2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
R2:R2240Cell Value="Takeout"textNO
R2:R2240Cell Value="BARTENDER"textNO
R2:R2240Cell Value="SERVER"textNO
R1Cell Value="Takeout"textNO
R1Cell Value="BARTENDER"textNO
R1Cell Value="SERVER"textNO
 
Upvote 0
That is not what I suggested. ;)
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,588
Members
449,089
Latest member
Motoracer88

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