Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Help formating XLS to ASCII file for IRS 1099 submission

Posted on 2007-03-23
2
1,796 Views
Last Modified: 2013-12-11
Our Finance department needs to submit tax information electronically.  I need to convert spreadsheet data into an ASCII file.  The ASCII file will string together multiple records, but each must be exactly 750 characters long.  The first character of each record will identify the type of information to follow, which of course must conform to standards specified.

For example, one type of record requires data in following positions: 1, 2-9,10-30,31-49,50-57,58-499,500-507,508-748,749-750.  

I've been provided an xls spreadsheet containing the required information.  I expect to export each sheet within the workbook to a simple text or csv format, but the trouble I'm having is maintaining data in the format required.  I need a way to merge each row of data while conforming to location within the record.

So essentially I need a practical method to append all records together so the file can be submitted.

Any ideas?  Unfortunately I need this soon. Isn't always when you're swamped that other stuff comes at you out of the blue?  Any help would be appreciated.

Form is 1099 for electronic submission, IRS publication 1220 (p1220.pdf) describes it.



 

0
Comment
Question by:safebet
2 Comments
 
LVL 50

Accepted Solution

by:
Lowfatspread earned 500 total points
ID: 18781077
write a simple vba macro to append each cell into the desired position by padding/trimming the data
in the actual cell ...

then write the results to a txt file...


you could even record the format / position information into another worksheet and use that to controll the
record formatting...
0
 

Author Comment

by:safebet
ID: 19102115
Thanks, that was ultimately the approach taken - however I enlisted the help of someone more VBA proficient than myself.  But I appreciate the quick response and am sure if I had time to struggle through the process myself you probably would have assisted.  

Grade "A"!  

Appreciate the help.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question