How to extract data from a binary (.bin) file into excel sheet using vba

pratish2005

New Member
Joined
Dec 6, 2010
Messages
2
Hi,

I have a binary file (.bin extension) and it contains some data in it. I need to extract it and do some analysis. Could somebody tell me how to do that? I want a VBA code that would take the bin file, extract the data and put it in an excel sheet.

Thanks
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Welcome to Mr. Excel!

Is the data in some type of regular format?

Can it be read in Notepad?

Can you import the data? If so, just record a macro importing it and adjust it as needed.
 
Upvote 0
That's fairly easy. The question is: how do you want the data to be represented in the worksheet?

Do you want each byte from the file to appear as a single character in a separate cell? Or the actual value of each byte in a separate cell? Or do you want the contents encoded as hexadecimal, one byte per cell or multiple bytes per cell?

Do you have some sample data you could show us and then let us know what you would expect the worksheet to look like?
 
Upvote 0

Forum statistics

Threads
1,215,581
Messages
6,125,656
Members
449,246
Latest member
jbbtz28

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