Combining multiple rows to one

M

mbfriesen

I have a txt file (seperated by commas) that I have imported into
excel. The problem is one line shows the customer name, address,
account number. the other line shows products, price, quantity. It is
seperated like this in the text file as well. All rows with the
customer name address and account number begin with a cell that has the
number 2 in it. All rows with the products, price, quantity begin with
a cell that has the number 3 in it. There will always be only one
customer but there can be multiple product rows. For me to manage this
data I need the customer info and the product info on one row. What
function can I use that will tell excel IF a row begins with a 3 add it
to the end of the preceding row that begins with a 2. That will also
be able to do this with multiple rows of 3's.
 
A

Alan Beban

Is the number of columns uniform? I.e., are there always 3 columns
following the 2 and 3 columns following the 3?

Alan Beban
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top