Retrieve correct data in a table with formulas

Arkine

Board Regular
Joined
Aug 3, 2014
Messages
86
Hello everyone,

Thanks again for your help so far.
I have a new problem below :

I have a big data table like this:
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Status[/TD]
[TD]Shift[/TD]
[TD]Date[/TD]
[TD]Hour[/TD]
[TD]Min[/TD]
[TD]Sec[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[TD]C/Out[/TD]
[TD]S2[/TD]
[TD]23/08/2019[/TD]
[TD]2[/TD]
[TD]4[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[TD]C/In[/TD]
[TD]S1[/TD]
[TD]23/08/2019[/TD]
[TD]10[/TD]
[TD]42[/TD]
[TD]14[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[TD]C/Out[/TD]
[TD]SC[/TD]
[TD]23/08/2019[/TD]
[TD]23[/TD]
[TD]59[/TD]
[TD]26[/TD]
[/TR]
[TR]
[TD]Jim[/TD]
[TD]C/In[/TD]
[TD]S1[/TD]
[TD]22/08/2019[/TD]
[TD]9[/TD]
[TD]9[/TD]
[TD]23[/TD]
[/TR]
</tbody>[/TABLE]

So Bob clocked out the 23/08/2019 at 02:04 AM and clocked in again at 10:42AM, and so on.

I want to retrieve from this table values sorted by C/In, C/Out, Out for Break, Back from Break. Example with clock in:
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]C/In[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Name[/TD]
[TD]Shift[/TD]
[TD]Date[/TD]
[TD]Hour[/TD]
[TD]Min[/TD]
[TD]Sec[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]= Find name occurences with "C/In" : Bob[/TD]
[TD]Retrieve corresponding shift S1[/TD]
[TD]= Find the 1st date with Clock in :
23/08/2019[/TD]
[TD]10[/TD]
[TD]42[/TD]
[TD]14[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Jim[/TD]
[TD]S1[/TD]
[TD]22/08/2019[/TD]
[TD]9[/TD]
[TD]9[/TD]
[TD]23[/TD]
[/TR]
</tbody>[/TABLE]
..

So basically i'm looking for a formula that retrieves all the values linked to C/In and that can be incremented.

Thanks for your help and please do tell me if i'm not clear enough.

Arkine
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Forum statistics

Threads
1,223,897
Messages
6,175,270
Members
452,628
Latest member
dd2

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