You are here:

Excel/Re-allocate cell components


Dear Tom,

I extracted my finance reports directly from our Oracle system, but always it gives me a .txt file as output.

To apply some analysis on all extracted reports, it will require to copy from .txt to excel, but data in excel shown in first cells always (column A as per attached).

Is there any way to apply an formula, take each info to a separate column that I can apply the analysis easier and faster?
means, in my attached example.. column A, it should show Customer name,   column B, it should show Outstanding amount, column C, it should show Current, column D, it should show More than 30 days outstanding....etc.

Thanks & Regards


YOu didn't provide any picture (which is all you can attach) of your data but In general, if you open a text file (file with a .txt extension) in excel, the text import wizard will open up and all you to choose whether you data is in a fixed column format (the first 7 characters are in column 1, the second five characters are in column 2 and so forth) or if they are delimited (each entry has a comma on the end so Customer name, Outstanding amount, Current, and so forth).

if you choose the proper format of your text file and then click the next button, it will give you a preview of how it will separate your data.  If you are in fixed column format, you can drag the lines around or add or delete lines (column delimiters) until you get the layout you want.  You then click next and you can handle any formatting issues that are unique to a column such as date order.  Then you click OK and the file should be brought in near to the way you want it.

If you do open it an everything is in column A, you can do the same thing by selecting column A, then go to the data tab and select text to columns.  This will lead you through the same choices.

If you wanted formulas instead, you can probably do that using the MID worksheet function.  If you have variable width columns, then you would need other functions as well.  But since I can't see you file, I can't really suggest anything more than what I have told you.

Tom Ogilvy  
About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here


All Answers

Answers by Expert:

Ask Experts


Tom Ogilvy


Selected as an Excel MVP by Microsoft since 1999. Answering Excel questions in Allexperts since its inception in 2001. Able to answer questions on almost all aspects of Excel's internal capabilities. If seeking a VBA solution, please specify that in your question itself so I give you the answer you want. [Excel has weak protection - if you are distributing an application, I don't answer questions on how to protect your project from your users.]


Extensive experience.

Master of Science (MS) degree Operations Research (ORSA)

Awards and Honors
Microsoft MVP in Excel.

©2017 All rights reserved.

[an error occurred while processing this directive]