+ Reply to Thread
Results 1 to 10 of 10

Verical to Horizontal Array

  1. #1
    Registered User
    Join Date
    10-10-2013
    Location
    norfolk
    MS-Off Ver
    Excel 2007
    Posts
    28

    Verical to Horizontal Array

    I hope someone could help me.

    I have a consecutive list of dates going down column A, Column B has a series of numbers which goes from 1 - 6. Column D has numbers specific to each
    Example:
    A B C D
    01/03/2014 1 11
    01/03/2014 2 16
    01/03/2014 3 33
    01/03/2014 4 54
    01/03/2014 5 18
    01/03/2014 6 19
    02/03/2014 1 32
    02/03/2014 2 56
    02/03/2014 3 16
    02/03/2014 4 13
    02/03/2014 5 2
    02/03/2014 6 14


    and so on
    Column C has some other numbers going down which are not relevant, i have left this column blank in the example above


    One of the dates has 8 readings rather than 6, so i will have to account for that

    I would like to put this in a horizontal array so that it looks like:


    Date 1 2 3 4 5 6
    01/03/2014 11 16 33 54 18 19
    02/03/2014 32 56 16 13 2 14


    can someone please help?
    Last edited by jetset1; 03-16-2014 at 03:00 PM. Reason: refining post

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,426

    Re: Verical to Horizontal Array

    You could do it with two or three formulae, but you have posted this in the VBA forum - are you particularly looking for a macro to solve this?

    Pete

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Verical to Horizontal Array

    Hi,

    A Pivot Table will do that for you.

    Put the date column as rows, your second column as columns and your third as values.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  4. #4
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Verical to Horizontal Array

    Please Login or Register  to view this content.

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Verical to Horizontal Array

    Please see attached file for solution with formula.
    Attached Files Attached Files
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  6. #6
    Registered User
    Join Date
    10-10-2013
    Location
    norfolk
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: Verical to Horizontal Array

    Hello I require a VBA solution - I have tried Bob Phillips VBA solution that seems to over write the original set of data - i am looking for it to placed somwhere seperate on the sheet...

  7. #7
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Verical to Horizontal Array

    When you click the button on sheet 1, you get the output on sheet 2.
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Verical to Horizontal Array

    Try this
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    10-10-2013
    Location
    norfolk
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: Verical to Horizontal Array

    This works brilliantly i am looking at the VBA to make sure i understand it! The difficult part!!! Thank you so much. if i have any questions i hope i can contact you

  10. #10
    Registered User
    Join Date
    10-10-2013
    Location
    norfolk
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: Verical to Horizontal Array

    This works also, very clever again, i am going to have a look at this in more detail. Thank you for your help much appreciated.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to display contents of a horizontal array
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-23-2011, 10:53 AM
  2. To create horizontal array
    By siya in forum Excel General
    Replies: 0
    Last Post: 01-21-2011, 12:35 PM
  3. Verical orientation not saving to web page
    By wxchic in forum Excel General
    Replies: 0
    Last Post: 08-22-2010, 08:37 PM
  4. Dual Verical Lookups under one formula
    By perfectview in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 02-11-2009, 05:49 PM
  5. Replies: 1
    Last Post: 03-18-2005, 01:06 PM

Tags for this Thread

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