Solved

Help formating XLS to ASCII file for IRS 1099 submission

Posted on 2007-03-23
2
1,695 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

705 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now