I have many DAT files that need to be converted to excel workbooks by using delimited. Does anyone know how to automate that process rather than having me convert each DAT file manually? Trying to save some time here as a newbie 😢

like
Posting as :
works at
You are currently posting as works at

DAT files are generic data exports from an application, which often do not follow a specific standard. Thus, formatting of DAT files are inconsistent. Your best bet is to open the file in a text editor and see how it's formatted (e.g., comma delimited, tab delimited, pipe delimited, etc.) If it looks like a bunch of nonsense (i.e., random characters), it may be compressed, in a proprietary format (like a vendor-specific backup format), or some other issue. If the latter, you'll need to talk to who provided it to understand how to access the data.

If it is in a delimited format, you can use almost any programming language to parse it. Trivial to do if you already know how to program. I would recommend Python or Ruby for something like this. Another option - push the work back to the client. Make them give it to you in a ready-to-use format.

Scripting references - follow documentation to use the correct delimiter for your file.

https://docs.python.org/3/library/csv.html

https://ruby-doc.org/stdlib-3.0.1/libdoc/csv/rdoc/CSV.html

smarthelpful

Thank you so much! They are in delimited format so I think I will look into some beginner Python courses to do that, or Macro. Let me check out the links you provided first. :)

like

Pretty sure you can do this with Python, but depending on how many files you have, whether this is a repeatable task in the future, and whether or not you already have python set up, brute force manual conversions may be easier

like

Thank you! I don't know how to use Python, but the work will be repetitive each month in the future. Delimited will be using comma. Where would you suggest me to start?

I’ve done it with an excel macro. You can even set it up as a Personal Macro and a certain key combination so when you open the DAT file in excel and hit the key combination it kicks off the macro on the active worksheet

like

I'd add, to that macro the DIR() function will store the first file in a folder and calling again moves to the next, repeat infinite. Loop [MyFile= DIR(), open( MyFile), convert(MyFile), close(MyFile) save=false, next ] exit loop if myfile is null as end of list

Related Posts

San Antonio food and things to do???

like

Journalism is the best job in the world but I feel like people are less likely to take my work seriously because I am female. So it's like they automatically think the only things I would be good at writing about are fluffy little human interest stories. I'm just a reporter like everyone else. Is there some way I can tell my supervisor that yes, I do like those stories, but I like being a serious reporter even more?

like

How do I explain the importance of a digital marketing function to a PE (Private equity) board member? Any recommendations on what to focus on or highlight would be highly appreciated!

like

Requirement for java backend 3.5 + years
aws service 4+ at CTS
Dm me for refferal

like

I understand a CofC is triggered in an equity deal, but is that also triggered in an asset deal (along with assignment, obviously)?

like
like

Advice for someone having their first annual review? I have been well exceeding my role and am going to negotiate for a higher pay raise.

like

Any thoughts on Sidley's London office? How sharp elbowed are the associates and how much do partners genuinely try and help you develop a career? Bonus points if you can provide insight on how the corporate and finance departments work with specialists on transactional matters. As a final ask, are they genuinely into D&I and flexible working efforts or is this predominantly lip service? Thanks in advance!

Has anyone else hit the airplane mode button on their laptop when they get asked a hard question by the client they simply cannot answer. Hoping someone else will answer while I get "reconnected".

funnylike

Highest number of billable hours you have seen in a year?

like

Any good PM roles open? By good, I mean focused on PM activities and not covering down for unrealistic sales promises. Rapidly hitting my limit at my current org.

like

Hey fishes,
Are certifications important for hikes while switching companies?

like

Partners- joining a new firm next week at the manger level. Small group (~80 across US), what are some important things you think I should do to set myself up for success? I.e. what would impress you

like

Recommendations on how to simultaneously pay off student loans and invest?

like

With another Boeing 737 crashing, would it be wise to invest in Boeing Puts?

like

Hello IBMers,
IBM has offered me X amount ctc and i accepted it on portal....now got to know that market valuation for 10.3 yoe is greater than offered ctc....can i ask HR to increase the ctc and change the band...will they consider it?...not holding any counter offer as of now

like

Last year when Covid broke, I received a couple of interview calls but ignored them as I felt the organization kept me at work when other companies cut short their HR staff so I should be with them even if with no appraisal. But now, I was living in the fool's paradise when I am told to leave with no job offers in hand, car and home loan, dependent parents, expecting jobless spouse with a 3-year old kid.

I’m a simple guy. I see Mc🐝. I upvote.

like

Had to throw in the tahoe & wine country 🙄 douche

Post Photo
funnylike

Anyone have recommendations for CPAs based in Houston (or anywhere in Texas in the post pandemic world) who are familiar with working with BigLaw attorneys?

like

Additional Posts in Excel Genius

How useful are Macros and VBAs for tax prep?

like

Would anyone be willing to teach me vlookup?

like

Hey everyone! I am working on a report with the intention of updating the products that a specific customer uses. Currently, the data is arranged with the unique ID in Column A, and associated products in Column B. However, each product has its own row so company 1234 might have 5 rows and company 5678 might have 20. What I need to do is collect the product data for each unique company and put it into a single row, separated by a comma(s). I am at a crossroads, any suggestions?

like

What is the best online tool to pick up VBA?

likesmart

What’s the keyboard shortcut to get into the “insert options” dialogue when you’ve inserted a new row with Ctrl+Shift+Plus?

like

Hey guys, I have a Google spreadsheet where each cell has multiple links separated by semi-colons.

How would you get the links to show up in different rows WITHIN a cell? (Pictured is what I want to achieve).

Thank you so much🙏

Post Photo
like

Any suggestions for a formula to calculate a running count of the number of incidences in a list? For example, in a list with A, B, C, B; I want to label A = 1, then the first B =1, and first C = 1, and then the second B = 2, etc. The list is in a column and there are thousands of names. TIA for your help!

Does anyone know any shortcuts for the “Refresh All” button without having to always click Data->Refresh All every time I want to refresh the live data? For a Mac btw pls thanks!

Post Photo
like

Anyone know why a SUMPRODUCT cell would return to zero?

The error said ‘inconsistent formula’... (cont’d)

What would you consider "Advanced" or "Expert" level Excel usage?

like

Is there a way for me to automate creating columns to do this so I can drag across and create my columns? For example--
1Q2021 2Q2021 3Q2021 4Q2021 2021 1Q2022?

likesmart

What's a simple way to explain data organization to people who don't use formulas very often? People on my team love creating many tabs instead of adding columns for recording the same type of data...

like

Anyone have suggestions on where to start learning how to program add-ins with office.js?

like

I created a macro to help me save time on this onetime task and now whenever I open my excel, a blank excel opens with the name of the macro. How do I get rid of it?

like

How can I add names/a legend to this chart? After I add names, I will want to distinguish between two types of companies via color (eg, old companies vs new). Any ideas? On a Mac if that matters

like

PowerQuery > PowerBI .. thoughts ?

like

What are your top Excel ninja tricks? Ones that few people know...

like

Each country has multiple txns. Some complete, some not. What formula should I use to say if Indonesia has ANY “not complete” then show me the term “not done”. Tried IF(Index Match) but only (cont.)

Post Photo
like

Top 3 most useful VBA macro codes you use everyday? Would you mind sharing the VBA code or a link showing the code? I’ll start (cont.)

likehelpful

Why don't recent grads know how to use excel?

likehelpfulfunny

New to Fishbowl?

Download the Fishbowl app to
unlock all discussions on Fishbowl.
That was just a preview…
Sign Up to see all discussions
  • Discover what it’s like to work at companies from real professionals
  • Get candid advice from people in your field in a safe space
  • Chat and network with other professionals in your field
Sign up in seconds to unlock all discussions on Fishbowl.

Already a user?
Login here

Share

Embed this post

Copy and paste embed code on your site

Preview

Download the
Fishbowl app

See what’s happening in your industry
from the palm of your hand.

A phone with Fishbowl app

Scan your QR code to download
Fishbowl app on your mobile

Download app

Sign up for free to view this conversation on Fishbowl

By continuing you agree to Terms of Use and Privacy Policy

Already have an account? Log in

Sign up for free to continue using Fishbowl

By continuing you agree to Terms of Use(New) and Privacy Policy(New)
Messaging rates may apply

Already have an account? Log in

For account settings, visit Fishbowl on Desktop Browser or

General

Legal