+ Reply to Thread
Results 1 to 4 of 4

Extracting top row in CSV file

  1. #1
    Registered User
    Join Date
    09-14-2022
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    8

    Question Extracting top row in CSV file

    Hi All,

    I have many csv files in a specific path, each has its own number of headers and its relevant data (differs from file to file). Is there any option to extract only the headers from all the csv files in the specific path.

    Thanks in advance !!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,980

    Re: Extracting top row in CSV file

    I think you could probably do it with PowerQuery (Get & Transform on the Data ribbon).
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    09-14-2022
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    8

    Re: Extracting top row in CSV file

    Yeah !! but my headers aren't identical across files. Couldn't grab headers across all files.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,980

    Re: Extracting top row in CSV file

    Provide two files with different headers and I'll have a look and see. Otherwise it's guesswork.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Extracting data from raw file to another file
    By ell_ in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-14-2018, 10:54 AM
  2. Extracting a date from a file name.
    By NevilleT in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-19-2016, 04:20 PM
  3. [SOLVED] Extracting A File Name From A Path
    By zanshin777 in forum Excel Formulas & Functions
    Replies: 28
    Last Post: 01-11-2016, 12:53 PM
  4. Extracting data from file in directory and extracting filename
    By brad999 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-20-2014, 11:21 AM
  5. [SOLVED] Opening file and extracting file name and filepath
    By kenadams378 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-06-2013, 06:51 AM
  6. Creating a .txt file extracting information from a Excel file saving as .resx file
    By AbdallahHajbed in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-19-2012, 09:00 AM
  7. [SOLVED] Extracting text from one file to another
    By Vaud in forum Excel General
    Replies: 1
    Last Post: 02-11-2006, 05:45 AM

Tags for this Thread

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