Jump to content

Align Excel data


rojanu

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/196545-align-excel-data/#findComment-1032984
Share on other sites

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.

 

Link to comment
https://forums.phpfreaks.com/topic/196545-align-excel-data/#findComment-1033044
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.