Splitting a column with 2 values each below the other into 2 columns i.e account number and date

%3CLINGO-SUB%20id%3D%22lingo-sub-1340873%22%20slang%3D%22en-US%22%3ESplitting%20a%20column%20with%202%20values%20each%20below%20the%20other%20into%202%20columns%20i.e%20account%20number%20and%20date%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1340873%22%20slang%3D%22en-US%22%3E%3CP%3EHow%20do%20I%20do%20this%2C%20I%20have%204000%20lines%20with%20account%20number%20on%20fist%20line%20and%20date%20on%20the%20next%20line%20has%20a%20date%20but%20I%20would%20like%20these%20two%20things%20to%20be%20next%20to%20each%20other.%3C%2FP%3E%3CP%3EThe%20complicating%20factor%20is%20that%20the%20date%20row%20is%20below%20the%20account%20number%20row%20but%20I%20wish%20to%20have%20it%20in%20the%20same%20row%20as%20the%20account%20number%20as%20the%20rest%20of%20the%20data%20in%20the%20subsequent%20columns%20are%20reflected%20in%20the%20the%20same%20row%20as%20the%20account%20number.%3C%2FP%3E%3CP%3EThe%20reason%20is%20that%20i%20want%20all%20the%20data%20in%20a%20table%20so%20that%20I%20can%20pivot%2C%20but%20cutting%20the%20date%20out%20of%20a%20row%20and%20posting%20it%20to%20another%20row%20will%20be%20very%20laborious.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1340873%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1341006%22%20slang%3D%22en-US%22%3ERe%3A%20Splitting%20a%20column%20with%202%20values%20each%20below%20the%20other%20into%202%20columns%20i.e%20account%20number%20and%20date%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1341006%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F638552%22%20target%3D%22_blank%22%3E%40N3il-585%3C%2FA%3E%26nbsp%3BAssuming%20that%20this%20is%20a%20one%20time%20exercise%2C%20I'd%20suggest%20you%20insert%20a%20column%20to%20the%20right%20of%20the%20one%20where%20you%20have%20account%20number%20and%20date%20below%20one%20another%20and%20enter%20the%20following%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%3DOFFSET(A1%2C1%2C0)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhere%20A1%20would%20be%20the%20cell%20where%20you%20have%20the%20account%20number.%20Copy%20it%20all%20the%20way%20down.%20Then%20copy%2Fpaste-values%20that%20new%20column%20on%20top%20of%20itself.%20Filter%20on%20dates%20in%20the%20first%20column%20and%20delete%20these%20rows.%20Clear%20the%20filter%20and%20you%20are%20left%20with%20the%20Account%20numbers%20in%20one%20column%20and%20dates%20in%20the%20next.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPractise%20on%20a%20copy%20of%20your%20live%20file%2C%20in%20case%20it%20goes%20wrong!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1493967%22%20slang%3D%22en-US%22%3ERe%3A%20Splitting%20a%20column%20with%202%20values%20each%20below%20the%20other%20into%202%20columns%20i.e%20account%20number%20and%20date%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1493967%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F638552%22%20target%3D%22_blank%22%3E%40N3il-585%3C%2FA%3E%26nbsp%3BHey%20you%20can%20try%20this%20assuming%20column%201%20have%20cells%20blank%20where%20the%20date%20is%20in%20column%202%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Esuppose%20your%20data%20is%20starting%20from%20first%20row%20then%20go%20to%20C1%20and%20type%20this%20formula%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DB2%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eand%20drag%20it%20till%20the%20end%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethen%20you%20apply%20filter%20to%20all%20data%20and%20go%20to%20A1%20and%20filter%20data%20for%20blank%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethen%20delete%20all%20those%20rows%20and%20your%20data%20will%20be%20ready%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Visitor

How do I do this, I have 4000 lines with account number on fist row and date on the following row but I would like these two things to be next to each other.

The complicating factor is that the date row is below the account number row but I wish to have it in the same row as the account number as the rest of the data in the subsequent columns are reflected in the the same row as the account number.

The reason is that I want all the data in a table so that I can pivot, but cutting the date out of a row and posting it to another row will be very laborious.

2 Replies
Highlighted

@N3il-585 Assuming that this is a one time exercise, I'd suggest you insert a column to the right of the one where you have account number and date below one another and enter the following:

 

=OFFSET(A1,1,0)

 

Where A1 would be the cell where you have the account number. Copy it all the way down. Then copy/paste-values that new column on top of itself. Filter on dates in the first column and delete these rows. Clear the filter and you are left with the Account numbers in one column and dates in the next.

 

Practise on a copy of your live file, in case it goes wrong!

Highlighted

@N3il-585 Hey you can try this assuming column 1 have cells blank where the date is in column 2

 

suppose your data is starting from first row then go to C1 and type this formula

 

=B2

 

and drag it till the end

 

then you apply filter to all data and go to A1 and filter data for blank

 

then delete all those rows and your data will be ready