Combine multiple Excel sheets into one using UiPath

Поділитися
Вставка
  • Опубліковано 19 вер 2024

КОМЕНТАРІ • 34

  • @softvlogs1360
    @softvlogs1360 8 місяців тому +1

    Can you please make a video on change position of coloumns

    • @autopilotatwork
      @autopilotatwork  7 місяців тому

      No problem. The next video will be about how to change the position of columns in the output file :)

    • @softvlogs1360
      @softvlogs1360 7 місяців тому

      @@autopilotatwork Thank you

  • @erbar6119
    @erbar6119 3 роки тому

    hi Michelle, me again. now that i've learned from you how to combine excel files into one, i need now to combine all the multiple worksheets within the newly created file into one final NEW excel worksheet. Before that happens, the multiple worksheets have to be renamed as per their original file names, i.e., files Dance.xlsx, Rest.xlsx and Rejoice.xlsx should have a combined new file with sheets Dance, Rest, Rejoice, respectively. thanks again in anticipation.

    • @erbar6119
      @erbar6119 3 роки тому

      When i copied and paste this xaml program, i get a null file but without any error prompt. what could be the issue

    • @autopilotatwork
      @autopilotatwork  3 роки тому

      @@erbar6119 I have checked the workflow. It was running fine for me. Perhaps you could try updating the file location within the workflow.

    • @autopilotatwork
      @autopilotatwork  3 роки тому

      Hi er bar, not sure why you need to rename them if you are going to merge them into one anyway. You could try doing a For each item on Filenames and then try to get just the filename by using path.getfilename(item.tostring).split("."c)(0) before writing to the final file.

    • @erbar6119
      @erbar6119 3 роки тому

      @@autopilotatwork tks again, i managed to rerun and got something, only it is only one worksheet's data instead of 7.

    • @erbar6119
      @erbar6119 3 роки тому

      i thought of renaming before merging coz :1) the original file names are unique persons' names 2) i wanted these info (person names) extracted as a new column entry to indicate that the database (the other columns/rows) pertains to this particular person and so on and so forth.

  • @varadarajan277
    @varadarajan277 2 роки тому +1

    Thank You!

  • @ooikaisheng3500
    @ooikaisheng3500 6 місяців тому

    How about multiple sheets into one sheet with all of the sheets has a common column as primary key? Thank You

    • @autopilotatwork
      @autopilotatwork  6 місяців тому

      Hi @ooikaisheng3500, the workflow will merge the shared column from all sheets into a single one. For instance, all Excel sheets demonstrated in the video feature a shared column titled "Name," and the resulting output file consolidates data from all "Name" columns into one.

    • @ooikaisheng3500
      @ooikaisheng3500 6 місяців тому

      Hi@@autopilotatwork , thanks for the reply. How about I don't want the name to be duplicated. Example, 'rock' has B in column E, I want 'rock's data in the same row of rock at row 5. Is that possible to be done in UiPath?

    • @autopilotatwork
      @autopilotatwork  6 місяців тому +1

      Hi ​@@ooikaisheng3500, in this case, instead of merging the data tables, you might wanna use another activity called Join Data Tables. This activity will allow you to join the data tables using the common column. You can also specify the join type you want. Hope this helps :)

  • @mikatapio7375
    @mikatapio7375 3 роки тому +1

    Can you explain how to combine multiple excel files into one Excel, so that each separate Excel has its own sheet in the new Excel?

    • @autopilotatwork
      @autopilotatwork  3 роки тому

      Hi Mika, hope you are well. Here's a video that explains how to do it ua-cam.com/video/ISaE6LdUyRU/v-deo.html

  • @thixuyenle9056
    @thixuyenle9056 2 роки тому

    thank you for this helpful video. Your solution is correct, but iam just wondering why we need condition "if" here, i tried without if-condition, it prints just the last sheet. Can you explan me more detail why if-condition is used there? Thank you.

    • @autopilotatwork
      @autopilotatwork  2 роки тому

      Hi Thi, the if condition is just to initialise the data table dtMain only if it is empty. We only need to initialise the data table once. In this example we initialise by cloning the data structure of first sheet.

  • @subbu4754
    @subbu4754 Рік тому

    Hi,
    Help me How to remove filters in UiPath ??? By using Ctrl+Shft+L

    • @autopilotatwork
      @autopilotatwork  Рік тому

      In Read range activity, make sure UseFilter property is unchecked. It's unchecked by default, so the filter wont be applied. If you want to use Ctrl+Shft+L, you can try HotKey or invoking VBA

  • @kirankiran-bf3ow
    @kirankiran-bf3ow 2 роки тому +1

    hello i have task so pls do it on video in ths topic
    Task: Extract DPs into separate excel sheets with respect to Region specified.
    Please extract all the DPs into separate excel files, where data has been captured (excluding DP codes with decimal values, i.e. only parent DPs required, have attached the DP list )
    And in each file data needs to be separated as per Region (List of regions provided in Dp list sheet)
    For reference have attached an sample output file, please follow the same format(File Name - 746_Data.xlsx)
    Please find the attached source files on which the extraction needs to be done(Retagged)

    • @autopilotatwork
      @autopilotatwork  Рік тому

      Hi Kiran, your files are not accessible but I sort of understand the task. I'll do a video based on similar idea.

  • @jingjing226
    @jingjing226 3 роки тому

    Hi, what happens if we use a get workbook sheet function and use a for each activity to loop it and have multiple sheets to store in the DataTable? Thanks if you could reply fast!!!!

    • @autopilotatwork
      @autopilotatwork  3 роки тому

      Hey Jing Jing, get workbook sheet function will only get you one sheet so it's not gonna work if you try to loop it.

  • @cssubbaraja
    @cssubbaraja Рік тому

    it is creating extra column in ouput

    • @autopilotatwork
      @autopilotatwork  Рік тому

      Have you tested with the package? Please see the description for the link.

  • @jiawu9893
    @jiawu9893 3 роки тому

    why I cannot get sequence, or excel application scope on my uipath app?

    • @autopilotatwork
      @autopilotatwork  2 роки тому

      Hi Jia wu, did you download Uipath studio community edition?

  • @owgjunxian7111
    @owgjunxian7111 2 роки тому

    hi at the very last step when im writing cell they say my datatable cannot be converted into string

    • @owgjunxian7111
      @owgjunxian7111 2 роки тому

      any way to help?

    • @autopilotatwork
      @autopilotatwork  2 роки тому

      @@owgjunxian7111 please check if variable type of ListOfSheet is List