combine 2 rows into 1 record

G

Guest

I have a worksheet like this:
(row 1 ) custome_name account_no time_on
(row 2) time_off phone_no

there are several hundred of additional rows following . I need to combine
each set of 2 rows into 1 row/record to be sorted.

what I want:
(row 1) custome_name account_no time_on time_off
phone_no

Can anyone help?
 
D

Dave Peterson

So odd number rows have columns A:C populated and even numbered rows have
columns A:B populated??

If yes, I'd put this in D1:
=IF(MOD(ROW(),2)=1,"keep","delete")

Then this in E1:
=IF($D1="keep",A2,"")

And this in F1:
=IF($D1="keep",B2,"")

Now drag these three formula cells down the columns.

Select D:F
Edit|copy
Edit|paste special|values

Select column D
data|filter|autofilter
filter to show "delete"
Delete those visible rows
data|Filter|autofilter (to remove the filter)
 

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