+ Reply to Thread
Results 1 to 2 of 2

Matrix modifications

Hybrid View

  1. #1
    Registered User
    Join Date
    10-12-2017
    Location
    paris
    MS-Off Ver
    v4
    Posts
    1

    Post Matrix modifications

    Hi,

    I would like without using vba is possible, to modify a matrix from:

    			
    		201503	201504	201505	201506
    varA	index1	15	18	800	18
    	index2	12	18	18	18
    varB	index1	230	225	225	225
    	index2	230	225	225	225
    varC	index1	13	13	13	13
    	index2	13	13	17	13

    to :

    var A 	201503	index1	15
    var A 	201504	index1	18
    var A 	201505	index1	800
    var A 	201506	index1	18
    var A 	201503	index2	12
    var A 	201504	index2	18
    var A 	201505	index2	18
    var A 	201506	index2	18
    varB	201503	index1	230
    varB	201504	index1	225
    varB	201505	index1	225
    varB	201506	index1	225
    varB	201503	index2	230
    varB	201504	index2	225
    varB	201505	index2	225
    varB	201506	index2	225
    varC	201503	index1	13
    varC	201504	index1	13
    varC	201505	index1	13
    varC	201506	index1	13
    varC	201503	index2	13
    varC	201504	index2	13
    varC	201505	index2	17
    varC	201506	index2	13

    I tried to figure out a simple way to do this but without any success.

    please any help ?

    Clement
    Last edited by clement612; 10-12-2017 at 03:28 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Matrix modifications

    Welcome to the board.

    A
    B
    C
    D
    E
    F
    G
    1
    201503
    201504
    201505
    201506
    2
    varA index1
    15
    18
    800
    18
    3
    index2
    12
    18
    18
    18
    4
    varB index1
    230
    225
    225
    225
    5
    index2
    230
    225
    225
    225
    6
    varC index1
    13
    13
    13
    13
    7
    index2
    13
    13
    17
    13
    8
    9
    10
    row
    11
    0
    varA
    201503
    index1
    15
    B11: =INDEX($A$2:$A$6, 2 * INT($A11/8) + 1)
    12
    1
    varA
    201504
    index1
    18
    C11: =INDEX($C$1:$F$1, MOD($A11, 4) + 1)
    13
    2
    varA
    201505
    index1
    800
    D11: =INDEX($B$2:$B$7, INT($A11/4) + 1)
    14
    3
    varA
    201506
    index1
    18
    E11: =INDEX($C$2:$F$7, INT($A11/4) + 1, MOD($A11, 4) + 1)
    15
    4
    varA
    201503
    index2
    12
    16
    5
    varA
    201504
    index2
    18
    17
    6
    varA
    201505
    index2
    18
    18
    7
    varA
    201506
    index2
    18
    19
    8
    varB
    201503
    index1
    230
    20
    9
    varB
    201504
    index1
    225
    21
    10
    varB
    201505
    index1
    225
    22
    11
    varB
    201506
    index1
    225
    23
    12
    varB
    201503
    index2
    230
    24
    13
    varB
    201504
    index2
    225
    25
    14
    varB
    201505
    index2
    225
    26
    15
    varB
    201506
    index2
    225
    27
    16
    varC
    201503
    index1
    13
    28
    17
    varC
    201504
    index1
    13
    29
    18
    varC
    201505
    index1
    13
    30
    19
    varC
    201506
    index1
    13
    31
    20
    varC
    201503
    index2
    13
    32
    21
    varC
    201504
    index2
    13
    33
    22
    varC
    201505
    index2
    17
    34
    23
    varC
    201506
    index2
    13
    Entia non sunt multiplicanda sine necessitate

+ 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: 2
    Last Post: 01-08-2016, 06:22 PM
  2. [SOLVED] Match two strings after some modifications
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-09-2015, 01:05 PM
  3. Modifications to code
    By exlecel123 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-26-2013, 06:12 AM
  4. excel form modifications
    By Lins in forum Excel General
    Replies: 1
    Last Post: 11-22-2012, 12:02 PM
  5. Add-in modifications
    By Jacques Grobler in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-13-2011, 02:50 AM
  6. PivotTable modifications via VBA
    By fecurtis in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-15-2008, 04:04 PM
  7. webbrowser -> excel -> modifications
    By h_boulder@gmx.at in forum Excel General
    Replies: 1
    Last Post: 01-26-2006, 12:35 AM

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