Closed Thread
Results 1 to 4 of 4

Returning Matrix Indices from value

  1. #1
    Registered User
    Join Date
    04-21-2019
    Location
    The Netherlands
    MS-Off Ver
    2013
    Posts
    12

    Returning Matrix Indices from value

    Hello everyone,

    This is my first post, so I hope it will work out.
    I am working on a model that is dealing with the Vehicle Routing Problem and I need to apply the Clarke and Wright savings method in Excel.
    The idea is that I get a matrix that is 100x100 (for example) and I find a value in this matrix that has certain characteristics, for example the highest number.
    Given that I have found the number I am looking for, I want to create a formula which tells me where the element that I found is.

    So it can be that the matrix value is 22, which I filtered out based on the criteria that I set.
    In this case, I want to find in my 100x100 matrix where this number 22 came from. For example from T56. In this case I want it to return the value of the header of the column and row, lets say that the columns are also numbered from 1,2,3,4,.... So the output would then be that the row number is 56 and the column number is 20, since T=20 from alphabet.
    I was working with the address function, and also with Match and Index, but I couldn't make it work because in any case, I do not know where the value is, in which row or column.

    The problem is also that the size of the matrix can differ at any moment because a different amount of customers can be there per day.
    So i guess it has to work in VBA maybe with a for loop, but I do not know how to model it.

    Thanks!

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Returning Matrix Indices from value

    Duplicate post with:
    https://www.excelforum.com/excel-pro...rom-value.html

    BSB

  3. #3
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Returning Matrix Indices from value

    Solution posted in duplicate thread shown above.

    Greg M

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Returning Matrix Indices from value

    Administrative Note:

    Welcome to the forum.

    Unfortunately, this is a duplicate thread, and you are allowed only ONE thread per issue here. I am, therefore, closing this thread, but you may continue here in the original thread:https://www.excelforum.com/excel-pro...rom-value.html
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Sum Values Using An Array As The Indices
    By cp3.patel in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-08-2018, 02:56 PM
  2. [SOLVED] Index Matrix not returning correct value
    By JasXel in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-08-2018, 06:59 AM
  3. [SOLVED] Returning a value in a matrix
    By Stuck14 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-13-2014, 11:16 AM
  4. #DIV/0! on indices help
    By divedeeper in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-07-2013, 10:29 AM
  5. Returning the diagonal of a matrix as a column vector
    By thebski in forum Excel General
    Replies: 1
    Last Post: 06-04-2012, 03:45 PM
  6. Returning the value from another matrix sheet
    By dilse in forum Excel General
    Replies: 3
    Last Post: 06-02-2011, 03:01 AM
  7. Get row indices where...
    By coa01gsb in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-10-2007, 11:00 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