![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Location: Brisbane, Down Under
Posts: 533
|
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. |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
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 |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Location: Brisbane, Down Under
Posts: 533
|
Of course - I was thinking of a more complex solution - thanks again
|
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
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 ] |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|