Can we Extract ZIP file via Excel Power Query.

AJ_121

New Member
Joined
Jan 3, 2020
Messages
17
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
Dear,
i have a file path which has .Zip file and When i open that .Zip inside that i got a .CSV file which data i need.
another i have a file path which has .CSV file and i need to combine both .Zip file CSV File and this one.

But i am stuck because i am unable to download that zip file via power query and when i try then it comes in different language/Format.



Kindly help to download the data of zip file..

Any help will be appreciated.

Thanks.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hi,
I did same as in above blog. but didn't get my result.
Below are the Steps what i have done:
Step 1- ref. image"Step1"

Step 2- ref. image "Query"

after doing this step i get this ref. image "image2"

but what to do now?? when i am doing open as CSV then it comes in different format/Binary/Language.

and other open as functions not working.

I tried a lot but didn't reach on actual data.


?here is that link which data i need "https://www1.nseindia.com/content/historical/DERIVATIVES/2020/MAY/fo12MAY2020bhav.csv.zip"
or "https://www1.nseindia.com/ArchieveSearch?h_filetype=fobhav&date=11-05-2020&section=FO "

You can check the link and make the data as i need.

Kindly Help.
Thanks
 

Attachments

  • Step1.PNG
    Step1.PNG
    44 KB · Views: 641
  • Query.PNG
    Query.PNG
    12.6 KB · Views: 626
  • image2.PNG
    image2.PNG
    20.6 KB · Views: 629
Upvote 0
there is something wrong with the zip file (from your urls)
I tested on dummy data and it works

unzip.png
 
Upvote 0
maybe because this is for local files
File.Contents("[Full path to your zip file]")
not from web
 
Upvote 0
maybe because this is for local files
File.Contents("[Full path to your zip file]")
not from web
I did change in File.Contents and made it Web.contents but i am getting this which is in Attached Image.
And i did the same process for dummy zip file which is from different Source but same type of file which is in bytes as in attached image.


If any option to auto download option and get in excel sheet the data from my source website which i have mentioned, Let me know.


Thanks.
 

Attachments

  • image2.PNG
    image2.PNG
    20.6 KB · Views: 255
Upvote 0
You can try but i think you'll not be able to do that from the url

i tried with zip from the url as local file but it doesn't work, with my own zip file it works as you can see on the image
as i sad there is something wrong with zip file from the url
 
Upvote 0
You can try but i think you'll not be able to do that from the url

i tried with zip from the url as local file but it doesn't work, with my own zip file it works as you can see on the image
as i sad there is something wrong with zip file from the url
Can you Share the steps that how we can Unzip a file from my pc local files.
 
Upvote 0
all is described under link post#2 . i can say nothing more except post image with steps order
 
Upvote 0

Forum statistics

Threads
1,223,793
Messages
6,174,624
Members
452,575
Latest member
Fstick546

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top