Combine Google Sheets Workbooks (Files from Google Drive) to One Master - Google Colab

Поделиться
HTML-код
  • Опубликовано: 1 дек 2024

Комментарии • 60

  • @IGCSEAID
    @IGCSEAID 4 года назад +3

    My deepest appreciation to all your efforts. You are a life saver. Can you please add a series about google classroom since most schools are going towards online learning. Specifically about getting students data from google classrooms

  • @netboy1102
    @netboy1102 4 года назад +2

    Perfect! First thump up then watch the video.

  • @nicholastreurnicht
    @nicholastreurnicht 4 года назад +1

    Please keep doing these Colab videos, you've already taught us apps script

  • @GirishG
    @GirishG 3 года назад +1

    Hey, this is exactly what I was looking for. Thank you so much!

  • @Bluegoespewpewpew
    @Bluegoespewpewpew 4 года назад +3

    Excellent video, as always. I was wondering have you ever made a way to port Google Doc data (maybe a paragraph or an entire page) into google sheets? I've only seen the other way (Google Sheets - > Docs).

  • @飒几奥
    @飒几奥 8 месяцев назад

    awesome!!!thank you very much

  • @adriantohari
    @adriantohari 2 года назад

    Hi, thanks a lot for series of tutorials, it's helping, but i have a question for your tutorial, i'm getting stuck to getting file['id'], idk why every time i ran the code, print['id'] is didn't same with the actual id if i open the sheets. can you help me to debugging on this?

  • @prabhakarpawar5720
    @prabhakarpawar5720 3 года назад

    Thank you for the video it helped a lot just out of curiosity can we have that script on auto run after every 15 mins so that if new data is added that will get updated in our master file...?????

  • @aytekineraslan4531
    @aytekineraslan4531 2 года назад +1

    Hi,
    How can we print Combined Sheet names in A1:A and sheet names in B1:B ?
    When so many Worksheets and sheets are combined, we cannot understand where the data is coming from. I will be glad if you help. Thank you for your help.

    • @aytekineraslan4531
      @aytekineraslan4531 2 года назад

      Hello,
      I asked this question under your other video. Will you help or do you just read and pass the comments?
      I enjoy watching your videos and I look forward to your new videos. I hope you can help me with this.
      (I have 450 workbooks. I want to combine them and use them as database, but I need to print the workbook name in an empty column in the merged workbook. Otherwise, merging the workbooks does not make any sense. I hope you will write an answer that will solve my comment.)

  • @mdamirhossain9376
    @mdamirhossain9376 4 года назад

    I'm trying to generate report from my Google Sheet. So far, I prepare a template and publish the report as an HTML page (like your webapp tutorial). Its working perfectly.
    Now I want to save this published page as a PDF in my Google Drive or Local Hard-disk. What is the best method for this? Can you suggest me any possible way?

  • @anphung4214
    @anphung4214 3 года назад

    Awesome just wondering if i have multiple files that in different folders, how could i merge that into 1 master sheet?

  • @reyshinghuang6466
    @reyshinghuang6466 3 года назад

    Thank you for sharing this video!
    One question, can we insert one column "source name" that tells name of workbook?

  • @kiddingaround7234
    @kiddingaround7234 3 года назад

    Hi! Thank you for this tutorial. Its been extremely helpful. However, I have single sheets in multiple folders that I need to merge. Can you guide me on how I can do this. I am getting stuck after I manage to find all the folder ids. I dont know how to search in each folder id for the right file. Any guidance would be really appreciated! TIA

  • @trantronglam
    @trantronglam 3 года назад

    Great, I've been using your method for a while, it's really helpful.
    However, in recent times, when I change data of old sheets and update the data in the new sheet, the result is that the old data is still saved to the master sheet even though I check that it has changed. .
    Let me ask the cause and how to fix it.

  • @ArchibalXx
    @ArchibalXx 4 года назад

    Hello. Thank you for this wonderful video ! It really tackle what I need. Is there a way to execute the script from google sheet when it opens or create a button to update on demand ?
    Thank you for your feedback.

  • @muhiuj
    @muhiuj 3 года назад

    Is there any way to use columns as just columns instead of rows? Columns=rows is not what I want. I want to import the Spreadsheet in it's normal format. Thank you.

  • @emilianoreyes
    @emilianoreyes 4 года назад +1

    Thank you!

  • @prabhakarpawar5720
    @prabhakarpawar5720 3 года назад

    Thank you it helped me a lot but sometimes my data gets an extra space after any word why is that case...?

  • @ArchibalXx
    @ArchibalXx 4 года назад

    Hello. Does it work with Google Workspace ? I have did this and I have no problem using it to compile files from my Drive, however as soon as I want to do it with Drives that are shared, it doesn't work anymore. Is there a way to solve this problem ?

  • @valentinamonserratferradaj8474
    @valentinamonserratferradaj8474 4 года назад

    hi nice video, i have a question!! when i run the 3rd part of your code googlecolab says:
    AttributeError Traceback (most recent call last)
    in ()
    ----> 1 worksheet = gc.open_by_key('1doiAYEqtOqYHaKM4HAmU-mHC_VgU28-q').sheetl
    2 rows = worksheet.get_all_values()
    3 df = pd.DataFrame.from_records(rows[1:],columns=rows[0])
    AttributeError: 'Spreadsheet' object has no attribute 'sheetl'
    i dont know what to do to make ir right
    thanks

  • @chitrieu5908
    @chitrieu5908 2 года назад

    I received this error message:" list indices must be integers or slices, not str" for this line "sh = gc.open_by_key(file['id']).worksheet("Dashboard") and don't know how to fix it. Can anyone help, please?

    • @chitrieu5908
      @chitrieu5908 2 года назад

      My full script is:
      listed = drive.ListFile({'q': "'1QFPp0SbcWPdL01aTIcSfIpdCxfO8Nt4g' in parents "})
      for file in listed:
      sh = gc.open_by_key(file['id']).worksheet("Dashboard")
      rows = sh.get_all_values()
      df= pd.DataFrame.from_records(rows[1:],columns=rows[0])
      listofFrames.append(df)

  • @mahendra...---...
    @mahendra...---... 2 года назад

    Sorry newbi here,
    please can you teach how to make google collab keep running in the back.end so we don't need to keep hit 'RUN' while we editing the sheet everyday?

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  2 года назад

      Google Colab is a temporary environment, you can't keep running it in the backend. You can setup Python on your own computer and keep it running if you want or you can rent a server from Google or other provider, install python on it and keep it running 24/7.

  • @mahimanasa1
    @mahimanasa1 4 года назад

    Hi, Thanks a lot for series of tutorials, it is helping many of the professionals. I have one concern between excel and spreadsheet.
    1.is there any possibility to automatically import the live data Microsoft excel to spreadsheet using script??
    2. is there any possibility to pull the data from Google spreadsheet to excel using power query.
    I believe this is most awaited option for the many of the people to work with the data seemlessly.
    Thank you as always

  • @1337Omar
    @1337Omar 4 года назад

    Hi, it's possible to do this in reverse?
    From a master sheet create new workbooks based on: sales, brand, month, etc in a new folder?

  • @DanielRothrock
    @DanielRothrock 2 года назад

    Would you be willing to help me with something similar? If not, do you have someone you can recommend? I have a project that I've been using Combine Sheets from Ablebits with and it continues to fail. I spend too much time fixing the breaks than what's it's worth. This may be more beneficial.

  • @kankwan5928
    @kankwan5928 4 года назад

    Thanks you so much for this. I have a question - Is there any advantage of doing this in Google Colab over GAS?
    Just want to know the different of how these 2 tools can achieve. Thanks!

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  4 года назад +1

      Sometimes. With Google Colab you can run tasks over multiple threads when they get slow. You won't be able to do that with GAS, at least for the time being.

    • @kankwan5928
      @kankwan5928 4 года назад

      @@ExcelGoogleSheets Thank you!

  • @surendrasharma2042
    @surendrasharma2042 3 года назад

    what to do incase of excel file or csv in Drive folder instead of googlesheet????

    • @Sulaimangalib
      @Sulaimangalib 3 года назад

      Same process.

    • @contactlessliving7472
      @contactlessliving7472 2 года назад

      Hi, I have a similar case. If you've been successful at executing this project, can you please help me with mine?

  • @jean-philippebolle6365
    @jean-philippebolle6365 4 года назад

    Hi, very intersting as usual... I have a question: For my school, I created from google sheets 1000 Gdocs files (autocrat). How can I share them with teachers from google sheets? Is there a automation that allows to easily manage the sharing of a document to some teachers and not to others?
    Thanks for your answer...

  • @TheTramos00
    @TheTramos00 4 года назад

    Excellent videos as always but as a Javascript/Python expert what environment do you recommend ? Although I'm a Python lover I see too way complicated and elaborated ? all the initial setup required in Google Colab.

  • @hermestrismesgistus8258
    @hermestrismesgistus8258 3 года назад

    its not realtime update at master sheet ?

  • @RalphNgOfficial
    @RalphNgOfficial 4 года назад

    Hi, is it possible to have a Loop that point to Sheet 2
    I tried to modify the code to worksheet = gc.open_by_key(file['id']).sheet2
    but it just doesn't works, anybody can help?
    The second worksheet name is "WP Reconciliation"

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  4 года назад +1

      Is it the second sheet or sheet called sheet2

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  4 года назад +1

      ?

    • @RalphNgOfficial
      @RalphNgOfficial 4 года назад

      @@ExcelGoogleSheets no, the second worksheet name is "WP Reconciliation"?

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  4 года назад +1

      @@RalphNgOfficial Try gc.open_by_key(file['id']).worksheet("WP Reconciliation")

    • @nattybbogle
      @nattybbogle 3 года назад

      @@ExcelGoogleSheets What if you don't know the name of the worksheet and its different each time can you do something like worksheet = gc.open_by_key(file['id']).worksheet(0) ?

  • @ethancarlton7726
    @ethancarlton7726 2 года назад

    IndexError: list index out of range - Getting this error when running the loop any suggestions :)

    • @ethancarlton7726
      @ethancarlton7726 2 года назад

      listed = drive.ListFile({'q': "'ddddddddddddddddddddddddddddF' in parents and mimeType = 'application/vnd.google-apps.spreadsheet'"}).GetList()
      for file in listed:
      worksheet = gc.open_by_key(file['id']).sheet1
      rows = worksheet.get_all_values()
      df = pd.DataFrame.from_records(rows[1:],columns=rows[0])
      listOfFrames.append(df)

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  2 года назад

      Need more context

  • @walterpaiva719
    @walterpaiva719 4 года назад

    Hello, can you help me with this problem?
    I have a dataset that one column has tags, like:
    A
    B,C
    D,A
    C,D,B
    D
    How can I filter this like a list?
    A
    B
    C
    D
    Thanks in advance!

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  4 года назад +1

      What you mean by filter? You need a unique list of tags? How long is the column? How many rows?

    • @walterpaiva719
      @walterpaiva719 4 года назад

      @@ExcelGoogleSheets
      docs.google.com/spreadsheets/d/1HguiNtj68dMHUEyf9DOvagybBnM5BqMVGiNauLv2AoM/edit?usp=sharing
      I created this Sheet to explain it better.

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  4 года назад +2

      =sort(unique(transpose(split(TEXTJOIN(",",true,A2:A6),","))))

    • @walterpaiva719
      @walterpaiva719 4 года назад

      @@ExcelGoogleSheets Thanks a lot!!!!!!

  • @titashchowdhury441
    @titashchowdhury441 2 года назад

    Can anyone please tell me how to link two google notebooks

  • @Sulaimangalib
    @Sulaimangalib 3 года назад

    wsResult.update("A1",combinedData,value_input_option="USER_ENTERED")
    AttributeError: 'Worksheet' object has no attribute 'update'
    Not working the update attribute, why?

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  3 года назад

      run the install for the library to get the new version.