Data

themrg

New Member
Joined
Sep 9, 2010
Messages
3
Hi Guys,

I hope you can help me. I received some data in the following format:
Mr|A| Jones| $500| 15 Sunset Road| Claremont|||
15/3/2010|Invoice|$2000|
20/3/2010|Payment|$1500|
Mr|G| Moses| $2000| 20 Musket Road| Bellville|||
15/3/2010|Invoice|$4000|
30/3/2010|Payment|$2000|

I need change this raw data so that all the information appears in one string or row. eg:
Mr|A| Jones| $500| 15 Sunset Road|Claremont|15//2010|Invoice|$2000|20/3/2010|Payment|$1500|
I've already been able to split the information into two tables 1 with client data only (Mr|A| Jones| $500| 15 Sunset Road| Claremont|) and the other with transaction data only (15/3/2010|Invoice|$2000|)

I have unique numbers that could link the transaction to the customer (so all Mr Jones' transactions have 1 as a reference while all Mr Moses' has 2 as a reference.

Is there any way I can combine these tables into one? Or is there perhaps an easier way of getting the data above into one row that I'm not seeing?
 
Last edited:

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
18,193
Office Version
2013
Platform
Windows
Have you looked at Data / Text to Columns
and use the | as the delimiter
 

themrg

New Member
Joined
Sep 9, 2010
Messages
3
Hi Michael,

Hmmm.. Let me give it a go and I'll let you know if it worked.
 

themrg

New Member
Joined
Sep 9, 2010
Messages
3
Hi Michael,

Just thought I'd give you some feedback. I managed to get all my info I needed in one string of data using MS Word and the find and replace function.

First I removed the paragraph symbol that caused the text to separate (go find and replace ^13). Since every line started with the words "statement period" I could find and replace it with "^|statement period". This puts a manual spacing between each string. I then exported to .txt and imported it to excel using the| as a deliminator.

Thanks for your help!
 

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
18,193
Office Version
2013
Platform
Windows
Well done, glad you got it sorted...
You obviously didn't need any help, you did it yourself....LOL!
 

Forum statistics

Threads
1,082,175
Messages
5,363,564
Members
400,750
Latest member
007432

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top