How to isolate key rows in a very long table?

RasmusA

New Member
Joined
Oct 26, 2017
Messages
2
Dear MrExcel community,

I have a long list of data (10s of thousands of rows). Its behavioural data on a fish moving in and out of different 3 different zones (DECR, OFF, and INCR) in an aquarium. I need to separate/isolate the first row every time the fish move from one zone to another (bold in the raw data table). Right now, my only option is to process the data manually (I have no programming skills), but it will literally take 100s of hours. A colleague of mine mentioned this place and suggested I ask the community in here is there is a smarter way of doing it in excel?

I have provided an example below.

Raw data


Time
INCR (out)
DECR (out)
Zone
Time
1
6/14/2017/3:10:24
77,54
50,29
DECR
15:10:55
2
6/14/2017/3:10:25
77,53
50,26
DECR
15:11:16
3
6/14/2017/3:10:26
77,54
50,25
DECR
15:11:17
4
6/14/2017/3:10:27
77,53
50,24
DECR
15:11:18
5
6/14/2017/3:10:28
77,53
50,23
DECR
15:11:20
6
6/14/2017/3:10:29
77,51
50,21
DECR
15:11:21
7
6/14/2017/3:14:54
76,4
44,95
DECR
15:16:56
8
6/14/2017/3:14:55
76,37
44,96
OFF
15:16:57
9
6/14/2017/3:14:56
76,38
44,96
OFF
15:16:59
10
6/14/2017/3:14:57
76,39
44,97
OFF
15:17:00
11
6/14/2017/3:15:07
76,4
44,98
OFF
15:17:12
12
6/14/2017/3:15:08
76,4
44,96
INCR
15:17:14
13
6/14/2017/3:15:09
76,4
44,96
INCR
15:17:15
14
6/14/2017/3:15:10
76,38
44,95
INCR
15:17:16
15
6/14/2017/3:15:11
76,36
44,94
INCR
15:17:17
16
6/14/2017/3:15:12
76,36
44,95
INCR
15:17:19
17
6/14/2017/3:15:13
76,36
44,95
INCR
15:17:20
18
6/14/2017/3:15:26
76,38
44,8
OFF
15:17:36
19
6/14/2017/3:15:27
76,39
44,8
OFF
15:17:37
20
6/14/2017/3:15:28
76,4
44,78
DECR
15:17:39
21
6/14/2017/3:15:29
76,37
44,78
DECR
15:17:40
22
6/14/2017/3:15:30
76,36
44,76
DECR
15:17:41
23
6/14/2017/3:15:31
76,37
44,74
DECR
15:17:42
24
6/14/2017/3:15:32
76,37
44,72
DECR
15:17:44

<tbody>
</tbody>

Desired data (isolated manually)


Time
INCR (out)
DECR (out)
Zone
Time
1
6/14/2017/3:10:24
77,54
50,29
DECR
15:10:55
8
6/14/2017/3:14:55
76,37
44,96
OFF
15:16:57
12
6/14/2017/3:15:08
76,4
44,96
INCR
15:17:14
18
6/14/2017/3:15:26
76,38
44,8
OFF
15:17:36
20
6/14/2017/3:15:28
76,4
44,78
DECR
15:17:39

<tbody>
</tbody>

Best regards and thank you for taking the time to read my question.

Rasmus
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Hi Rasmus
Welcome to the board

Just add a new column where you check if the fish changed zone and filter.

In the example, in F2:

=(D2<>D1)

Copy down

In this column you'll have TRUE when the fish goes from one zone to another one.
Now filter with column F equal to TRUE and you have your result.
 
Upvote 0

Forum statistics

Threads
1,217,388
Messages
6,136,299
Members
450,002
Latest member
bybynhoc

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