+ Reply to Thread
Results 1 to 4 of 4

Filter text in a column by its Indent, to remove certain text

  1. #1
    99TZ250
    Guest

    Filter text in a column by its Indent, to remove certain text

    I want to filter text in a column by its indent. The format is such that
    each cell has text in it which is indented from the text above up to
    8 indents. The sequence is then repeated. I want to filter out the 5th to
    the 8th indents from the range.

    Any ideas.

  2. #2
    Norman Jones
    Guest

    Re: Filter text in a column by its Indent, to remove certain text

    Hi 99TZ250,

    >I want to filter text in a column by its indent. The format is such that
    > each cell has text in it which is indented from the text above up to
    > 8 indents. The sequence is then repeated. I want to filter out the 5th to
    > the 8th indents from the range.



    Perhaps you could use the Advanced filter on a helper column in which you
    use the following User Defined Function:

    '=============>>
    Public Function GetIndent(rng As Range) As Long
    GetIndent = rng.IndentLevel
    End Function
    '<<=============

    If you are not familiar with macros, you may wish to visit David McRitchie's
    'Getting Started With Macros And User Defined Functions' at:

    http://www.mvps.org/dmcritchie/excel/getstarted.htm


    ---
    Regards,
    Norman



  3. #3
    Registered User
    Join Date
    10-18-2012
    Location
    Tashkent
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Filter text in a column by its Indent, to remove certain text

    Ctrl+H > Options >
    Find what: -Format > Choose format from cell > choose your cell (with n number of indents);
    Replace with: -Format > Format > Fill > Backgroud color

    After replacing indents with bgcolor, you can easily filter

  4. #4
    Registered User
    Join Date
    04-09-2020
    Location
    Columbus OH
    MS-Off Ver
    365
    Posts
    1

    Thumbs up Re: Filter text in a column by its Indent, to remove certain text

    I have 350,000 subscribers, all CPAs, CFOs, controllers, Finance and Treasury exectuives, and many of the lists or spreadsheets they send have varying number of indents.

    My Medicare brain would NEVER understand or remember the VBA or macro so changing the background based on number of indents is my kind of solution.

    THANKS.

    Gary Zeune, CPA
    Managing Director
    The Pros & The Cons
    World's Only Speakers Bureau for White Collar Criminal

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1