+ Reply to Thread
Results 1 to 8 of 8

Returning a value in a matrix

  1. #1
    Registered User
    Join Date
    04-13-2014
    Location
    Dundee
    MS-Off Ver
    Excel 2013
    Posts
    14

    Returning a value in a matrix

    Hi

    I have two worksheets.

    Worksheet one is a matrix, customer, pack size on the vertical, and date (365 days) on the horizontal. Within that matrix for each customer, bag size and date a rate is given for a discount.

    Worksheet two has also customer, pack size and date.

    What i am trying to do is look up the three elements on worksheet two (customer, pack size and date) to return the value in the matrix.

    Any ideas?

    Cheers

    Stuck

  2. #2
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Returning a value in a matrix

    Hi,

    Welcome to the forum.

    If you concatenate Customer and Pack Size into a third column, then use =INDEX(array,MATCH(3rd col),MATCH(date))
    Hope that makes sense
    Regards,
    Rudi

  3. #3
    Registered User
    Join Date
    04-13-2014
    Location
    Dundee
    MS-Off Ver
    Excel 2013
    Posts
    14

    Re: Returning a value in a matrix

    Ohh thank you, i will give that a go

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Returning a value in a matrix

    Can you post a SMALL sample file so we can see how your data is structured?

    We don't need a gigantic file with 100's of columns and 1000's of rows of data!

    5 rows and 5 columns worth of data will be plenty!

    Make sure you tell/show us what result you expect.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    04-13-2014
    Location
    Dundee
    MS-Off Ver
    Excel 2013
    Posts
    14

    Re: Returning a value in a matrix

    I have just put a little something together that might explain what i am doing.

    Obviously i have a huge amount of real data, and this is just for a simplified example.

    In the first tab "discount" i have the variable rates of product sales discount values. This is entered manually depending on the customers account.

    In the second tab "data" I need to match the value of the discount rate buy customer, pack size, and date.

    For example.

    Customer A, ordered pack size 1 on the 05/07/13. I want to put a formula in that picks up the discount rate for that customer, for that pack size on that particular day. In this case £1.02. I can then simply multiply that by the quantity.

    For background.

    The majority of the data is simply a download report from the system. The discount rates is manually kept as its highly variable.

    Help appreciated. Thanks all.
    Attached Files Attached Files

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Returning a value in a matrix

    One way...

    Entered in G2 and copied down:

    =SUMIFS(INDEX(Discount!D$2:L$5,0,MATCH(D2,Discount!D$1:L$1,0)),Discount!B$2:B$5,B2,Discount!C$2:C$5,C2)

  7. #7
    Registered User
    Join Date
    04-13-2014
    Location
    Dundee
    MS-Off Ver
    Excel 2013
    Posts
    14

    Re: Returning a value in a matrix

    Outstanding Tony, thank you

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Returning a value in a matrix

    You're welcome. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark 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. Matrix: Identify cell content in column for a row if matrix content true
    By deuy2014 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-21-2014, 11:52 AM
  2. Replies: 2
    Last Post: 02-11-2014, 05:05 AM
  3. Using a transition matrix as input to a cummulative matrix
    By Walter12 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-26-2012, 04:19 AM
  4. 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
  5. Returning the value from another matrix sheet
    By dilse in forum Excel General
    Replies: 3
    Last Post: 06-02-2011, 03:01 AM

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