Forum Discussion

klausvm's avatar
klausvm
Frequent Visitor
5 years ago

Filter multiple sheets with different data by the filename

Hi there

 

I'm wondering if its possible to load a bunch of Excel files from a folder and filter them by the date created (or the date thats part of the file name).

 

All the Excel files are the same, but they contain multiple sheets with different columns. Not one sheet is the same in each file.

 

So I would be like to add the different sheets to the report and use the date from the file names to filter the data. 

 

Is this doable?

 

Thanks alot in advance,

Klaus

11 Replies

  • klausvm 

    When you use Get Data > Folder option to import multiple files, you get the following screen which allows you to filter the files on the dates you require.

     



     

    • klausvm's avatar
      klausvm
      Frequent Visitor

      Anybody who can help me with a solution?

       

      Thanks in advance

      • Fowmy's avatar
        Fowmy
        Super User

        klausvm 

        If you need to identify each sheet and its data with the file Created Date which you want to use as filters for your data in the report, you can add a custom column when you import from a Folder like I showed. Then, you can 

        Once you have done that, expand the Custom column only with Name and Data, The Name contains the Sheet Name. You will have data and related created date from file it came from

         



        =Excel.Workbook([Content])

         

  • klausvm's avatar
    klausvm
    Frequent Visitor

    Thanks Downy. I know that much.

     

    I want to be able to filter the different sheets in the report by the date of the files they come from. There is no date columns in the files, so there is no relationship between the different sheets and files.

     

    Do you know what I mean?