Hi ,
I have a query output stored in a range.
which has years in the first column
i have to arrange the data based on the year , leaving empty cells if a particular year is not present.
SOURCE DATA( Dynamic , recieved from a QUERY)
2001 10 30 50 20 11 34
2006 11 10 53 10 23 45
2009 12 20 67 90 0 3
2010 13 40 11 4 10 11
This needs to be arranged like this
2001 10 30 50 20 11 34
2002
2003
2004
2005
2006 11 10 53 10 23 45
2007
2008
2009 12 20 67 90 0 3
2010 13 40 11 4 10 11
Kindly Look into the workbook attached.
Awaiting Help....
Thanks In Advance,
Shruthi
Last edited by shruthitulsi; 12-13-2010 at 04:08 AM. Reason: solved
Try this
With years in A16:A25
in C16
Drag Across to H16 then down to row 25=IF(ISERROR(MATCH($A16,$A$2:$A$11,0)),"",INDEX($A$2:$H$11,MATCH($A16,$A$2:$A$11,0),COLUMN()))
Hope this helps
If you need any more information, please feel free to ask.
However, if this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody! ....
Also
If you are satisfied by any members response to your problem please consider using the small Star icon botom left of thier post to show your appreciation.
Hi Marcol,
Excellent Solution, it work!!!!! But The application i am using ( Xcelsius) Doesnot support row() / column().. Is there any equivalant function i can replace it with.
Kindly Help,
Shruthi
If your headers are going to be Var1, Var2.... then
=IF(ISERROR(MATCH($A16,$A$2:$A$11,0)),"",INDEX($A$2:$H$11,MATCH($A16,$A$2:$A$11,0),RIGHT(C$15,1)+2))
or you could use a row with 3, 4, 5, 6, 7, 8 then refer to these cells, say C14:H14
This last formula works in Excel if C14:H14 is blank, I don't know if it will in Xcelsius=IF(ISERROR(MATCH($A16,$A$2:$A$11,0)),"",INDEX($A$2:$H$11,MATCH($A16,$A$2:$A$11,0),C$14))
Hope this helps
If you need any more information, please feel free to ask.
However, if this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody! ....
Also
If you are satisfied by any members response to your problem please consider using the small Star icon botom left of thier post to show your appreciation.
Could you please mark this post [SOLVED]
You started another thread here
http://www.excelforum.com/excel-new-...ow-column.html
Judging by your reply there this thread solved both problems.
If you need any more information, please feel free to ask.
However, if this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody! ....
Also
If you are satisfied by any members response to your problem please consider using the small Star icon botom left of thier post to show your appreciation.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks