Filter but not quite

SamS

Well-known Member
Joined
Feb 17, 2002
Messages
542
I have some 50,000 lines of imported data and the last column shows either "OK" or "CHECK". If it is "CHECK" I need to view both this row and the preceding row to review the data.

As there are some 300 such rows I have to review is there a way to hide all other rows other than the "CHECK" and the preceding rows I require.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hi

You could create another column and place
this formula in the column

Assuming Data starts @ B5
=IF(B6="CHECK","CHECK",B5)

Then fill down

Now you can Autofilter on this column
and select CHECK.

All the formula is doing is placeing a CHECK
in the row above the CHECK row so that autofilter will do this row as well.

HTH

Ivan
 
Upvote 0
This could be accomplished without adding 50,000 formulas to your worksheet...

Use an Advanced AutoFilter with a computed criteria. Suppose your "CHECK"/"OK" values are in column B beginning on row 2. You could enter the formula, =OR(B2="CHECK",B3="CHECK"), into cell E2 and declare your Advanced AutoFilter Criteria range as E1:E2.
This message was edited by Mark W. on 2002-03-01 12:35
 
Upvote 0

Forum statistics

Threads
1,214,376
Messages
6,119,180
Members
448,871
Latest member
hengshankouniuniu

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