+ Reply to Thread
Results 1 to 5 of 5

Thread: Match/Indexing an array of references

  1. #1
    Registered User
    Join Date
    07-11-2008
    Location
    Dallas
    Posts
    3

    Match/Indexing an array of references

    I've got the following problem that I can't seem to get around with match/index. I want to generate an array of values that stores the quantity of a particular equipment item (column N) times the particular price for that piece of equipment. However, since I am running this for multiple customers, there are MULTIPLE equipment matches, so a standard match function only returns the index of the first matched equipment piece. Here's a visual of the situation.
    Other Sheet
    N (Quantity) M(Equipment Type) (Price)

    A:B
    1 Alarm Alarm:$5
    2 Window Window:$6
    1 Motion Motion$8
    1 Window D/P: $12
    3 Motion
    1 Door Panel
    1 Alarm
    1 Window


    Here's the formula I'm using...

    =sum(($N:$N)*(INDEX(pricing!$A$1:$B$252,MATCH('Customer Equipment List'!$M:$M,pricing!$A$1:$A$252,0),2)))

    The problem lies in the $M:$M and $A$1:$A$252 part of the formula. What I want is for the match function (or whatever I end up using) to go down the M column cell by cell. For each M cell, I want the function to search the entire A1:A252 range.

    In effect, I need M to be "variable" as the function moves down the column and A to be "constant," just like MATCH does. Yet I need something that returns an ARRAYof index references that index (or some other function) can process. Any ideas? I know I can use multiple columns to temporary store an array of match/index functions, but i'm trying to do this all in one formula. Thanks in advance.



    EDIT: The formatting for the example didn't come out as planned, but assume the first column of numbers is the quantity, the second column (text) is equipment, and the third column (a:b) is the unit price for each kind of item (listed in another sheet)
    Last edited by atraxbiz; 07-11-2008 at 11:34 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    11-23-2007
    Location
    Suffolk, UK
    Posts
    290
    hi atraxbiz,

    i think it would be useful to post an example of what you need.

    thanks reg

  3. #3
    Registered User
    Join Date
    07-11-2008
    Location
    Dallas
    Posts
    3
    Here's the idea. I just want a sum of my equipment quantity column (n) times my equipment price column (O). For example: the answer i want with the following information Equipment A: Quantity 2, Unit Price $3
    Equipment B: Quantity 3, Unit Price $5

    is 6+15 = $21.

    What I am trying to do for convenience is to avoid dropping the O column in my spreadsheet. The values in the O column are just vlookups/ index matches from a different spreadsheet. The index/match formula can find one of these values at a time, but I'm trying to create a 'temporary array' inside a formula that my quantity column (n) can multiply by.

    So ultimately, I want $21 without having to leave the O column in my spreadsheet. Is there any way an index/match or vlookup can store more than one match at a time?

  4. #4
    Registered User
    Join Date
    07-11-2008
    Location
    Dallas
    Posts
    3
    bump? anyone have any ideas?

  5. #5
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007, 2010
    Posts
    25,777
    Seeing a workbook would help ...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0