Тёмный

Excel Macros with JavaScript & Node JS - Read Excel File to JSON, Modify & Write Back to Excel 

Learn Google Sheets & Excel Spreadsheets
Подписаться 275 тыс.
Просмотров 143 тыс.
50% 1

Learn how to create Excel scripts with JavaScript & Node.js. In this tutorial we'll read an Excel file to JSON object, modify the data & write to a new Excel file using the new data.
nodejs.org/
code.visualstu...
docs.sheetjs.com/
#excel #javascript #nodejs

Опубликовано:

 

8 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 169   
@DanhWasHere
@DanhWasHere 4 года назад
Great tutorial! Btw 5:56 is when he starts coding the script if you are already familiar with Node workflow.
@OrbitTurner
@OrbitTurner 2 года назад
Thanks a lot ! I was fast forwarding the thing until i seen this !
@nickersonlauriston1582
@nickersonlauriston1582 2 года назад
This video was AWESOME!!!!! I learned sooo much from the video than from hours of reading documentation. Thanks!
@JuanMartinRuiz
@JuanMartinRuiz 4 года назад
Thank you for this video, it helps me to apply it with test driven with selenium. Greetings from Buenos Aires, Argentina
@ExcelGoogleSheets
@ExcelGoogleSheets 4 года назад
You should check this out ru-vid.com/group/PLRmEk9smitaXljDN2CjwZ96o4Aj87iuC5
@reallyefficient
@reallyefficient 3 года назад
I've loved your channel for the last year - you are such a breath of fresh air. I may not understand a LICK of what you are doing but you make it seem so effortless. Thank you for your videos!
@animeshkr29
@animeshkr29 3 года назад
Each and every step is from the scratch ,thanks a lot
@ameensams
@ameensams 4 года назад
Wow wow, for a non-pro coder "yet" this is the first video on youtube that made me feel coding isn't only an endeavour of the genius. BTW do you have a course on udemy? Thanks for your insight, this opens up another level of understanding for me. What you did here, I usually do using macros on excel.
@ExcelGoogleSheets
@ExcelGoogleSheets 4 года назад
No udemy courses, but maybe check out my advanced channel if you are interested in more programming videos ru-vid.com/show-UCJebzvfCuA5ymtb79DQm36A
@keithpowell8123
@keithpowell8123 2 года назад
Great video! Clear and concise - the best one I've found on this topic! I am going to check out your other automation tutorials.
@ExcelGoogleSheets
@ExcelGoogleSheets 2 года назад
Thanks!
@dokedoke0426
@dokedoke0426 2 года назад
Man, I am a fulltime student but part time working as a data entry and the work I have to do weighs nearly a million data and it lags every time I run that shit excel file until I found this Video!!! I learnt frontend web dev and a little about node js. And boom! I found this video and now I can just spend too little time on my shitty work and focus on my real career improvement! Thank you brother!
@ExcelGoogleSheets
@ExcelGoogleSheets 2 года назад
👍
@armandocontreras8563
@armandocontreras8563 2 года назад
fabulous very well explained stip by stip, just what I was looking for
@RizkySamPratama
@RizkySamPratama 4 года назад
Thank you very much, the explanation is very clear. it really help me a lot .
@blessinagolle1473
@blessinagolle1473 Год назад
saved me..tq🙂Hoping for more vedios
@ExcelGoogleSheets
@ExcelGoogleSheets Год назад
😊
@vamsikonduru4841
@vamsikonduru4841 3 года назад
thanqq very much dude u saved my job
@sabrinamckinney512
@sabrinamckinney512 3 года назад
super helpful for new programmers and out of season. thanks so much for posting this video.
@MrXuFan
@MrXuFan 4 года назад
Awesome video! Very practical.
@chengqinglow4034
@chengqinglow4034 3 года назад
Thank you!
@onderyurdaer
@onderyurdaer Год назад
Very nice, easy and understandable explanation, smooth and simple program compilation. Thanks
@mohammadalmokdad1309
@mohammadalmokdad1309 3 года назад
Thank you so much, this was really helpful !
@gastondev4919
@gastondev4919 4 года назад
Very useful, super clear explanation and easy to learn, thank you!
@ExcelGoogleSheets
@ExcelGoogleSheets 4 года назад
Great to hear!
@BlackZero880
@BlackZero880 2 года назад
this was the easy peazy method ever on xlsx
@omnarayan7066
@omnarayan7066 3 года назад
Really good for me Thank you Sir.
@h.h3296
@h.h3296 4 года назад
so useful, straight to the point! thanks
@guilhermexavier2803
@guilhermexavier2803 2 года назад
Awesome video! Thanks
@mohamedkhalilarfaoui5682
@mohamedkhalilarfaoui5682 2 года назад
thank you , Great video , super helpful , Very practical
@gabrielbatista3676
@gabrielbatista3676 3 года назад
Just saved me. Thank you!!
@akshitha2110
@akshitha2110 3 года назад
This is such an amazing video. Really Helpful. How can we access a particular range of cells and how can we give name of the keys instead of taking the first row? Can anyone help on this?
@Orafasb
@Orafasb 4 года назад
Thanks dude! This great video helped so much!
@TheEnzoachi
@TheEnzoachi 2 года назад
Great video sir. Thanks a lot
@ExcelGoogleSheets
@ExcelGoogleSheets 2 года назад
👍
@jameskalenga7546
@jameskalenga7546 2 года назад
Thanks a lot for sharing
@anudeepsyamprasad6586
@anudeepsyamprasad6586 4 года назад
Thank you so much for your time and effort. Explained so neatly..
@manuelcasares7270
@manuelcasares7270 3 года назад
Thank you so much!!
@user-kb6jh6wn7o
@user-kb6jh6wn7o 3 года назад
Very nice video my friend. Thanks.
@vincerolf1
@vincerolf1 4 года назад
Thans too for this clear explaination to a from z. It help me. You should continue to make some short exemple of what it is possible to do and usually used in buisness.
@sephiroLord
@sephiroLord 4 месяца назад
Question for you, is it possible to have a workbook as an API source that people with access can retrieve data from it with the right commands? if so is there a tutorial on how to go about it?
@muthunatarajan4498
@muthunatarajan4498 19 дней назад
Neat and simple. It works perfectly fine from Terminal. But how do I call this from an HTML file? Thanks a lot
@fullStackInKannada
@fullStackInKannada 4 года назад
Thank you for this video, it really helped me a lot :)
@edjaeger356
@edjaeger356 2 года назад
Well done and super useful. Thanks! Are you planning on creating a series about using Excel Javascript API?
@ExcelGoogleSheets
@ExcelGoogleSheets 2 года назад
Will be doing videos about Excel online scripts, which is based on Javascript API.
@iand954
@iand954 Год назад
Thank You! One question: is it possible to keep style of 1st file during modifying? I mean cells: background color, width, borders and ect
@soldeal4422
@soldeal4422 2 года назад
Excellent merci pour ce tuto
@hengkilodwig
@hengkilodwig 2 года назад
Hi , Can you show me if in the cell have a data validation? how you read data validation and make the new sheet with the same data validation?
@juanpablovelandia8930
@juanpablovelandia8930 4 года назад
thank crack , greeting from Colombia
@tiwarirr
@tiwarirr 5 лет назад
Very good Video Sir. I am Waiting for more!
@mitulvaghela906
@mitulvaghela906 4 года назад
Crisp and concise!!
@computerrcat870
@computerrcat870 3 года назад
thanks
@mc-ti5uq
@mc-ti5uq 4 года назад
awesome explanation... great video... thank you very much :)
@click2gopal
@click2gopal 4 года назад
Thanks for the video.
@GuilhermeHenrique-vo1sk
@GuilhermeHenrique-vo1sk 2 года назад
Great tutorial !
@ExcelGoogleSheets
@ExcelGoogleSheets 2 года назад
Thank you!
@frankmyatthu2406
@frankmyatthu2406 3 года назад
Great job, let me also know how we can create customized function so that excel can call like formula
@user-js9pd7cv6g
@user-js9pd7cv6g Год назад
Bravo!
@ExcelGoogleSheets
@ExcelGoogleSheets Год назад
👍
@thankinhaithankinhaisystem2318
@thankinhaithankinhaisystem2318 4 года назад
tks you for your sharing video.
@monalishaswain9932
@monalishaswain9932 4 года назад
thankew so much ...i's actuALLY HELPFULL
@cedrio1027
@cedrio1027 4 года назад
thx man this helped very much
@ajayzz8175
@ajayzz8175 4 года назад
A great video indeed 🙌🏻
@easy-draw
@easy-draw 4 года назад
Great video . I have question how do you target all sheets in excel file instead of one.
@sushmaajitjalady2285
@sushmaajitjalady2285 4 года назад
Thank you so much.....
@bhattaraitheaxe
@bhattaraitheaxe 3 года назад
Awesome ❤️
@josericardo3015
@josericardo3015 3 года назад
Tks for the video! Have you got any video with instructions to get the content (data) from one excelonline workbook, located in onedrive and push this data to a googlesheet? Let me know! Ps: As that excel workbook in onedrive is always refreshed, the idea is to have the googlesheet updated. 👍
@sreekanthreddy1976
@sreekanthreddy1976 2 года назад
What should be the correct way to add a new column with data and write to the existing XLS sheet rather than write and generate a new file?
@televisedfeedback6660
@televisedfeedback6660 Год назад
With the map function you set, record.Sales - record.Cost, how could it be rewritten so that it's record.Sales - record.Sales from a different row? I've used some of this coding and I'm trying to automate measuring change over time. Thank you for your time. :)
@lorenzobandinelli2638
@lorenzobandinelli2638 3 года назад
in 18:26, when he's writing that function, where does that "record" inside the callback function come from? or is it just a name to refer to itself?
@crypto4ever525
@crypto4ever525 3 года назад
Thanks a lot for this beautiful video!! i am streaming data from an api (server side) and like to convert the live json data in to excel file, so i can see the data updated every 3 seconds. (already have refreshed data in my node console) can you please advice me how to do it? thanks a lot for any help with this one :-)
@naveenr9563
@naveenr9563 3 года назад
Hi really a nice video, here's a question how do I append data to the same excel file by adding another column rather than creating new excel file. Could you please help me
@niteshkedia
@niteshkedia 4 года назад
can we do the same for .xslm in node.js
@muzamilhussain2550
@muzamilhussain2550 3 года назад
Hey bro, your video is awesome. I have one question. If we don't create a new file and add a new row to an existing file and saved data in this file. how can we do this?
@johng5295
@johng5295 4 года назад
Thanks in a million.
@sanjayeshwar6904
@sanjayeshwar6904 3 года назад
Thanks for this video.. it's really very helpful.. one thing, can we display what's there in consol into the web? And is it possible to display a perticular row instead of displaying hole table? Please can u help with this.. this will help me with my project.
@DavidMartin-iq9ix
@DavidMartin-iq9ix 2 года назад
You can send the data to your front end using JSON.parse(data, null, 2) and display it inside of a pre tag. To display a single row you would just return the index of the object/row you're trying to render
@drekforder2952
@drekforder2952 2 года назад
is there a way to get value of a certain cell, like I want a value just of a let's say A1 cell. how whould I do that?
@juliusdx
@juliusdx 2 года назад
Hi for some reason my output file data appears in a different column to the original file? i.e. data in column A in original file appears in column D in the output file.. any ideas??
@dangkhanhlinh476
@dangkhanhlinh476 5 лет назад
nice tutorial ! :))))
@ace.mccloud5425
@ace.mccloud5425 4 года назад
Are you using any extension to open "Excel" files in Visual Studio Code?
@minhazahmed128
@minhazahmed128 2 года назад
How would I keep the design (styles) of the xlsx file?
@ahmedchouihi
@ahmedchouihi 4 года назад
Is there any tutorial with CRUD and angular included
@baluprasad3794
@baluprasad3794 4 года назад
Hi Please help on how to update particular cell value using node js and java script
@amritgupta1540
@amritgupta1540 5 лет назад
if you want to read data from specific row then what should we do?
@lestermaravilla2767
@lestermaravilla2767 4 года назад
sir, can you give an example about this? by browsing or uploading a file?
@paarthsoin3615
@paarthsoin3615 3 года назад
what if instead of simple key pair data is in form of key: array of objects
@sahoo.subrat
@sahoo.subrat 2 года назад
How to detect duplicate cells in a sheet and merge those duplicate cells only
@muzamilhussain2550
@muzamilhussain2550 4 года назад
Please explain how we can read multiple worksheets from one excel file
@negociosonline40
@negociosonline40 3 года назад
how do i import data from excel and add it to a node.js file?
@xchrisbradley
@xchrisbradley 5 лет назад
I think reduce instead of map would be better for performance. I work with millions of records and performance is key
@xchrisbradley
@xchrisbradley 5 лет назад
I would also be careful about delete. You should use a reduce function then return a new array with only the keys you want to use. cont updated = data.reduce(record => { return {record.net: record.Sales - record.Cost, record.Brand, so on...} })
@ExcelGoogleSheets
@ExcelGoogleSheets 5 лет назад
Can you explain why reduce would have any preformance benefits in this case? I'm not summing up a column, I'm iterating row by row and get a result for each row.
@starktv8646
@starktv8646 2 года назад
It was a great video, but how can I save the file as json ?
@jaiviksoftweb1863
@jaiviksoftweb1863 2 года назад
How to Append data in same sheet "New Data"? For Ex. insert anything in same sheet. (My error : New Data already exist.)
@rogercolque
@rogercolque 3 года назад
i want this for m.s Word docs. modify then and keep the format file. not matter if create a new file.
@AyushSharma-iw9do
@AyushSharma-iw9do 4 года назад
Thanks for the video, but this map() function is through exception in angular as "data.map is not a function", pls suggest!
@ExcelGoogleSheets
@ExcelGoogleSheets 4 года назад
has nothing to do with angular. that usually means that data at that point was not populated with an array.
@nasirahmad4324
@nasirahmad4324 3 года назад
Can you please tell me how to read from that sheets and write it into a google doc
@K3N_L33
@K3N_L33 5 лет назад
is this can be applicable to any excel file type? like csv/xls ??
@bhaskarroy3364
@bhaskarroy3364 2 года назад
10:30 I cannot proceed as my var ws = wb.Sheets("Sheet Name"); returns an error called Sheets is not a function. I searched online but no specific help on the same.
@bhaskarroy3364
@bhaskarroy3364 2 года назад
Edit: Just found out online that as it is an array, I have to write it as ["Sheet Name"].
@hablu
@hablu 3 года назад
How to handle End of data reached error in xlsx or excel js
@SarthakKumar
@SarthakKumar 2 года назад
Hi, i just had one question, can we do the changes in the same worksheet itself without creating a new one??
@ExcelGoogleSheets
@ExcelGoogleSheets 2 года назад
Not with this library. To make changes in the same file you'll need Windows with Excel installed and basically hook into VBA code though Python to make changes to the file and save. If you are 365 Business user you may want to look into Excel Automate ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Yso6-jWFATo.html
@rajat420420
@rajat420420 2 года назад
Hi, how can I delete the worksheet? I can't see any method can u help me
@Akash-sq2cs
@Akash-sq2cs 2 года назад
sir , how to use json_to_sheet in apps script
@liangguanggang7170
@liangguanggang7170 4 года назад
Thank you so much much much much
@ExcelGoogleSheets
@ExcelGoogleSheets 4 года назад
Glad it helped!
@viveks-yt
@viveks-yt 4 года назад
Good learning, but always share github link with every tutorial.
@vaulinaapriyani1573
@vaulinaapriyani1573 3 года назад
Hi, thank you before with this video. I got problem when view terminal is showing Windows PowerShell, not xlsx-node adm$ I already install nodejs. Can please help me? Thank you
@ExcelGoogleSheets
@ExcelGoogleSheets 3 года назад
Check my other channel for help with nodejs and vscode installation ru-vid.com/show-UCJebzvfCuA5ymtb79DQm36A
@granand
@granand 2 года назад
Can I do everything that VBA does in JS and Node JS as excel plans to move to this?
@ExcelGoogleSheets
@ExcelGoogleSheets 2 года назад
Not really, at least not at the moment.
@kevincamarillo1152
@kevincamarillo1152 3 года назад
How can I start reading from a specific row? 🙏🏼
@shriniwasbhardwaz2949
@shriniwasbhardwaz2949 3 года назад
Hey if we are adding a link to Excell file on OneDrive in xlsx.readFile(" ")
@la_pulga8224
@la_pulga8224 Год назад
how can I delete a row from an excel file
@rohitvishwakarma9261
@rohitvishwakarma9261 7 месяцев назад
what about macros ?
@ahmedchouihi
@ahmedchouihi 4 года назад
Is there any file with dummy data excel
@Oscarda016
@Oscarda016 3 года назад
anyone else having issues with node script.js? what i keep getting ReferenceError: readFile is not defined
Далее
Google Sheets API - JavaScript NodeJS Tutorial
45:29
Просмотров 114 тыс.
JavaScript Pro Tips - Code This, NOT That
12:37
Просмотров 2,5 млн
Will A Guitar Boat Hold My Weight?
00:20
Просмотров 80 млн
Why Office Scripts Won't Replace VBA
8:51
Просмотров 28 тыс.
Use Excel VBA to Read API Data
20:48
Просмотров 136 тыс.
Power Query - Avoid "Helper Queries" (+10 Cool Tricks)
18:40
If __name__ == "__main__" for Python Developers
8:47
Просмотров 400 тыс.
Save Excel Table to a JSON File with Simple VBA Macro
20:00