Picking up rows that match certain criteria

Passi

New Member
Joined
Jun 7, 2020
Messages
1
Office Version
  1. 2013
Platform
  1. Windows
Hi,
I need to fix some payroll error which has generated thousands of rows. What I need is for every employee who has an attached Cost Centre TK-D9206 I need find data wherever he has other cost centres attached. I don't need to find for an employee if he is not in TK-D9206. I am concerned only for an employee who is sitting in TK-D9206. Could you please provide a solution. I below give data and solution that I need.
PAYROLL TEST.xlsx
ABCDEFGHIJKLMNOPQ
1Data to work onOutput required
2COST CNTEMP NOEMP NAMEPAY PRDFOR PAY PRDCOST DESCR$ACC CODECOST CNTEMP NOEMP NAMEPAY PRDFOR PAY PRDCOST DESCR$ACC CODE
3TK-D92064430DUP GEN73Base Sal120.220660TK-D92064430DUP GEN73Base Sal120.220660
4TK-D92064430DUP GEN73Emp Allowance2220610TK-D92064430DUP GEN73Emp Allowance2220610
5TK-D92064430DUP GEN73Meal Allowance1020612TK-D92064430DUP GEN73Meal Allowance1020612
6TK-T10124430DUP GEN73Base Sal-117.220660TK-T10124430DUP GEN73Base Sal-117.220660
7TK-T10124430DUP GEN73Emp Allowance-1220610TK-T10124430DUP GEN73Emp Allowance-1220610
8TK-T10124430DUP GEN73Meal Allowance-320612TK-T10124430DUP GEN73Meal Allowance-320612
9TK-X11224430DUP GEN73Base Sal-320660TK-X11224430DUP GEN73Base Sal-320660
10TK-X11224430DUP GEN73Emp Allowance-120610TK-X11224430DUP GEN73Emp Allowance-120610
11TK-D92064360HUST TIK73Base Sal2020660TK-D92064360HUST TIK73Base Sal2020660
12TK-D92064360HUST TIK74Emp Allowance320610TK-D92064360HUST TIK74Emp Allowance320610
13TK-H12124360HUST TIK73Base Sal-1820660TK-H12124360HUST TIK73Base Sal-1820660
14TK-S25254360HUST TIK74Emp Allowance-220610TK-S25254360HUST TIK74Emp Allowance-220610
15TK-D92061225STAN TAS76Base Sal3620660TK-D92061225STAN TAS76Base Sal3620660
16TK-L92061225STAN TAS75Base Sal-520660TK-L92061225STAN TAS75Base Sal-520660
17TK-D82161225STAN TAS75Base Sal-2420660TK-D82161225STAN TAS75Base Sal-2420660
18TK-N11113232TAK TIK74Base Sal1420660
19TK-N41213232TAK TIK74Base Sal-920660
20TK-N41223232TAK TIK74Base Sal-520660
Sheet1

 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Hi & welcome to MrExcel.
How about

+Fluff New.xlsm
ABCDEFGHIJKLMNOPQ
1Data to work onOutput required
2COST CNTEMP NOEMP NAMEPAY PRDFOR PAY PRDCOST DESCR$ACC CODECOST CNTEMP NOEMP NAMEPAY PRDFOR PAY PRDCOST DESCR$ACC CODE
3TK-D92064430DUP GEN73Base Sal120.220660TK-D92064430DUP GEN73Base Sal120.220660
4TK-D92064430DUP GEN73Emp Allowance2220610TK-D92064430DUP GEN73Emp Allowance2220610
5TK-D92064430DUP GEN73Meal Allowance1020612TK-D92064430DUP GEN73Meal Allowance1020612
6TK-T10124430DUP GEN73Base Sal-117.220660TK-T10124430DUP GEN73Base Sal-117.220660
7TK-T10124430DUP GEN73Emp Allowance-1220610TK-T10124430DUP GEN73Emp Allowance-1220610
8TK-T10124430DUP GEN73Meal Allowance-320612TK-T10124430DUP GEN73Meal Allowance-320612
9TK-X11224430DUP GEN73Base Sal-320660TK-X11224430DUP GEN73Base Sal-320660
10TK-X11224430DUP GEN73Emp Allowance-120610TK-X11224430DUP GEN73Emp Allowance-120610
11TK-D92064360HUST TIK73Base Sal2020660TK-D92064360HUST TIK73Base Sal2020660
12TK-D92064360HUST TIK74Emp Allowance320610TK-D92064360HUST TIK74Emp Allowance320610
13TK-H12124360HUST TIK73Base Sal-1820660TK-H12124360HUST TIK73Base Sal-1820660
14TK-S25254360HUST TIK74Emp Allowance-220610TK-S25254360HUST TIK74Emp Allowance-220610
15TK-D92061225STAN TAS76Base Sal3620660TK-D92061225STAN TAS76Base Sal3620660
16TK-L92061225STAN TAS75Base Sal-520660TK-L92061225STAN TAS75Base Sal-520660
17TK-D82161225STAN TAS75Base Sal-2420660TK-D82161225STAN TAS75Base Sal-2420660
18TK-N11113232TAK TIK74Base Sal1420660        
19TK-N41213232TAK TIK74Base Sal-920660        
20TK-N41223232TAK TIK74Base Sal-520660        
Camps
Cell Formulas
RangeFormula
J3:Q20J3=IFERROR(INDEX(A$3:A$20,AGGREGATE(15,6,(ROW($A$3:$A$20)-ROW($A$3)+1)/(COUNTIFS($B$3:$B$20,$B$3:$B$20,$A$3:$A$20,"TK-D9206")>0),ROWS(J$3:J3))),"")
 
Upvote 0

Forum statistics

Threads
1,214,895
Messages
6,122,128
Members
449,066
Latest member
Andyg666

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