Find first observance of a cell value and delete row

cshap23

New Member
Joined
Mar 26, 2014
Messages
4
I have a a very large time series spreadsheet with many observed values of many variables. For each variable, I want to find and delete the first observation. It looks something like this

A * (x)
A *
A *
B * (x)
B *
B *
C * (x)
C *
C *

Each letter is one variable and each * is an observation. The (x) indicate the value I want to find and delete the entire row. Any suggestions? Thanks.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
I ont know what column you have that value or how your data really is

But you can use a filter, filter to show all occurrences of (X) and then delete all matching rows. After which, you remove the filter
 
Upvote 0
The (x)s are not actually in the spreadsheet. I just used them to illustrate which rows I want to delete.
 
Upvote 0
Are they the first instances of those variables or what?

I think they are. Just re-read your post :)

Now I see
 
Upvote 0
I might just set it up like this, knowing that the data has been sorted


Excel 2010
AB
1A0
2A1
3A1
4B0
5B1
6C0
7C1
8D0
9D1
10E0
11E1
12F0
13G0
14H0
15H1
16H1
17I0
18I1
19J0
20K0
Sheet3
Cell Formulas
RangeFormula
B2=IF(A2<>A1,0,1)


Any cell that has 0 is a first instance, so i would eventually filter and delete
 
Upvote 0
Great. Thank you. That worked. Could you add a little color to the "<>" function?

The "<>" simply means NEQ ("not equal to") .....So you are looking for instances where the data on a row is not equal to the data just above it.

There's not much more to it, or so I think
 
Upvote 0
Thank you. Everything is working as expected and was just able to run 8800 rows of inputs through my code.
 
Upvote 0

Forum statistics

Threads
1,223,248
Messages
6,171,021
Members
452,374
Latest member
keccles

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