Duplicates in Multiple criteria

sumsaam

Board Regular
Joined
Dec 31, 2012
Messages
82
Office Version
  1. 2010
Platform
  1. Windows
i can get punch time of every employee through multiple criteria formula. my question is that every employee has 2,3 or 4 punches in one day. how to get all values saparately. i mean to say that if result of multiple criteria returns two or more values, then how to get all these values saparately
13-03-2023 - Copy.xlsx
ABCD
1Emp IDFirst NameDateTime
23Mustafa13-03-202312:12
34Afaq13-03-202311:16
49Ali13-03-202311:16
510Saif13-03-202311:16
610Saif13-03-202316:54
72Riaz13-03-202311:16
811Afnan13-03-202311:16
Sheet
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’). There are some new functions in the newer versions that can make these tasks much simplerm but we do not want to suggest them if you do not have that version.
 
Upvote 0
This can be done quite easily in Excel versions 2019 and newer, as the introduced a FILTER function that makes this simple.
But it is not available in Excel 2010. The combinations of functions to do it can be a bit complex, and are shown here: 5 easy ways to VLOOKUP and return multiple values

It can be done more simply using the FILTER method (not the function) that exists in 2010, but that is not a formula.
VBA is another option, if you do not like the long formulaic methods shown in the link I provided or by using the FILTER method.
 
Upvote 0
Here is a non 365 solution. It is tricky, but makes sense:
I'm not sure if Aggregate functions are in 2010, but I think they are. Also, i'm unsure if you have to enter using the CTRL-SHFT-ENTER keystroke or not.

mr excel questions 29.xlsm
ABCDEFGHI
1Emp IDFirst NameDateTime
23Mustafa13-03-202312:12Mustafa12:12  
34Afaq13-03-202311:16Afaq11:16  
49Ali13-03-202311:16Ali11:16  
510Saif13-03-202311:16Saif11:1616:54 
610Saif13-03-202316:54Riaz11:16  
72Riaz13-03-202311:16Afnan11:16  
811Afnan13-03-202311:16   
sumsaam
Cell Formulas
RangeFormula
G2:I8G2=IF(COUNTIF($B$2:$B$8,$F2)<COLUMNS($G2:G2),"",AGGREGATE(15,6,($F2=$B$2:$B$8)/($F2=$B$2:$B$8)*($D$2:$D$8),COLUMN(G2)-6))
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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