+ Reply to Thread
Results 1 to 7 of 7

How can I Isolate headers? Thank you.

Hybrid View

  1. #1
    Registered User
    Join Date
    06-07-2007
    Posts
    4

    How can I isolate headers??

    Can someone please help me? I am trying to isolate the headers in a large file and place them in a separate column. Each of the headers are distinguished with four (4) equal signs. I believe I can use this pattern to locate and extract just the headers with some excel command unbeknownst to me.

    I have attached a sample file to this post, along with a more detailed explanation inside. Your help is most appreciated! Thank you.
    Attached Files Attached Files
    Last edited by noneothers; 06-07-2007 at 02:57 AM.

  2. #2
    Forum Contributor
    Join Date
    01-18-2005
    Location
    Auckland New Zealand
    MS-Off Ver
    Office Professional 2007
    Posts
    295

    Try Data Filter

    One way to display this is to use Data, Filter.

    Select the column A
    Choose Data, Filter, Filter.
    Click the arrow which appears at the top of column A
    Chose Custom.

    Under 'Show rows where', select Contains
    Type ==== in the box on the right
    Click OK.

    You should then see only the headers, and the 'title' row.
    To return to the full list, click the arrow and choose All.


    To copy the headers to another part of the spreadsheet, you need to use Advanced Filters

    For this you need 3 range names defined:
    The data (A5 to A8814 approx) - range name Database
    A criteria range - say A1:A2 - range name Criteria
    An output range - say M18 - range name Extract

    Also, copy the label from A5 to A1.

    Then in A2, type ="*====*"

    Then choose Data, Filters, Advanced Filters
    Then select Copy to another location
    Check that the ranges are completed correctly,
    Click OK

    The headers will be copied to a separate list starting in cell M18

    Regards
    Hth

    Regards
    Mike
    Last edited by Mikeopolo; 06-07-2007 at 03:31 AM.

  3. #3
    Registered User
    Join Date
    06-07-2007
    Posts
    4

    Thank you!

    Wow, thank you for the fast response! Your first method worked well for me. Theres just one problem thou, while I am able to isolate the headings, there are spaces infront of them. Is there anyway I can get rid of these? Or is there a way to isolate just the text itself?

  4. #4
    Forum Contributor
    Join Date
    01-18-2005
    Location
    Auckland New Zealand
    MS-Off Ver
    Office Professional 2007
    Posts
    295
    One way is to create a formula in the column on the right, hide the first column, and filter the new column.

    If the first row is a5, in b5 type =trim(a5), and double-click on the lower right-hand corner of the cell which will quickly copy it to the rest of the rows.

    hth

  5. #5
    Registered User
    Join Date
    06-07-2007
    Posts
    4

    Re:

    Trim works well, but when I try to cut & paste the new list into my database, it displays #Ref! instead (the formula im assuming). Am I doing something wrong?? Thanks again.

  6. #6
    Forum Contributor
    Join Date
    01-18-2005
    Location
    Auckland New Zealand
    MS-Off Ver
    Office Professional 2007
    Posts
    295
    Try using Paste Special, Values.

    But this may not give you what you want; you may have to use the Advanced Filter method in the second part of my answer.

+ 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