+ Reply to Thread
Results 1 to 4 of 4

Selecting Second Array in Two dimensional array

  1. #1
    Registered User
    Join Date
    10-22-2014
    Location
    Jakarta
    MS-Off Ver
    2013
    Posts
    20

    Selecting Second Array in Two dimensional array

    Hi..
    I have two dimensional array named "ARRAY", the value of each element are:
    (1,1) = 50
    (1,2) = 70
    (1,3) = 100

    (2,1) = 30
    (2.2) = 40
    (2,3) = 45

    i just want to print the value to the range for example a1:a3

    if i code it like this
    Please Login or Register  to view this content.
    will give value of 50 , 70, 100 in a1 to a3 (first array)

    how should I code it so in a1 to a3 I will print 30, 40 and 45 (second array) ???

    if I code it
    Please Login or Register  to view this content.
    it won't work

    please help..
    thanks
    Last edited by vepoyoke; 12-05-2014 at 06:02 AM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Selecting Second Array in Two dimensional array

    I think your array or the description of the output is incorrect.
    If I use your example the contents of A1:A3 would be 50, 30, #Value

    Try this
    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: Selecting Second Array in Two dimensional array

    Try this.
    Please Login or Register  to view this content.
    PS This doesn't not show the values as you indicate.
    Please Login or Register  to view this content.
    It shows 50,30,#N/A in A1:A3.
    If posting code please use code tags, see here.

  4. #4
    Registered User
    Join Date
    10-22-2014
    Location
    Jakarta
    MS-Off Ver
    2013
    Posts
    20

    Re: Selecting Second Array in Two dimensional array

    thanks Andy Pope and Norie!!!

    using application.index(array,2) solved the problem..

    yes i made a mistake it should be
    Please Login or Register  to view this content.
    that should be returned 50 , 70, 100 values

    will sign this thread as solved..

+ 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. Replies: 6
    Last Post: 09-25-2013, 10:08 PM
  2. Populate a Single Dimensional Array with two Dim Array (matrix)
    By Benjamin1 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-03-2011, 12:49 PM
  3. Selecting a single column of a multi-dimensional array
    By hmatharo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-21-2008, 11:10 PM
  4. [SOLVED] Mutli-dimensional Array to Single-Dimension Array
    By Blue Aardvark in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-15-2005, 05:05 AM
  5. [SOLVED] Create One-Dimensional Array from Two-Dimensional Array
    By Stratuser in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-23-2005, 05:06 PM

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