How to copy two rows of data into one

Mikey13

New Member
Joined
Apr 24, 2005
Messages
14
I have been given the daily responsibility of importing into Excel a mainframe text file to format and distribute to the sales staff. Most of the data in the text file imports into one cell on one row, with the exception of the part number description which unfortunately comes into Excel as two rows because the mainframe has the description formatted into two rows. Is there method to combine the two row description into one cell? As an example, the data would import as such:

Branch Year Part Description Ctn Qty
23 2009 12345 Brown-White Wire 2500
125 Volt 4 Lead

The description which imports into Excel as two lines needs to be combined into one cell with the associated data. I appreciate any assistance or suggestions.

Thank you
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
It is not clear how your data is laid out.
Assuming row 1 has the heading and it starts in row 2, continuing to use 2 rows each time, try this formula in B2 copied down ...

=IF(INT(ROW()/2)=ROW()/2,A2&A3,"")

It works by checking even row numbers and adding them what is in the cell in the next row. Odd number rows give "".

You can then copy the new column and use edit\paste special\values in place to convert the formulas to values. Delete the original column and sort the new column to get rid of empty rows.

look at this
http://www.mrexcel.com/forum/showthread.php?t=486700
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,942
Messages
6,122,367
Members
449,080
Latest member
Armadillos

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top