rojanu Posted March 25, 2010 Share Posted March 25, 2010 Hi, I have data in Excel that needs to be aligned on Persons first column (Integer). I am attaching a sample file. In the sample first sheet has Raw data and second has aligned data Rows needs to be aligned on columns A,G,L Thanks [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/196545-align-excel-data/ Share on other sites More sharing options...
arbitter Posted March 27, 2010 Share Posted March 27, 2010 I'd like to help, but I really don't understand what you want.. Quote Link to comment https://forums.phpfreaks.com/topic/196545-align-excel-data/#findComment-1032655 Share on other sites More sharing options...
rojanu Posted March 28, 2010 Author Share Posted March 28, 2010 What I need is to align data by numbers on Start cells E.g. following would be aligned as Start End Ref Var Start End Ref Var Start End Ref Var [/td] 1131 1131 C A 1131 1131 C A 1199 1199 G A 1131 1131 C A 1323 1323 C T to be like Start End Ref Var Start End Ref Var Start End Ref Var 1131 1131 C A 1131 1131 C A 1131 1131 C A 1323 1323 C T [td] 1199 1199 G A I hope that explains it better Quote Link to comment https://forums.phpfreaks.com/topic/196545-align-excel-data/#findComment-1032984 Share on other sites More sharing options...
arbitter Posted March 28, 2010 Share Posted March 28, 2010 But they are already all aligned (except one) by start number, or am I missing the point? Quote Link to comment https://forums.phpfreaks.com/topic/196545-align-excel-data/#findComment-1033030 Share on other sites More sharing options...
rojanu Posted March 28, 2010 Author Share Posted March 28, 2010 Well, Each "Start","End" ,"Ref" and "Var" belongs to a person. Sorry in my second post I made mistake and posted values for second and third row in reverse, values are sorted in ascending order, so it should have been Start End Ref Var Start End Ref Var Start End Ref Var 1131 1131 C A 1131 1131 C A 1131 1131 C A [/td] 1199 1199 G A 1323 1323 C T [td] In the example, first person has two empty rows and then has a "1131" value, where as second person has "1131" value in the second row and third person in the first row. What I need is all "1131" values to be on the same row. Value "1199" only exists only on the third person, so second row only contains values for third person and values for first and second person are emtpy Value "1323" only exists only on the second person, so third row only contains values for the second person and the others are empty. Quote Link to comment https://forums.phpfreaks.com/topic/196545-align-excel-data/#findComment-1033044 Share on other sites More sharing options...
arbitter Posted March 28, 2010 Share Posted March 28, 2010 But in the sample file, all the content has already been sorted ? Quote Link to comment https://forums.phpfreaks.com/topic/196545-align-excel-data/#findComment-1033101 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.