Filter but not quite
Manage your personal finances in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 4 of 4

Thread: Filter but not quite

  1. #1
    Board Regular
    Join Date
    Feb 2002
    Location
    Brisbane, Down Under
    Posts
    542
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    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. #2
    MrExcel MVP Ivan F Moala's Avatar
    Join Date
    Feb 2002
    Location
    Auckland, New Zealand
    Posts
    4,209
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #3
    Board Regular
    Join Date
    Feb 2002
    Location
    Brisbane, Down Under
    Posts
    542
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Of course - I was thinking of a more complex solution - thanks again

  4. #4
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    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 ]

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 

 
DMCA.com