merge data in multiple rows into one row

Dana1

New Member
Joined
Apr 15, 2011
Messages
3
Hi,I am trying to shorten a spreadsheet and make it easier to manipulate by putting travel records into one row. The way the data is displayed now is at least 3 and in some case up to 11 rows capture 1 record. The data deals with business trips. The travel code is what links each record and is the one identifier that is different. The rest of the data is traveler's name, title, date departed, location, date arrived, location, etc. each departure, location, and arrival are in a different row but the name, title, travel code all are repeated. I found the thread for "Bill asked this week's question about redundant Excel data" and tried using the =IF(A2=A1,C1 B2,B2) but it's not working. for one, it expects a calculation rather than for data to be moved from one cell to another. So my questions is: is there a similar formula that I can use where instead of actually specifying a cell I can ask if this is the first time "travel code" is encountered and it's the same is the next row, then move "x" data to a certain cell until the last of the same "travel code" is encountered?
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
I figured most of it out, i just can't figure out how to delete the rows that I moved the data from. does anyone have any ideas on this?
 
Upvote 0

Forum statistics

Threads
1,224,584
Messages
6,179,691
Members
452,938
Latest member
babeneker

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