+ Reply to Thread
Results 1 to 5 of 5

Arrange cells dynamically

Hybrid View

  1. #1
    Registered User
    Join Date
    12-11-2010
    Location
    bangalore, india
    MS-Off Ver
    Excel 2007
    Posts
    16

    Arrange cells dynamically

    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
    Attached Files Attached Files
    Last edited by shruthitulsi; 12-13-2010 at 05:08 AM. Reason: solved

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Arrange cells dynamically

    Try this

    With years in A16:A25

    in C16
    =IF(ISERROR(MATCH($A16,$A$2:$A$11,0)),"",INDEX($A$2:$H$11,MATCH($A16,$A$2:$A$11,0),COLUMN()))
    Drag Across to H16 then down to row 25

    Hope this helps
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Registered User
    Join Date
    12-11-2010
    Location
    bangalore, india
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Arrange cells dynamically

    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

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Arrange cells dynamically

    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
    =IF(ISERROR(MATCH($A16,$A$2:$A$11,0)),"",INDEX($A$2:$H$11,MATCH($A16,$A$2:$A$11,0),C$14))
    This last formula works in Excel if C14:H14 is blank, I don't know if it will in Xcelsius

    Hope this helps

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Arrange cells dynamically

    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.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1